Skip to content
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

Nullptr exception when reading bufr file #1184

Open
tdrwenski opened this issue May 18, 2023 · 0 comments
Open

Nullptr exception when reading bufr file #1184

tdrwenski opened this issue May 18, 2023 · 0 comments

Comments

@tdrwenski
Copy link
Contributor

tdrwenski commented May 18, 2023

When reading the embedded table in a buffer file, netcdf-java throws a nullptr exception. In addition, isBitCountOk returns false for this file, so something more may be going wrong.

Original issue text:

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:

  1. error code:

image

  1. error file see annex :

gdas.t00z.1bamua.tm00.bufr_d

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.

Originally posted by @zfy68 in #1084 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant