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

<html><head></head><body><div style="font-family: Verdana;font-size: 
12.0px;"><div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi Sean,</div>

<div>&nbsp;</div>

<div>I created a account for GitHub with the same email. My username is 
netty-jawn</div>

<div>&nbsp;</div>

<div>
<div><b>Gesendet:</b>&nbsp;Donnerstag, 08. Juli 2021 um 02:01 Uhr

<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 
10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Von:</b>&nbsp;&quot;Sean Arms&quot; 
&lt;sarms@xxxxxxxx&gt;<br/>
<b>An:</b>&nbsp;netty.jawn@xxxxxx<br/>
<b>Cc:</b>&nbsp;netcdf-java@xxxxxxxxxxxxxxxx<br/>
<b>Betreff:</b>&nbsp;Re: [netcdf-java] Negative and unknown enum value</div>

<div>
<div>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&nbsp;over to 
GitHub?
<div>&nbsp;
<div>
<div class="gmail_signature">
<div>Sean</div>

<div>&nbsp;</div>
</div>
</div>
</div>
</div>
&nbsp;

<div class="gmail_quote">
<div class="gmail_attr">On Wed, Jul 7, 2021 at 3:45 AM &lt;<a 
href="mailto:netty.jawn@xxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netty.jawn@xxxxxx&#39;; return 
false;" target="_blank">netty.jawn@xxxxxx</a>&gt; wrote:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 
0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">Hi,<br/>
<br/>
after searching for &quot;Vaisala RS41/AUTOSONDE (Finland)&quot; in your 
repository, I found this<br/>
<a 
href="https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/resources/resources/wmo/Common_C02_20181107_en.xml";
 
target="_blank">https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/resources/resources/wmo/Common_C02_20181107_en.xml</a><br/>
&gt; &lt;Common_C02_20181107_en&gt;<br/>
&gt; &lt;No&gt;120&lt;/No&gt;<br/>
&gt; &lt;DateOfAssignment_en&gt;03/11/2011&lt;/DateOfAssignment_en&gt;<br/>
&gt; &lt;CodeFigureForrara&gt;24&lt;/CodeFigureForrara&gt;<br/>
&gt; &lt;CodeFigureForBUFR&gt;124&lt;/CodeFigureForBUFR&gt;<br/>
&gt; &lt;RadiosondeSoundingSystemUsed_en&gt;Vaisala RS41/AUTOSONDE 
(Finland)&lt;/RadiosondeSoundingSystemUsed_en&gt;<br/>
&gt; &lt;Status&gt;Operational&lt;/Status&gt;<br/>
&gt; &lt;/Common_C02_20181107_en&gt;<br/>
<br/>
This file is or should be used here:<br/>
<a 
href="https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/java/ucar/nc2/internal/wmo/CommonCodeTable.java";
 
target="_blank">https://github.com/Unidata/netcdf-java/blob/develop/cdm-core/src/main/java/ucar/nc2/internal/wmo/CommonCodeTable.java</a><br/>
Unfortunately only C1, C3 and C12 are active at the moment. C2 is commented 
out. This explains the &quot;Unknown enum value&quot;.<br/>
<br/>
&gt; Gesendet: Montag, 05. Juli 2021 um 15:25 Uhr<br/>
&gt; Von: <a href="mailto:netty.jawn@xxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netty.jawn@xxxxxx&#39;; return 
false;" target="_blank">netty.jawn@xxxxxx</a><br/>
&gt; An: <a href="mailto:netcdf-java@xxxxxxxxxxxxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netcdf-java@xxxxxxxxxxxxxxxx&#39;;
 return false;" target="_blank">netcdf-java@xxxxxxxxxxxxxxxx</a><br/>
&gt; Betreff: Re: [netcdf-java] Negative and unknown enum value<br/>
&gt;<br/>
&gt; Hi,<br/>
&gt;<br/>
&gt; attached is the LSSW-file.<br/>
&gt;<br/>
&gt; &gt; Gesendet: Montag, 05. Juli 2021 um 15:23 Uhr<br/>
&gt; &gt; Von: <a href="mailto:netty.jawn@xxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netty.jawn@xxxxxx&#39;; return 
false;" target="_blank">netty.jawn@xxxxxx</a><br/>
&gt; &gt; An: <a href="mailto:netcdf-java@xxxxxxxxxxxxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netcdf-java@xxxxxxxxxxxxxxxx&#39;;
 return false;" target="_blank">netcdf-java@xxxxxxxxxxxxxxxx</a><br/>
