code: def grid_list(data):
      '''
      #=================================================
      /process the grid data
      /convert to list data for poly fitting
      #=================================================
      '''
      a = []
      b = []
      M = []
      for i in data:
          a.append(i[0])  # np.array([i[1] for i in data], dtype=np.float64)
          b.append(i[1])  # np.array([i[0] for i in data], dtype=np.float64)
          M.append(i[2])  # np.array([i[2] for i in data], dtype=np.float64)
      a = np.array(a, dtype=np.float64).tolist()
      b = np.array(b, dtype=np.float64).tolist()
      M = np.array(M, dtype=np.float64).tolist()
      a = list(set(a))
      b = list(set(b))
      return a, b, f grid_list(data):
      '''
      #=================================================
      /process the grid data
      /convert to list data for poly fitting
      #=================================================
      '''
      a = []
      b = []
      M = []
      for i in data:
          a.append(i[0])  # np.array([i[1] for i in data], dtype=np.float64)
          b.append(i[1])  # np.array([i[0] for i in data], dtype=np.float64)
          M.append(i[2])  # np.array([i[2] for i in data], dtype=np.float64)
      a = np.array(a, dtype=np.float64).tolist()
      b = np.array(b, dtype=np.float64).tolist()
      M = np.array(M, dtype=np.float64).tolist()
      a = list(set(a))
      b = list(set(b))
      return a, b, M
docs: #=================================================
      /process the grid data
      /convert to list data for poly fitting
      #=================================================