[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NFI-982086]: netcdf4 and NCO



David,

> On a somewhat related note, the reasons we decided to enable netcdf4 is
> because we want to be able to use deflation as our output files are really
> huge these days. However, I now see that none of our normal tools (ncview,
> Ferret, Matlab) can deal with deflated netcdf files. Could you point me to a
> link online or to a document that explains how I can use these files ex post
> facto?

Actually if you just relink ncview or Ferret with the netCDF-4 library, it 
should
be able to handle the deflated files with no other changes.  You may not be able
to relink Matlab, as it's a commercial product that may include its own netCDF-3
library, but we know they are working on netCDF-4 support.  Also with Matlab
you could use this toolbox:

  http://www.unidata.ucar.edu/software/netcdf/software.html#nctoolbox

to access netCDF-4 files from Matlab now.

Finally, if you want to convert the compressed netCDF-4 classic model files you
have to uncompressed netCDF-3 files, you should be able to use the nccopy
program from the latest 4.1 release candidate snapshot to do the conversion,
as follows:

  nccopy -k 1 deflated.nc converted.nc

or 

  nccopy -k 2 deflated.nc converted.nc

depending on whether the converted output should be netCDF classic or the 64-bit
offset variant that still uses the classic model.

For more information on this, see the FAQ section on "Formats, Data Models, and 
Software Releases":

   
http://www.unidata.ucar.edu/software/netcdf/docs/faq.html#formats-and-versions

--Russ



  


Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: NFI-982086
Department: Support netCDF
Priority: High
Status: Closed