hydromt.data_catalog.uri_resolvers.ConventionResolver.resolve#
- ConventionResolver.resolve(uri: str, *, time_range: Annotated[Tuple[datetime, datetime], BeforeValidator(func=_time_range_from_str), 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 Identifiertime_range (
Optional[TimeRange]
, optional) – left-inclusive start end time of the data, by default Nonemask (
Optional[Geom]
, optional) – A geometry defining the area of interest, by default Nonezoom (
Optional[Zoom]
, optional) – zoom_level of the dataset, by default Nonevariables (
Optional[List[str]]
, optional) – Names of variables to return, or all if None, by default Nonemetadata (
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