Change add_offset, scale_factor with cdo
Added by Tobias Bayr over 14 years ago
Dear all,
is it possible to unpack packed netcdf data with cdo, i.e to change the global attributes add_offset to 0.00 and the scalefactor to 1.00 or better to delete them?
I need to do this, because a software I want to use could not read the packed data.
I tried
"cdo -f 32 copy infile ofile"
but this only changes the file format from short to float, but the the data is still packed with scale_factor and add_offset.
Thanks
Tobias Bayr
Replies (3)
RE: Change add_offset, scale_factor with cdo - Added by Uwe Schulzweida over 14 years ago
Hi Tobias,
You can use
cdo -f 32 copy infile ofileto unpack packed netcdf data only with the latest CDO versions 1.4.3 and 1.4.4.
Regards,
Uwe
RE: Change add_offset, scale_factor with cdo - Added by K. Houchi almost 13 years ago
Uwe Schulzweida wrote:
Hi Tobias,
You can use
[...] to unpack packed netcdf data only with the latest CDO versions 1.4.3 and 1.4.4.Regards,
Uwe
Hi Uwe
Just to mention that in my case I had to use rather this syntax!
the one above gave this message!
"Unsupported filetype 32!
Available filetypes: grb/grb2/nc/nc2/nc4/nc4c/srv/ext/ieg "
Cordially,
karim
cdo -b f32 copy infile ofile
RE: Change add_offset, scale_factor with cdo - Added by K. Houchi almost 13 years ago
syntax! => mean syntax below, now above!