You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using netcdf-java 5.3.3 to read various bufr-files. It works very well, but 2 things are strange:
Compared to other tools, I got sometimes different values for the variable obs.Radiosonde_type, -114 in this case. This is a invalid value, since the values of this enum are only positive.
I also got Unknown enum value for several enums, for example obs.Radiosonde_type. In netcdf-java 5.4.1 these values are NULL. I am not sure, if this a problem with your library, since many (not all) enums can be transformed to string (NetcdfDatasets does this job) and only BUFRdisplay was able to transform obs.Radiosonde_type for me.
// C2("Radiosondes", 2, 1, new String[]{"CodeFigureForBUFR", null, "RadiosondeSoundingSystemUsed_en"}),
Unfortunately only C1, C3 and C12 are active at the moment. C2 is commented out. This explains the Unknown enum value.
Relevant stack trace
No response
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct
I agree to follow the UCAR/Unidata Code of Conduct
The text was updated successfully, but these errors were encountered:
Versions impacted by the bug
v5.x, v6.x, v7.x
What went wrong?
Report from mailing list:
Hi,
I am using netcdf-java 5.3.3 to read various bufr-files. It works very well, but 2 things are strange:
Compared to other tools, I got sometimes different values for the variable
obs.Radiosonde_type
,-114
in this case. This is a invalid value, since the values of thisenum
are only positive.I also got
Unknown enum value
for severalenum
s, for exampleobs.Radiosonde_type
. In netcdf-java 5.4.1 these values areNULL
. I am not sure, if this a problem with your library, since many (not all)enum
s can be transformed to string (NetcdfDatasets does this job) and only BUFRdisplay was able to transformobs.Radiosonde_type
for me.Here are my test results:
BUFR Viewer
[toolsUI](5.3.3 https://www.unidata.ucar.edu/downloads/netcdf-java/)
toolsUI-5.4.1 Only
NULL
for both filesBUFRdisplay
ecCodes
After searching for
Vaisala RS41/AUTOSONDE (Finland)
in your repository, I found this:netcdf-java/cdm-core/src/main/resources/resources/wmo/Common_C02_20181107_en.xml
Lines 948 to 955 in 94e4415
This file is or should be used here:
netcdf-java/cdm-core/src/main/java/ucar/nc2/internal/wmo/CommonCodeTable.java
Line 72 in 94e4415
Unfortunately only C1, C3 and C12 are active at the moment. C2 is commented out. This explains the
Unknown enum value
.Relevant stack trace
No response
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct
The text was updated successfully, but these errors were encountered: