cdo enlarge 1D to 3D
Added by Klaus Pankatz over 8 years ago
Hello,
while analyzing atmospheric and oceanic fields during ENSO+ phases I stumbled over an issue with cdo enlarge.
Is the cdo enlarge command only mend to do horizontal enlargement of the grid?
When I tried to enlarge a 1D time series to a full 3D field (oceanic, 15 depth levels) to mask the 3D-field itself later on, cdo enlarge did not manage to produce a 3D field.
The commands I used were:
cdo sub -timmean -ifthen \
-enlarge,oceanic_3D.nc \
-setrtomiss,-10,0.5 -fldmean -runmean,5 -sellonlatbox,-170,-120,-5,5 -ymonsub oceanic_2D_tos.nc \
-ymonavg oceanic_2D_tos.nc \
-runmean,5 oceanic_3D.nc \
-timmean oceanic_3D.nc \
ENSO+_timmean.nc
I managed to create a mask by copying and merging the 2D mask a couple of times and use cdo setzaxis to set the oceanic_3D vertical axis, but this seems to be rather ugly.
Thanks,
Klaus
Replies (1)
RE: cdo enlarge 1D to 3D - Added by Uwe Schulzweida over 8 years ago
Hello Klaus,
Yes, the CDO operator enlarge is implemented only for horizontal enlargement of the grid.
Cheers,
Uwe