weatherbench2.config.Data

class weatherbench2.config.Data(selection, paths, by_init=True, rename_variables=None, pressure_level_suffixes=False)

Data configuration class combining Selection and Paths.

Parameters:
  • selection (Selection) –

  • paths (Paths) –

  • by_init (Optional[bool]) –

  • rename_variables (Optional[Dict[str, str]]) –

  • pressure_level_suffixes (Optional[bool]) –

selection

Selection instance.

Type:

weatherbench2.config.Selection

paths

Paths instance.

Type:

weatherbench2.config.Paths

by_init

Specifies whether forecast file follows by-init or by-valid convention (see official documentation).

Type:

Optional[bool]

rename_variables

Optional dictionary to convert forecast dimension an variable names to WB2 convention.

Type:

Optional[Dict[str, str]]

pressure_level_suffixes

Specifies whether forecast variables are stored with pressure level suffixes instead of a level dimension, e.g. “geopotential_500”.

Type:

Optional[bool]

__init__(selection, paths, by_init=True, rename_variables=None, pressure_level_suffixes=False)
Parameters:
  • selection (Selection) –

  • paths (Paths) –

  • by_init (Optional[bool]) –

  • rename_variables (Optional[Dict[str, str]]) –

  • pressure_level_suffixes (Optional[bool]) –

Return type:

None

Methods

__init__(selection, paths[, by_init, ...])

Attributes

by_init

pressure_level_suffixes

rename_variables

selection

paths