netcdf-java
netcdf-java copied to clipboard
Update MessageScanner.java
Description of Changes
is that useful ? about m.setTableLookup(embedTable.getTableLookup()) could some ncep bufr(gdas data format) decode error!
PR Checklist
- [x] Link to any issues that the PR addresses
- [ ] Add labels
- [x] Open as a draft PR until ready for review
- [x] Make sure GitHub tests pass
- [ ] Mark PR as "Ready for Review"
What issue(s) is this intended to fix?
What issue(s) is this intended to fix?
Hello, I am personally researching GDAS(Prepbufr) data. I obtained the GDAS - Daily BUFR Files product data for 2022 from the official website.
In the first step, I tried to parse the data through the netcdf-java tool and source code, but I encountered a roadblock. Error codes and error files are as follows:
- error code:
- error file see annex :
In the second step, I re-obtained the product data in 2020, parsed the data through netcdf-java, and found that it was normal. normal file see annex : gdas.t12z.adpsfc.tm00.bufr_d.nr
In the end, after many attempts, I modified the above code and it can be parsed normally. On the one hand, I would like to ask the role of the next method? Does it not pass only when the BUFR template has nested tables? Perhaps the template has changed, but the source code has not been updated. By modifying the secondary code is my current way of solving the problem.
Hi @zfy68 :
I dont have access to the data files. Can you allow all access, or attach to GitHub if they are not too big?
John
Hi @zfy68 :
I dont have access to the data files. Can you allow all access, or attach to GitHub if they are not too big?
John
yes, these file too big.
I have requested access to those data files on google drive.
Hi @JohnLCaron : I have turned on viewing permissions.
Hi, @haileyajohnson https://github.com/Unidata/netcdf-java/pull/1084#issuecomment-1254349616
Apologies for the delay in getting to this issue. It appears that Netcdf-java fails at reading the embedded table in this file. In addition, as also shown in your screenshot, the isBitCountOk
returns false, so there could be additional issues reading this file.
Thank you for investigating this, however, I do not think commenting this out is the correct fix as this code works correctly for other bufr files with embedded tables. I have created a new issue to investigate other fixes for your problem and so I will close this PR.
OK,I also use other bufr file,its no problem。