-
Notifications
You must be signed in to change notification settings - Fork 77
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
nws noaa grib files open_file but fail to convert OnDiskArray to numpy array (cfgrib >= 0.9.10.2) #358
Comments
I checked the downloaded files: and all use WMO encodings for their parameters except for ds.wwa.bin which uses a LOCAL encoding i.e., and this is not recognised by ecCodes and therefore the shortName key has the "unknown" value |
Thank you @shahramn, for your troubleshooting so far. Yes, I agree that the wwa.bin file has an "unknown" data variable (as seen in the logs). I have done a little bit of debugging and it seems that for all 5 NWS NOAA files, inside Hope this helps |
Hi @ghaarsma, I believe I've fixed the issue (thanks for the report, it was a particular case that we had not previously encountered - alternativeRowScanning in a Mercator grid). Are you able to test my branch locally, or do you need a new release of cfgrib? Cheers, |
Hi @iainrussell, I can confirm that the branch |
Fix issue with alternativeRowScanning and mercator grid (#358)
What happened?
When downloading, opening [
open_file
] and getting the data values from NWS NOAA grib files, all works perfect under cfgrib 0.9.10.1. Any newer cfgrib version, the file still opens, but getting a numpy array from the OnDiskArray fails in the newly (0.9.10.2) added functionget_values_in_order
.What are the steps to reproduce the bug?
Version
0.9.10.2, 0.9.10.3, & 0.9.10.4
Platform (OS and architecture)
Python: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
Relevant log output
Accompanying data
https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.oceanic/VP.001-003/ds.waveh.bin
Organisation
No response
The text was updated successfully, but these errors were encountered: