Closed
Description
This might be user-error in which case I apologize in advance. I'm not very versed in the nuances of fsspec
.
I am able to open this file with xarray regularly but I am not able to figure out the right combination in my intake catalog, at least v2.
import intake
# this works
url = "https://researchworkspace.com/files/42712165/lower-ci_system-B_2006-2007.nc"
of_local = fsspec.open_local(f"simplecache://::{url}", mode="rb")
ds = xr.open_dataset(of_local)
# this doesn't work
data = intake.readers.datatypes.NetCDF3(url) # should this be HDF5?
initial_reader = data.to_reader("xarray:Dataset", chunks={})
initial_reader.read()
Hits error at
f = fsspec.open(data.url, **(data.storage_options or {})).open()
which uses fsspec.open
instead of fsspec.open_local
so I assume that is the issue. Can I create the same behavior using data.storage_options
?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels