ILAMB.Variable.Variable.interpolate

Variable.interpolate(time=None, lat=None, lon=None, lat_bnds=None, lon_bnds=None, itype='nearestneighbor')[source]

Use nearest-neighbor interpolation to interpolate time and/or space at given values.

Parameters
  • time (numpy.ndarray, optional) – Array of times at which to interpolate the variable

  • lat (numpy.ndarray, optional) – Array of latitudes at which to interpolate the variable

  • lon (numpy.ndarray, optional) – Array of longitudes at which to interpolate the variable

Returns

var – The interpolated variable

Return type

ILAMB.Variable.Variable