weatherbench2.config.Selection

class weatherbench2.config.Selection(variables, time_slice, levels=None, lat_slice=<factory>, lon_slice=<factory>, aux_variables=None)

Select a sub-set of forecast and truth data.

Parameters:
  • variables (Sequence[str]) –

  • time_slice (slice) –

  • levels (Optional[Sequence[int]]) –

  • lat_slice (Optional[slice]) –

  • lon_slice (Optional[slice]) –

  • aux_variables (Optional[Sequence[str]]) –

variables

List of variables to evaluate.

Type:

Sequence[str]

time_slice

Range of time/init_time to use from forecast.

Type:

slice

levels

List of pressure levels.

Type:

Optional[Sequence[int]]

lat_slice

Latitude range in degrees.

Type:

Optional[slice]

lon_slice

Longitude range in degrees.

Type:

Optional[slice]

aux_variables

Sequence of auxiliary forecast variables required for certain evaluation metrics.

Type:

Optional[Sequence[str]]

__init__(variables, time_slice, levels=None, lat_slice=<factory>, lon_slice=<factory>, aux_variables=None)
Parameters:
  • variables (Sequence[str]) –

  • time_slice (slice) –

  • levels (Optional[Sequence[int]]) –

  • lat_slice (Optional[slice]) –

  • lon_slice (Optional[slice]) –

  • aux_variables (Optional[Sequence[str]]) –

Return type:

None

Methods

__init__(variables, time_slice[, levels, ...])

Attributes

aux_variables

levels

variables

time_slice

lat_slice

lon_slice