Set ocean to missing values
Added by Louise Olde over 12 years ago
Hello,
I have some datasets where the values over the ocean are set to zero, but I need them to be set as missing values. Is there a way to do this?
I have a land sea mask file.
Thanks, Louise
Replies (3)
RE: Set ocean to missing values - Added by Augusto Sanabria over 12 years ago
Hi Louise,
I have used 'setctomiss' to solve the same problem, something like:
cdo setctomiss,0 inf.nc outf.nc
Cheers,
Augusto
RE: Set ocean to missing values - Added by Louise Olde over 12 years ago
Hello,
Thanks very much for this suggestion.
Unfortunately it is not ideal for me, as some of the values over land are also zero, and I'd like to keep them in!
Louise
RE: Set ocean to missing values - Added by Jaison-Thomas Ambadan over 12 years ago
Hi,
try setting the "ocean part" (0? or set to some other value such as -9999 etc) of your mask file to missing value (using -setmissval or -setcmissval), and then do the masking (multiplication?) with your original data.
Cheers,
J.