&gt; &gt; Betreff: [netcdf-java] Negative and unknown enum value<br/>
&gt; &gt;<br/>
&gt; &gt; Hi,<br/>
&gt; &gt;<br/>
&gt; &gt; I am using netcdf-java 5.3.3 to read various bufr-files. It works 
very well, but 2 things are strange:<br/>
&gt; &gt;<br/>
&gt; &gt; 1. Compared to other tools, I got sometimes different values for the 
variable &quot;obs.Radiosonde_type&quot;, -114 in this case. This is a invalid 
value, since the values of this enum are only positive.<br/>
&gt; &gt;<br/>
&gt; &gt; 2. I also got &quot;Unknown enum value&quot; for several enums, for 
example &quot;obs.Radiosonde_type&quot;. 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 &quot;obs.Radiosonde_type&quot; for me.<br/>
&gt; &gt;<br/>
&gt; &gt; Here are my test results:<br/>
&gt; &gt; - BUFR Viewer&nbsp; &nbsp; &nbsp; &nbsp;<a 
href="https://kunden.dwd.de/bufrviewer/"; 
target="_blank">https://kunden.dwd.de/bufrviewer/</a><br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LSSW&nbsp; &nbsp; 0 02 
011&nbsp; &nbsp; RADIOSONDE TYPE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODE_TABLE&nbsp; 
&nbsp; 10**&nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; 
&nbsp; &nbsp; &nbsp;8 bits&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 142&nbsp; 
&nbsp; [ 142.000 ]<br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWSG&nbsp; &nbsp; 0 02 
011&nbsp; &nbsp; RADIOSONDE TYPE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CODE_TABLE&nbsp; 
&nbsp; 10**&nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; 
&nbsp; &nbsp; &nbsp;8 bits&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 124&nbsp; 
&nbsp; [ 124.000 ]<br/>
&gt; &gt; - toolsUI 5.3.3&nbsp; &nbsp; &nbsp;<a 
href="https://www.unidata.ucar.edu/downloads/netcdf-java/"; 
target="_blank">https://www.unidata.ucar.edu/downloads/netcdf-java/</a><br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LSSW&nbsp; &nbsp; 
Radiosonde_type =&nbsp; &nbsp;&quot;Unknown enum value=-114&quot; CodeTable 
0-2-11<br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWSG&nbsp; &nbsp; 
Radiosonde_type =&nbsp; &nbsp;&quot;Unknown enum value=124&quot; CodeTable 
0-2-11<br/>
&gt; &gt; - toolsUI-5.4.1 Only NULL for both files<br/>
&gt; &gt; - BUFRdisplay&nbsp; &nbsp; &nbsp; &nbsp;<a 
href="http://www.elnath.org.uk/"; 
target="_blank">http://www.elnath.org.uk/</a><br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LSSW&nbsp; &nbsp; 
8,&quot;Radiosonde type&quot;,&quot;Code table&quot;,&quot;0-02-011&quot;,142 
-&gt; Vaisala RS41 with pressure derived from GPS height/AUTOSONDE 
(Finland)<br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWSG&nbsp; &nbsp; 
8,&quot;Radiosonde type&quot;,&quot;Code table&quot;,&quot;0-02-011&quot;,124 
-&gt; Vaisala RS41/AUTOSONDE (Finland)<br/>
&gt; &gt; - ecCodes&nbsp; &nbsp;<a 
href="https://confluence.ecmwf.int/display/ECC/Releases"; 
target="_blank">https://confluence.ecmwf.int/display/ECC/Releases</a><br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LSSW&nbsp; &nbsp; 
&quot;key&quot; : &quot;radiosondeType&quot;, &quot;value&quot; : 142, 
&quot;units&quot; : &quot;CODE TABLE&quot;<br/>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DWSG&nbsp; &nbsp; 
&quot;key&quot; : &quot;radiosondeType&quot;, &quot;value&quot; : 124, 
&quot;units&quot; : &quot;CODE TABLE&quot;<br/>
&gt; &gt;<br/>
&gt; &gt; _______________________________________________<br/>
&gt; &gt; NOTE: All exchanges posted to Unidata maintained email lists are<br/>
&gt; &gt; recorded in the Unidata inquiry tracking system and made publicly<br/>
&gt; &gt; available through the web.&nbsp; Users who post to any of the lists 
we<br/>
&gt; &gt; maintain are reminded to remove any personal information that 
they<br/>
&gt; &gt; do not want to be made public.<br/>
&gt; &gt;<br/>
&gt; &gt;<br/>
&gt; &gt; netcdf-java mailing list<br/>
&gt; &gt; <a href="mailto:netcdf-java@xxxxxxxxxxxxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netcdf-java@xxxxxxxxxxxxxxxx&#39;;
 return false;" target="_blank">netcdf-java@xxxxxxxxxxxxxxxx</a><br/>
&gt; &gt; For list information or to unsubscribe, visit: <a 
href="https://www.unidata.ucar.edu/mailing_lists/"; 
target="_blank">https://www.unidata.ucar.edu/mailing_lists/</a><br/>
&gt; &gt;<br/>
&gt; _______________________________________________<br/>
&gt; NOTE: All exchanges posted to Unidata maintained email lists are<br/>
&gt; recorded in the Unidata inquiry tracking system and made publicly<br/>
&gt; available through the web.&nbsp; Users who post to any of the lists we<br/>
&gt; maintain are reminded to remove any personal information that they<br/>
&gt; do not want to be made public.<br/>
&gt;<br/>
&gt;<br/>
&gt; netcdf-java mailing list<br/>
&gt; <a href="mailto:netcdf-java@xxxxxxxxxxxxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netcdf-java@xxxxxxxxxxxxxxxx&#39;;
 return false;" target="_blank">netcdf-java@xxxxxxxxxxxxxxxx</a><br/>
&gt; For list information or to unsubscribe, visit: <a 
href="https://www.unidata.ucar.edu/mailing_lists/"; 
target="_blank">https://www.unidata.ucar.edu/mailing_lists/</a><br/>
&gt;<br/>
<br/>
_______________________________________________<br/>
NOTE: All exchanges posted to Unidata maintained email lists are<br/>
recorded in the Unidata inquiry tracking system and made publicly<br/>
available through the web.&nbsp; Users who post to any of the lists we<br/>
maintain are reminded to remove any personal information that they<br/>
do not want to be made public.<br/>
<br/>
<br/>
netcdf-java mailing list<br/>
<a href="mailto:netcdf-java@xxxxxxxxxxxxxxxx"; 
onclick="parent.window.location.href=&#39;mailto:netcdf-java@xxxxxxxxxxxxxxxx&#39;;
 return false;" target="_blank">netcdf-java@xxxxxxxxxxxxxxxx</a><br/>
For list information or to unsubscribe, visit: <a 
href="https://www.unidata.ucar.edu/mailing_lists/"; 
target="_blank">https://www.unidata.ucar.edu/mailing_lists/</a></blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>


  • 2021 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: