Added by pooran khedri over 5 years ago
Hi everybody,
I want to add the attributes scale_factor and add_offset to the nc file. how to add the attributes to the nc file?
Any help would be appreciated.
cheers,
Pooran
Hi Pooran,
use the setattribute operator to add scale_factor and add_offset to a variable.
E.g. the variable name is t and the scale_factor value is 0.01 and the add_offset value is 447.65
cdo setattribute,t@scale_factor=0.01,t@add_offset=447.65 infile outfile
-Karin