You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have checked that this bug exists on the latest version of HydroMT.
Reproducible Example
from hydromt import DataCatalog
dc = DataCatalog("deltares_data")
era5 = dc.get_rasterdataset("era5", bbox=[4.2555,51.9489,4.5636,52.146], provider="netcdf")
Current behaviour
The above code will produce the following error:
File "C:\Users\jong\Projects\HydroMT\hydromt\hydromt\data_catalog\uri_resolvers\convention_resolver.py", line 192, in resolve
self._resolve_wildcards(
File "C:\Users\jong\Projects\HydroMT\hydromt\hydromt\data_catalog\uri_resolvers\convention_resolver.py", line 117, in _resolve_wildcards
reduce(
File "C:\Users\jong\Projects\HydroMT\hydromt\hydromt\data_catalog\uri_resolvers\convention_resolver.py", line 118, in <lambda>
lambda uri_res, uri: uri_res + [split_and_glob(uri)], uris, []
File "C:\Users\jong\Projects\HydroMT\hydromt\hydromt\data_catalog\uri_resolvers\convention_resolver.py", line 96, in split_and_glob
return (protocol, fs.glob(uri))
File "C:\Users\jong\Projects\HydroMT\hydromt\.pixi\envs\default\lib\site-packages\fsspec\spec.py", line 613, in glob
pattern = glob_translate(path + ("/" if ends_with_sep else ""))
File "C:\Users\jong\Projects\HydroMT\hydromt\.pixi\envs\default\lib\site-packages\fsspec\utils.py", line 732, in glob_translate
raise ValueError(
ValueError: Invalid pattern: '**' can only be an entire path component
This caused by glob receiving the following path: meteo/era5_daily/nc_merged/era5_**_daily.nc
Desired behaviour
The above code should return a xarray dataset or a clear warning/error that it is not possible to retrieve the data without specifying a time range.
Additional context
No response
The text was updated successfully, but these errors were encountered:
HydroMT version checks
Reproducible Example
Current behaviour
The above code will produce the following error:
This caused by glob receiving the following path:
meteo/era5_daily/nc_merged/era5_**_daily.nc
Desired behaviour
The above code should return a xarray dataset or a clear warning/error that it is not possible to retrieve the data without specifying a time range.
Additional context
No response
The text was updated successfully, but these errors were encountered: