Re: writing netCDF-4 file with compression?

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Sun, 17 Aug 2008 15:49:41 -0600

Hi Jeff,

There is a file option that can be set using the setfileoption
procedure called "CompressionLevel".
This allows you to specify the compression-level for data written to
a NetCDF4 classic file.

Prior to opening the file you would make these calls:
setfileoption("nc","Format","NetCDF4Classic")
setfileoption("nc","CompressionLevel",5) ; 0 through 9 possible

This causes all data written to be compressed. There is no way
currently to selectively activate compression
on a per-variable basis.
  -dave

On Aug 13, 2008, at 4:09 PM, Jeff Van Dorn wrote:

> Hello,
>
> I saw in a message on Jan, 28 2008 "about HDF5", that Mary said:
>
> "We do support classic netCDF-4 files (on systems where netCDF-4 is
> supported), which write HDF5 underneath the hood."
>
> I'm wondering if you're able to modify the compression of the
> netCDF file on output (e.g., from the C netCDF API:
> nc_def_var_deflate)? Or does "classic" mean NCL can write netCDF-4
> files but with just using standard settings?
>
> Thanks,
> Jeff
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Aug 17 2008 - 15:49:41 MDT

This archive was generated by hypermail 2.2.0 : Sun Aug 17 2008 - 23:24:33 MDT