hydroflows.methods.coastal.get_gtsm_data#
Method for fetching GTSM waterlevel and surge timeseries for a given region.
- class hydroflows.methods.coastal.get_gtsm_data.GetGTSMData(region: Path, gtsm_catalog: Path, data_root: Path = PosixPath('data/input'), **params)[source]#
Method for fetching GTSM waterlevel and surge timeseries for a given region.
- Parameters:
region (Path) – Path to file containing area of interest geometry. Centroid is used to look for nearest GTSM station.
data_root (Path, optional) – The root folder where data is stored, by default “data/input/forcing_data/waterlevel”
- pydantic model hydroflows.methods.coastal.get_gtsm_data.Input[source]#
Input parameters for the
GetGTSMData
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.
- field gtsm_catalog: Annotated[Path, AfterValidator(func=filedir_validator)] [Required]#
Path to HydroMT data catalog describing GTSM data.
- pydantic model hydroflows.methods.coastal.get_gtsm_data.Output[source]#
Output parameters for the
GetGTSMData
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.coastal.get_gtsm_data.Params[source]#
Params for the
GetGTSMData
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:
- field data_root: Annotated[Path, AfterValidator(func=outputdirpath_validator)] = PosixPath('data/input')#
- field end_time: datetime = datetime.datetime(2018, 12, 31, 0, 0)#
End date for the fetched timeseries