Packing reduces the data volume by reducing the precision of the stored numbers. It is implemented using the NetCDF attributes add_offset and scale_factor. The operator pack calculates the attributes add_offset and scale_factor for all variables. The default data type for all variables is automatically changed to 16-bit integer. Use the CDO option -b to change the data type to a different integer precision, if needed. Missing values are automatically transformed to the current data type. Alternatively, the pack parameters add_offset and scale_factor can be read from a file for each variable.
Usage
cdo_pack(ifile, printparam = NULL, filename = NULL, ofile = NULL)
Arguments
- ifile
String with the path to the input file.
- printparam
BOOL - Print pack parameters to stdout for each variable
- filename
STRING - Read pack parameters from file for each variable[format: name=<> add_offset=<> scale_factor=<>]
- ofile
String with the path to the output file.
Value
Operators that output one or more files return a character vector to the
output files.
Operators that output an indefinite number of files return a string with the
basename of the files.
Operatos that don't return filenames return a character vector with the
string output.