NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-java] Difference between netcdfJava 4.6.5 and 4.6.6

The output from version 4.6.6 is right. This file is the so-called netCDF-4 
file, an HDF5 file that follows the netCDF-4 data model. You can use either 
ncdump (from C) or HDFView/h5dump to check the values. I think this is related  
to the fix of signed int representation in Java.

Kent

From: netcdf-java-bounces@xxxxxxxxxxxxxxxx 
[mailto:netcdf-java-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Bob Simons - NOAA 
Federal
Sent: Wednesday, June 15, 2016 1:16 PM
To: Java NetCDF
Subject: [netcdf-java] Difference between netcdfJava 4.6.5 and 4.6.6

Using the file downloaded a week ago from
http://data.nodc.noaa.gov/thredds/catalog/testdata/wod_ragged/05052016/catalog.html?dataset=testdata/wod_ragged/05052016/ind199105_ctd.nc
(and hopefully unchanged since),
if I use this Java code to dump the values of 3 scalar variables
        StringWriter sw = new StringWriter();
        NCdumpW.print(String2.unitTestDataDir + 
"nccf/ncei/ind199105_ctd.nc<http://ind199105_ctd.nc>",
            sw, false, false, false, false, "crs;WODf;WODfd", //;-separated
            null /*cancel*/);
        System.out.println(sw.toString());

with netcdfAll-4.6.5.jar, I get:
...
 data:
crs =0
WODf =0
WODfd =0

with netcdfAll-4.6.6.jar, I get:
...
 data:
crs =-2147483647
WODf =-32767
WODfd =-32767

I suspect that the 4.6.5 results are correct, but I'm not certain.
If so, then it is a bug in 4.6.6.
If not, then please let me know.
Or maybe I'm doing something wrong.
Can you please investigate?
Thank you.

If I should report this some other place/way, please let me know.

--
Sincerely,

Bob Simons
IT Specialist
Environmental Research Division
NOAA Southwest Fisheries Science Center
99 Pacific St., Suite 255A      (New!)
Monterey, CA 93940               (New!)
Phone: (831)333-9878            (New!)
Fax:   (831)648-8440
Email: bob.simons@xxxxxxxx<mailto:bob.simons@xxxxxxxx>

The contents of this message are mine personally and
do not necessarily reflect any position of the
Government or the National Oceanic and Atmospheric Administration.
<>< <>< <>< <>< <>< <>< <>< <>< <><
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: