Land-Sea Mask ERA-Interim
Added by paolo de luca over 5 years ago
Hi,
I need to apply the ERA-Interim land-sea mask to a given variable so that the ocean gridpoints will be eventually excluded or set to NaN.
I found this very helpful https://code.mpimet.mpg.de/boards/1/topics/2920
So that the following code quite works
cdo -f nc -setmissval,0 -mul -eqc,0 mask.nc input.nc output.nc
The problem is that the ERA-Interim land-sea mask assigns 0 to sea and 1 to land, which is the opposite case asked in the above question.
How can I adapt the code to my case with 0 = sea and 1 = land?
Thanks
Replies (3)
RE: Land-Sea Mask ERA-Interim - Added by paolo de luca over 5 years ago
here's the ERA-Interim Land-Sea Mask (taken from https://apps.ecmwf.int/datasets/data/interim-full-invariant/) and a sample of t2m ERA-Interim global dataset.
ERA-Interim_land_sea_mask.nc (230 KB) ERA-Interim_land_sea_mask.nc | ERA-Interim Land-Sea Mask | ||
ERA-Interim_t2m_sample.nc (22.1 MB) ERA-Interim_t2m_sample.nc | t2m ERA-Interim sample |
RE: Land-Sea Mask ERA-Interim - Added by Karin Meier-Fleischer over 5 years ago
Hi Paolo,
cdo -f nc -setctomiss,0 -mul ERA-Interim_land_sea_mask.nc ERA-Interim_t2m_sample.nc output.nc
-Karin
RE: Land-Sea Mask ERA-Interim - Added by paolo de luca over 5 years ago
Dear karin,
it works
Thank you
paolo