hydromt.data_catalog.uri_resolvers.URIResolver.resolve#

abstract URIResolver.resolve(uri: str, *, time_range: Annotated[Tuple[datetime, datetime], BeforeValidator(func=_time_range_from_str, json_schema_input_type=PydanticUndefined), AfterValidator(func=_time_range_validate)] | None = None, mask: GeoDataFrame | GeoSeries | None = None, variables: List[str] | None = None, zoom_level: 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 (Optional[TimeRange], optional) – left-inclusive start end time of the data, by default None

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

  • zoom_level (Optional[ZoomLevel], optional) – zoom_level of the dataset, by default None

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

  • metadata (Optional[SourceMetadata], 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