hydromt.data_catalog.uri_resolvers.ConventionResolver.resolve#

ConventionResolver.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, zoom: int | Tuple[float, str] | None = None, variables: List[str] | None = None, metadata: SourceMetadata | None = None, handle_nodata: NoDataStrategy = NoDataStrategy.RAISE) List[str][source]#

Resolve the placeholders in the URI using naming conventions.

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 (Optional[Zoom], 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) – DataSource metadata.

  • 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