hydromt.data_catalog.uri_resolvers.URIResolver#

pydantic model hydromt.data_catalog.uri_resolvers.URIResolver[source]#

URI Resolver responsible for finding the data using the URI in the Data Catalog.

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 filesystem: FSSpecFileSystem [Optional]#
field options: dict[str, Any] [Optional]#
abstractmethod resolve(uri: str, *, time_range: TimeRange | None = None, mask: GeoDataFrame | GeoSeries | None = None, variables: list[str] | None = None, zoom: int | Tuple[float, str] | None = None, metadata: SourceMetadata | None = None, handle_nodata: NoDataStrategy = NoDataStrategy.RAISE) list[str][source]#

Resolve a single uri to multiple uris.

Parameters:
  • uri (str) – Unique Resource Identifier

  • time_range (TimeRange | None, optional) – left-inclusive start end time of the data, by default None

  • mask (Geom | None, optional) – A geometry defining the area of interest, by default None

  • zoom (Zoom | None, optional) – zoom of the dataset, by default None

  • variables (list[str] | None, optional) – Names of variables to return, or all if None, by default None

  • metadata (SourceMetadata | None, optional) – Metadata of DataSource.

  • handle_nodata (NoDataStrategy, optional) – how to react when no data is found, by default NoDataStrategy.RAISE

Returns:

a list of expanded uris

Return type:

list[str]

Raises:

NoDataException – when no data is found and handle_nodata is NoDataStrategy.RAISE