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

  • To: Kent Yang <myang6@xxxxxxxxxxxx>
  • Subject: Re: [netcdf-java] Difference between netcdfJava 4.6.5 and 4.6.6
  • From: Sean Arms <sarms@xxxxxxxx>
  • Date: Wed, 15 Jun 2016 12:51:02 -0600
Greetings Bob!

Version 4.6.6 has it correct. There was a bug fix related to FillValues,
and what you are now seeing with the latest version are the fill values for
the short and int data types:

Initial report: https://github.com/Unidata/thredds/issues/539
Fix: https://github.com/Unidata/thredds/pull/544

Cheers,

Sean


On Wed, Jun 15, 2016 at 12:28 PM, Kent Yang <myang6@xxxxxxxxxxxx> wrote:

> 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",
>
>             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
>
> 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.
> <>< <>< <>< <>< <>< <>< <>< <>< <><
>
> _______________________________________________
> 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:
> http://www.unidata.ucar.edu/mailing_lists/
>
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: