Skip to content

fsspec-related issue or question #825

Closed
@kthyng

Description

@kthyng

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()

https://github.com/intake/intake/blob/cdea0c903948187784451f4a92804c349b4da700/intake/readers/readers.py#L1113C24-L1113C45

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions