hydromt.data_catalog.adapters.DatasetAdapter#
- pydantic model hydromt.data_catalog.adapters.DatasetAdapter[source]#
Implementation for the DatasetAdapter.
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.
- transform(ds: Dataset, metadata: SourceMetadata, *, variables: str | List[str] | None = None, time_range: TimeRange | None = None, handle_nodata: NoDataStrategy = NoDataStrategy.RAISE, single_var_as_array: bool = True) Dataset | None[source]#
Return a clipped, sliced and unified Dataset.
For a detailed description see:
get_dataset()