lagrangian.reader.NetCDF.interpolate

NetCDF.interpolate(self: lagrangian.core.reader.NetCDF, lon: float, lat: float, fill_value: float = 0, cell: lagrangian.core.CellProperties = <lagrangian.core.CellProperties object at 0x7fdbfd785e30>) → float

Computes the value of the grid point requested by bilinear interpolation

Parameters
  • longitude (float) – Longitude in degrees

  • latitude (float) – Latitude in degrees

  • fill_value (float) – Value to be taken into account for fill values

  • cell (lagrangian.CellProperties) – interpolation.

Returns

Interpolated value or nan if point is outside the grid or

undefined.

Return type

float