nwm_eval.nwm_configs#

Classes and functions for handling NWM forecast configurations, including cycle information and lead time interpretation.

Classes:
  • CycleConfig: A Pydantic model for validating forecast cycle configurations.

  • ForecastConfig: A class for reading forecast configurations from a YAML file and interpreting cycle information and lead times.

Functions of ForecastConfig:
  • get_cycle_info: Get cycle information for a specific forecast configuration.

  • validate_cycle_info: Validate the cycle information for a specific forecast configuration.

  • get_valid_cycles: Get the valid forecast cycles for a given forecast configuration.

  • get_fcst_window_timestep: Get the forecast window and timestep for a given forecast configuration and cycle.

  • interpret_lead_times: Interpret lead times based on the NWM configuration, returning the lead time groups given the forecast configuration.

Classes

CycleConfig

A forecast cycle configuration defined with 5 numbers: first 4 ints, last a float.

ForecastConfig

Class for handling forecast configurations.