hydroflows.methods.events.Forcing#
- class hydroflows.methods.events.Forcing(*, type: Literal['water_level', 'discharge', 'rainfall'], path: Annotated[Path, PathType(path_type=file)], tstart: datetime | None = None, tstop: datetime | None = None, scale_mult: float | None = None, scale_add: float | None = None, locs_path: Annotated[Path, PathType(path_type=file)] | None = None, locs_id_col: str | None = None)[source]#
Bases:
BaseModel
A forcing for the event.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- field locs_path: Annotated[Path, PathType(path_type=file)] | None = None#
The path to the locations file for the forcing data.
- property data: DataFrame#
Return the forcing data.