Closed lassiterdc closed 2 years ago
Can you try opening it directly with netcdf4.Dataset
please? If that does not work, then please raise an issue with that package.
I just edited the original post to show that xr.open_dataset works. I hope that is adequate to show that the issue is with xarray and not netcdf4.Dataset
.
@lassiterdc, in your example above, f_in_ncs
is just a string and you are passing this string to xr.open_mfdataset()
which i don't think knows what to do with it.
f_in_ncs = "data/"
have you tried retrieving the list of all files under "data/" via the glob
module?
import glob
f_in_ncs = sorted(glob.glob("data/*.nc"))
mf_ds = xr.open_mfdataset(f_in_ncs, concat_dim = "time",
chunks={'outlat':3500, 'outlon':7000, 'time':50},
combine = "nested", engine = 'netcdf4')
Ah you should be able to pass "data/*"
too directly to open_mfdataset
I can't believe I forgot the asterisk!!! Thank you for catching that.
What is your issue?
This was raised about a year ago but still seems to be unresolved, so I'm hoping this will bring attention back to the issue. (https://github.com/pydata/xarray/issues/5488)
Data: dropbox sharing link Description: This folder contains 2 files each containing 1 day's worth of 1kmx1km gridded precipitation rate data from the National Severe Storms Laboratory. Each is about a gig (sorry they're so big, but it's what I'm working with!) Code:
Error: