hydroflows.methods.rainfall.get_ERA5_rainfall#
Get ERA5 rainfall timeseries data for a region center point.
- class hydroflows.methods.rainfall.get_ERA5_rainfall.GetERA5Rainfall(region: Path, output_dir: Path = 'data/input', **params)[source]#
Method for downloading ERA5 rainfall data at the centroid of a region.
- Parameters:
region (Path) – The file path to the geometry file for which we want to download ERA5 rainfall time series at its centroid.
output_dir (Path, optional) – The root folder where the data is stored, by default “data/input”.
**params – Additional parameters to pass to the GetERA5Rainfall instance.
- pydantic model hydroflows.methods.rainfall.get_ERA5_rainfall.Input[source]#
Input parameters for the
GetERA5Rainfall
method.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Fields:
- pydantic model hydroflows.methods.rainfall.get_ERA5_rainfall.Output[source]#
Output parameters for the
GetERA5Rainfall
method.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Fields:
- pydantic model hydroflows.methods.rainfall.get_ERA5_rainfall.Params[source]#
Parameters for the
GetERA5Rainfall
.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Fields:
- field end_date: datetime = datetime.datetime(2023, 12, 31, 0, 0)#
The end date for downloading the ERA5 precipitation time series.
- field output_dir: Annotated[Path, AfterValidator(func=outputdirpath_validator)] = PosixPath('data/input')#
The root folder where the data is stored.