earthaccess icon indicating copy to clipboard operation
earthaccess copied to clipboard

Error in Google Colab when using `earthaccess.open_virtual_mfdataset()`

Open danielfromearth opened this issue 5 months ago • 2 comments

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>

danielfromearth avatar Jul 08 '25 17:07 danielfromearth