weatherbench2.regions.SliceRegion

class weatherbench2.regions.SliceRegion(lat_slice=<factory>, lon_slice=<factory>)

Latitude-longitude box selection.

Parameters:
  • lat_slice (Optional[Union[slice, list[slice]]]) –

  • lon_slice (Optional[Union[slice, list[slice]]]) –

__init__(lat_slice=<factory>, lon_slice=<factory>)
Parameters:
  • lat_slice (Optional[Union[slice, list[slice]]]) –

  • lon_slice (Optional[Union[slice, list[slice]]]) –

Return type:

None

Methods

__init__([lat_slice, lon_slice])

apply(dataset, weights)

Returns dataset sliced according to lat/lon_sliceparameters.

Attributes

lat_slice

lon_slice