Let me make sure I understand. 1. You have some uncompressed file, call it u.nc. 2. You compress it using nccopy -d 1 u.nc c.nc to produce the file c.nc 3. You then try to read the c.nc file using a program that calls getVar and when you do so, your program crashes. Do I have that right? > > We have program that uses the netcdf-cxx-4.2 interface to manipulate data > stored in netcdf files. As far as I can tell, everything works fine if the > netcdf files are not compressed. > > However, if I use "nccopy -d 1" to compress the files. The function getVar > crashed. > > > The function we are using is: > > > void netCDF::NcVar::getVar ( const std::vector< size_t > > & start, > const std::vector< size_t > & count, > const std::vector< ptrdiff_t > & stride, > const std::vector< ptrdiff_t > & imap, > short * dataValues > ) const > > > > > Could you let me know if I did something wrong? Thank you very much, > > Norman > > =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: UPO-861727 Department: Support netCDF Priority: High Status: Open =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.