Ensmean missing value
Added by Anna marra over 9 years ago
Hi,
I am using ensmean to calculate mean precipitation from two different datasets. For one of them rain rate missing value is -9.99 and for the other one is -9.999. When I use ensmean unfortunately one of this value is not recognized as missing and it is used in the calculation of mean, giving obviously wrong results (negative precipitation). How can I set properly the missing value?
Thank you in advance.
A C Marra
Replies (5)
RE: Ensmean missing value - Added by Guilherme Martins over 9 years ago
Hi Anna!
Try the operator setmissval, like this:
cdo setmissval,new_undef if.nc of.nc
Where new_undef it's the new undef value.
Cheers,
Guilherme.
RE: Ensmean missing value - Added by Anna marra over 9 years ago
Hi Guilherme,
already tried. It seems do not work with ensmean.
Cheers,
Anna
RE: Ensmean missing value - Added by Guilherme Martins over 9 years ago
Try apply the operator in all files before of the ensemble. This way, all file will have the same undef value.
Guilherme.
RE: Ensmean missing value - Added by Uwe Schulzweida over 9 years ago
The CDO operator ensmean expects that all files have the same structure and the same missing value for the same variables. I have changed this for the next CDO release. A prerelease will be available tomorrow.
RE: Ensmean missing value - Added by Anna marra over 9 years ago
Hi Uwe,
thank you very much. I will install and test it as soon as it will be available.
Cheers,
Uwe