Project

General

Profile

add the attributes

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


Replies (1)

RE: add the attributes - Added by Karin Meier-Fleischer over 5 years ago

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

    (1-1/1)