ILAMB.ilamblib.TrueError

ILAMB.ilamblib.TrueError(lat1_bnd, lon1_bnd, lat1, lon1, data1, lat2_bnd, lon2_bnd, lat2, lon2, data2)[source]

Computes the pointwise difference between two sets of gridded data

To obtain the pointwise error we populate a list of common cell interfaces and then interpolate both input arrays to the composite grid resolution using nearest-neighbor interpolation.

Parameters
  • lon1_bnd, lat1, lon1 (lat1_bnd,) – 1D arrays corresponding to the latitude/longitudes of the cell interfaces/centroids

  • data1 (numpy.ndarray) – an array of data to be interpolated of shape = (lat1.size,lon1.size,…)

  • lon2_bnd, lat2, lon2 (lat2_bnd,) – 1D arrays corresponding to the latitude/longitudes of the cell interfaces/centroids

  • data2 (numpy.ndarray) – an array of data to be interpolated of shape = (lat2.size,lon2.size,…)

Returns

  • lat_bnd, lon_bnd, lat, lon (numpy.ndarray) – 1D arrays corresponding to the latitude/longitudes of the cell interfaces/centroids of the resulting error

  • error (numpy array) – an array of the pointwise error of shape = (lat.size,lon.size,…)