Problem with enlarge command
Added by Francis Rayder over 10 years ago
I have a file titled modern_sst.nc with values for today's sea surface temperatures on a 180 x 90 regular grid. I use the command zonmean to calculate the zonal means:
cdo zonmean modern_sst.nc modern_sst_mean.nc
I now have an output file with 1 longitude and 90 latitudes. Now I am trying to get back to a 180 x 90 grid, with the mean values in all cells along a latitude. I use the command enlarge:
cdo enlarge,r180x90 modern_sst_mean.nc modern_sst_mean_180x90.nc
However, it appears that the enlarge operation turns the data in the modern_sst_mean_180x90.nc output file upside down. Latitudes are reversed! Is this a bug, or am I doing something wrong?
I am attaching both the modern_sst_mean.nc and modern_sst_mean_180x90.nc files so you can have a look.
Replies (1)
RE: Problem with enlarge command - Added by Uwe Schulzweida over 10 years ago
r180x90 is a predefined regular lon/lat grid with an orientation from south to north. You have to use your original data file as parameter for the enlarge operator to get the same orientation:
cdo enlarge,modern_sst.nc modern_sst_mean.nc modern_sst_mean_180x90.nc