Project

General

Profile

cdo delete output file is significantly larger than input file

Added by Luyi Hunter about 7 years ago

Hi,

I used the following command to delete the leap day in my .nc files
cdo delete,month=2,day=29 infile.nc outfile.nc

However, the outfile (2.06G) is significantly larger than infile (940M).

Any insight on this?

Thanks!


Replies (1)

RE: cdo delete output file is significantly larger than input file - Added by Uwe Schulzweida about 7 years ago

Seems that your input file contains compressed NetCDF4 data. CDO needs to decompress those data but it will never compress a file automatically. Use the CDO option -z zip to compress the result:

cdo -z zip delete,month=2,day=29 infile.nc outfile.nc

    (1-1/1)