I'm trying to read multiple netcdf files at once using xr.open_mfdataset
from a S3 bucket, using s3fs. Is this possible?
Tried the below, which works for xr.open_dataset
for a single file, but doesn't work for multiple files:
import s3fs
import xarray as xr
fs = s3fs.S3FileSystem(anon=False)
s3path = 's3://my-bucket/wind_data*'
store = s3fs.S3Map(root=s3path, s3=s3fs.S3FileSystem(), check=False)
data = xr.open_mfdataset(store, combine='by_coords')