weatherbench2.regions.LandRegion

class weatherbench2.regions.LandRegion(land_sea_mask, threshold=None)

Selects land grid point.

Parameters:
  • land_sea_mask (DataArray) –

  • threshold (Optional[float]) –

land_sea_mask

DataArray containing land sea mask in corresponding resolution.

Type:

xarray.core.dataarray.DataArray

threshold

If given (between 0 and 1), threshold the land sea mask and convert to a boolean mask.

Type:

Optional[float]

__init__(land_sea_mask, threshold=None)
Parameters:
  • land_sea_mask (DataArray) –

  • threshold (Optional[float]) –

Return type:

None

Methods

__init__(land_sea_mask[, threshold])

apply(dataset, weights)

Returns weights multiplied with a boolean land mask.

Attributes

threshold

land_sea_mask