Re: [netcdf-java] Negative and unknown enum value

Thank you for bringing this up and digging into the code! Do you have a
GitHub account? If so, would you mind if I moved this conversation over to
GitHub?

Sean


On Wed, Jul 7, 2021 at 3:45 AM <netty.jawn@xxxxxx> wrote:

> Hi,
>
> after searching for "Vaisala RS41/AUTOSONDE (Finland)" in your repository,
> I found this
>
> https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/resources/resources/wmo/Common_C02_20181107_en.xml
> > <Common_C02_20181107_en>
> > <No>120</No>
> > <DateOfAssignment_en>03/11/2011</DateOfAssignment_en>
> > <CodeFigureForrara>24</CodeFigureForrara>
> > <CodeFigureForBUFR>124</CodeFigureForBUFR>
> > <RadiosondeSoundingSystemUsed_en>Vaisala RS41/AUTOSONDE
> (Finland)</RadiosondeSoundingSystemUsed_en>
> > <Status>Operational</Status>
> > </Common_C02_20181107_en>
>
> This file is or should be used here:
>
> https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/java/ucar/nc2/internal/wmo/CommonCodeTable.java
> Unfortunately only C1, C3 and C12 are active at the moment. C2 is
> commented out. This explains the "Unknown enum value".
>
> > Gesendet: Montag, 05. Juli 2021 um 15:25 Uhr
> > Von: netty.jawn@xxxxxx
> > An: netcdf-java@xxxxxxxxxxxxxxxx
> > Betreff: Re: [netcdf-java] Negative and unknown enum value
> >
> > Hi,
> >
> > attached is the LSSW-file.
> >
> > > Gesendet: Montag, 05. Juli 2021 um 15:23 Uhr
> > > Von: netty.jawn@xxxxxx
> > > An: netcdf-java@xxxxxxxxxxxxxxxx
> > > Betreff: [netcdf-java] Negative and unknown enum value
> > >
> > > Hi,
> > >
> > > I am using netcdf-java 5.3.3 to read various bufr-files. It works very
> well, but 2 things are strange:
> > >
> > > 1. 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.
> > >
> > > 2. 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.
> > >
> > > Here are my test results:
> > > - BUFR Viewer       https://kunden.dwd.de/bufrviewer/
> > >             LSSW    0 02 011    RADIOSONDE TYPE
>      CODE_TABLE    10**  0              0       8 bits            142    [
> 142.000 ]
> > >             DWSG    0 02 011    RADIOSONDE TYPE
>      CODE_TABLE    10**  0              0       8 bits            124    [
> 124.000 ]
> > > - toolsUI 5.3.3
> https://www.unidata.ucar.edu/downloads/netcdf-java/
> > >             LSSW    Radiosonde_type =   "Unknown enum value=-114"
> CodeTable 0-2-11
> > >             DWSG    Radiosonde_type =   "Unknown enum value=124"
> CodeTable 0-2-11
> > > - toolsUI-5.4.1 Only NULL for both files
> > > - BUFRdisplay       http://www.elnath.org.uk/
> > >             LSSW    8,"Radiosonde type","Code table","0-02-011",142 ->
> Vaisala RS41 with pressure derived from GPS height/AUTOSONDE (Finland)
> > >             DWSG    8,"Radiosonde type","Code table","0-02-011",124 ->
> Vaisala RS41/AUTOSONDE (Finland)
> > > - ecCodes   https://confluence.ecmwf.int/display/ECC/Releases
> > >             LSSW    "key" : "radiosondeType", "value" : 142, "units" :
> "CODE TABLE"
> > >             DWSG    "key" : "radiosondeType", "value" : 124, "units" :
> "CODE TABLE"
> > >
> > > _______________________________________________
> > > NOTE: All exchanges posted to Unidata maintained email lists are
> > > recorded in the Unidata inquiry tracking system and made publicly
> > > available through the web.  Users who post to any of the lists we
> > > maintain are reminded to remove any personal information that they
> > > do not want to be made public.
> > >
> > >
> > > netcdf-java mailing list
> > > netcdf-java@xxxxxxxxxxxxxxxx
> > > For list information or to unsubscribe, visit:
> https://www.unidata.ucar.edu/mailing_lists/
> > >
> > _______________________________________________
> > NOTE: All exchanges posted to Unidata maintained email lists are
> > recorded in the Unidata inquiry tracking system and made publicly
> > available through the web.  Users who post to any of the lists we
> > maintain are reminded to remove any personal information that they
> > do not want to be made public.
> >
> >
> > netcdf-java mailing list
> > netcdf-java@xxxxxxxxxxxxxxxx
> > For list information or to unsubscribe, visit:
> https://www.unidata.ucar.edu/mailing_lists/
> >
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> https://www.unidata.ucar.edu/mailing_lists/
>
  • 2021 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: