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'm trying to access entries in an intake-esm catalog that are pointing to a tar archive, but it potentially also does not work with other paths that are interpreted by fsspec.
The url is a fsspec.implementations.tar.TarContainedFile in this case and cannot be iterated. This issue might also effect other cases, where the url is not just a local path. The issue occurs with version 2022.9.18. With version 2021.8.17 the MWE returns the expected result:
--> The keys in the returned dictionary of datasets are constructed as follows:
'experiment.case'
Out[14]: █████████████████████████████████████████████████████████████████████████████████████████████| 100.00% [1/1 00:00<00:00]
{'object.test': <xarray.Dataset>
Dimensions: (longitude: 480, latitude: 241, level: 3, month: 2)
Coordinates:
* longitude (longitude) float32 -180.0 -179.2 -178.5 ... 177.8 178.5 179.2
* latitude (latitude) float32 90.0 89.25 88.5 87.75 ... -88.5 -89.25 -90.0
* level (level) int32 200 500 850
* month (month) int32 1 7
Data variables:
z (month, level, latitude, longitude) float32 dask.array<chunksize=(2, 3, 241, 480), meta=np.ndarray>
u (month, level, latitude, longitude) float32 dask.array<chunksize=(2, 3, 241, 480), meta=np.ndarray>
v (month, level, latitude, longitude) float32 dask.array<chunksize=(2, 3, 241, 480), meta=np.ndarray>
Attributes:
Conventions: CF-1.0
Info: Monthly ERA-Interim data. Downloaded and...
intake_esm_vars: ['test']
intake_esm_attrs:experiment: object
intake_esm_attrs:case: test
intake_esm_attrs:uri: tar://output.nc::/tmp/tmpqmtn9j9q/tarfil...
intake_esm_attrs:_data_format_: netcdf
intake_esm_dataset_key: object.test}
* check url is string
* add test for containerized netcdf file
* make dask single-threaded
Co-authored-by: Max Grover <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove auto pytest
Co-authored-by: Max Grover <[email protected]>
Description
I'm trying to access entries in an intake-esm catalog that are pointing to a tar archive, but it potentially also does not work with other paths that are interpreted by fsspec.
What I Did
This results in the following error message, in particular in:
Entire traceback
Potential solution
The issue is
intake-esm/intake_esm/source.py
Line 67 in e37f666
The
url
is afsspec.implementations.tar.TarContainedFile
in this case and cannot be iterated. This issue might also effect other cases, where theurl
is not just a local path. The issue occurs with version2022.9.18
. With version2021.8.17
the MWE returns the expected result:My suggested fix would be to change:
intake-esm/intake_esm/source.py
Line 67 in e37f666
to:
Version information: output of
intake_esm.show_versions()
Paste the output of
intake_esm.show_versions()
here:The text was updated successfully, but these errors were encountered: