geodata.Cutout.add_grid_area

geodata.Cutout.add_grid_area#

geodata.Cutout.add_grid_area(axis: tuple[str] = ('lat', 'lon'), adjust_coord: bool = True)#

Add attribute ‘area’ to the cutout containing area for each grid cell in the cutout metedata xarray.

Parameters:
  • axis (tuple[str]) – The name of the axes to include in the result xarray dataset. Defaults to (“lat”, “lon”).

  • adjust_coord (bool) – Whether to sort the data by latitude and longitude values if true. Defaults to True.