-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEXRAD issue - IndexError index out of bounds #207
Comments
@rabernat Thanks for sharing this issue. The To focus on the multi-dimensional variables, you can try: import xradar
import xarray as xr
import pooch
# download and open a NEXRAD2 file from S3
url = "https://noaa-nexrad-level2.s3.amazonaws.com/2024/09/01/FOP1/FOP120240901_000347_V06"
local_file = pooch.retrieve(url, known_hash=None)
ds = xr.open_dataset(local_file, group="sweep_0", engine="nexradlevel2")
# create a chunked version
dsc = ds.chunk()
for var in dsc.data_vars:
if len(dsc[var].dims) > 1:
print(var)
display(dsc[var].load())
|
@syedhamidali - I'm not sure I understand your reponse. Loading this dataset works fine without Dask. When dask comes into the picture, we get an error. This seems like a bug in xradar. The workaround you proposed does not address the root cause. |
Thanks for the detailed report @rabernat. I've reopened #180 as it wasn't fully resolved. A deeper look will take some time. We will definitely look into this after ERAD 2024 where the majority of the xradar devs are currently. Side note: @rabernat You might be interested in the short course we gave last Sunday where we acknowledged the great work of pangeo and project pythia. Thanks also to @syedhamidali for taking care here. |
@kmuehlbauer I wanted to mention that I ran the same code with other file types (Cfradial, Iris...), and they all experienced the same issue with Dask chunking. |
Description
I have found a puzzling bug that only comes up in certain situations with Dask
What I Did
Possibly related to #180.
Experience tells me this has something to do with Dask task tokenization.
The text was updated successfully, but these errors were encountered: