Closed lbesnard closed 5 days ago
this depends on what fileset
is, unfortunately. If it contains a list of strings (filepaths, urls, or a glob), then yes, it not working might be a bug. If that's fsspec
objects, though, we need #8923.
fileset is a list of s3_fs objects:
s3_fs = s3fs.S3FileSystem(anon=True)
remote_files = [f"s3://{bucket_name}/{key}" for key in object_keys]
fileset = [s3_fs.open(file) for file in remote_files]
then #8923 will fix this!
What happened?
Looking at the doc https://docs.xarray.dev/en/stable/generated/xarray.open_mfdataset.html
I expected to be able to use ds.encoding["source"] in my preprocess function to retrieve the filename. However I get
What did you expect to happen?
I expected the doc to be correct? unless I missed something trivial.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment