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.
Robert S Laramee wrote: > > Hi John, > > > > > along these same lines, i have a little app i wrote that reads ASCII > > data files, builds a VisAD data structure with the data and writes out > > netCDF files (for use with the SpreadSheet). these netCDF files are > > signifigantly larger than the ASCII! 2.6 Mb of ASCII data becomes a 4.6 > > Mb netCDF file. is this expected, or is it likely i'm doing something > > wrong? > > Are you using Java's Output Object Serialization to do this? I ran into a > very similar problem with Java's ObjectOutputStream. If you are invoking: No - I'm just using a Plain Object to do the saving, as in: public void saveData(String outputFileName, Data d) throws BadFormException, IOException, VisADException, RemoteException { File f = new File(outputFileName); Plain saver = new Plain(); saver.save(f.getPath(), d, true); saver = null; } -john
visad
archives: