lair.geo.BaseGrid.reproject#

BaseGrid.reproject(resolution, regrid_method='bilinear', inplace=False)[source]#

Reproject the data to a lat lon rectilinear grid.

Parameters:
  • resolution (float | tuple[x_res, y_res]) – The new resolution in degrees. If a single value is provided, the resolution is assumed to be the same in both dimensions.

  • regrid_method (str, optional) – The regridding method, by default ‘bilinear’.

  • inplace (bool, optional) – Whether to modify the object in-place. Default is False.

Returns:

BaseGrid – The reprojected grid, on EPSG:4326 lat/lon.

Raises:

ValueError – If the data is already on a geographic (lat/lon) CRS.

Return type:

Self

See also

BaseGrid.resample

For data already on lat/lon.