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.
Gordon, > From: Gordon Maclean <maclean@xxxxxxxxxxxx> > Subject: bug in java AbstractArray.setDouble > Organization: National Center for Atmospheric Research > Keywords: 200010022324.e92NOgb18003 Java netCDF The above message contained the following: > There is a error in AbstractArray.setDouble: > > > public void > setDouble(int [] index, double value) > throws IOException > { > set(index, new Float(value)); > ^^^^^ > } > > As a result, doubles are converted to floats, then back to > doubles before being written to the netcdf file. I could not find the class "AbstractArray" in our Java netCDF package. I did, however, find the above code in the class "ucar.multiarray.AbstractAccessor" and made the change you suggested. Thanks for reporting this. > ***************************************************** > Gordon Maclean, Software Engineer, 303 497-8794 > Nat'l Center for Atmospheric Research, Boulder CO USA > ***************************************************** Regards, Steve Emmerson <http://www.unidata.ucar.edu>
netcdf-java
archives: