Project

General

Profile

cdo 2.0.6 -m optionnot working with negative missing value

Added by Patrick Jöckel over 1 year ago

With version 2.0.6 of cdo the `-m` Option is not working correctly:

cdo -M -m -1.E+34 ...

yields the error message

cdo (Abort): missing argument for -m

With a positive value it seems to work.


Replies (1)

RE: cdo 2.0.6 -m optionnot working with negative missing value - Added by Ralf Mueller over 1 year ago

hi Patrick!

the problem is, that - on the command line is used by CDO in indicate an operator. Hence `-m -9999` leaves CDO with a missing argument to `-m`.
But you can use the -setmissval operator instead. it does the same thing and has not problems with negative values:

cdo -f nc -setmissval,-11111111111 -setrtomiss,0,10000 -topo,global_1.0 t.nc 

cheers
ralf
    (1-1/1)