Project

General

Profile

replacing values in nc file

Added by Tanmoyee Bhattacharya almost 7 years ago

I have a nc file with lat lon time and rainfall.The rainfall has -999 value.I want to change -999 value to zero.If it is possible by cdo?


Replies (1)

RE: replacing values in nc file - Added by Karin Meier-Fleischer almost 7 years ago

Hi Tanmoyee,

have a look at REPLACEVALUES in the documentation. To replace an old value with a new value:

cdo setvals,-999,0 infile outfile

But if -999 should be uses as missing value than you have to use the setmistoc operator:

cdo setctomiss,-999 infile outfile

-Karin

    (1-1/1)