Skip to content

Error in Google Colab when using earthaccess.open_virtual_mfdataset() #1046

@danielfromearth

Description

@danielfromearth

Description

When trying to do earthaccess.open_virtual_mfdataset() in Google Colab, ValueError: Reference-FS's target filesystem must have same valueof asynchronous is raised — whereas the same code (other than using "access": "indirect" instead of "access": "direct") runs successfully when in the Openscapes' 2i2c Jupyterhub.

Full Traceback ```traceback --------------------------------------------------------------------------- ValueError Traceback (most recent call last) in

/usr/local/lib/python3.11/dist-packages/earthaccess/dmrpp_zarr.py in open_virtual_mfdataset(granules, group, access, load, preprocess, parallel, **xr_combine_nested_kwargs)
129 refs = vds.virtualize.to_kerchunk(filepath=None, format="dict")
130 protocol = "s3" if "s3" in fs.protocol else fs.protocol
--> 131 return xr.open_dataset(
132 "reference://",
133 engine="zarr",

14 frames
/usr/local/lib/python3.11/dist-packages/fsspec/implementations/reference.py in init(self, fo, target, ref_storage_args, target_protocol, target_options, remote_protocol, remote_options, fs, template_overrides, simple_templates, max_gap, max_block, cache_size, **kwargs)
768 self.fss[k] = AsyncFileSystemWrapper(f, asynchronous=self.asynchronous)
769 elif self.asynchronous ^ f.asynchronous:
--> 770 raise ValueError(
771 "Reference-FS's target filesystem must have same value"
772 "of asynchronous"

ValueError: Reference-FS's target filesystem must have same valueof asynchronous


</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: experience reportA report of the user's personal subjective experience using this software

    Type

    No type

    Projects

    Status

    🆕 New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions