HourlyCamelsUS

class hy2dl.datasetzoo.hourlycamelsus.Hourly_CAMELS_US(cfg: Config, time_period: str, gauge_id: str | list[str] | None = None)

Bases: CAMELS_US

Class to process hourly data in similar format as the CAMELS US dataset.

This class process hourly data stored in the same format as CAMELS US [1] [2]. It also allows to load daily information from the CAMELS_US dataset and upsample it to hourly. Moreover, we can read the static attributes using the function defined in the CAMELS_US class.

This class was adapted from NeuralHydrology [3].

Parameters:
  • cfg (Config) – Configuration file.

  • time_period ({'training', 'validation', 'testing'}) – Defines the period for which the data will be loaded.

  • gauge_id (Optional[str | list[str]], default=None) – Id of gauge(s) to be loaded.

References