-
Notifications
You must be signed in to change notification settings - Fork 34
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
MethodError: reducing over an empty collection is not allowed; consider supplying init
to the reducer
#325
Comments
It's best to post the complete error, that's usually the most informative part of a github issue! I can probably work out some of the problem from that. The file may be needed too if it's not an obvious problem. You can put it in google drive, share publicly and link it here, or any similar services. |
Thank you for your help! Here is the netCDF file: Sorry for not providing the complete error. Here it is:
|
(Sorry I thought I commented on this the other day but mustn't have actually sent it) But this is an easy one: you are using a netcdf file with an unusual extention If you change it to that it should work - there is no fancy inspection of the file here, the extension is all we check. It's also hard to catch these errors because we use GDAL as a backup for any files we don't know, because it supports so many and will still load them if it has the wrong extension. |
Trying to create a
Raster
from a certain netCDF file results in the error shown in the title of this post. The file can be opened by theNCDatasets
and plotted. I don't know how to provide the file. It's very small; only 5.2 MB. I use Julia 1.8.2 through juliaup.The text was updated successfully, but these errors were encountered: