Project

General

Profile

CDO to remaphil CESM data but only get one timestep

Added by LUJIA ZHANG 23 days ago

Hi, everyone.

I am trying to use to cdo tools to regrid the CESM POP data to lat-lon grids. However, for some datasets, I found only one timestep in them is transformed but the others are missed. The transformed data is shown as follows:
! !! !

The command I am using is as follows:

cat > mygrid << EOF
gridtype = lonlat
xsize = 288
ysize = 192
xfirst = 0
xlast = 358.75
yfirst = -90
ylast = 90
EOF
cdo remapbil,mygrid "./b.e21.BHISTsmbb.f09_g17.LE2-1231.011.pop.h.SSS2.185001-185912.nc" "./b.e21.BHISTsmbb.f09_g17.LE2-1231.011.pop.h.SSS2.185001-185912-reshape.nc"

I have also attached two files to this post. You could find the 'b.e21.BHISTsmbb.f09_g17.LE2-1231.011.pop.h.SSS2.185001-185912.nc' one works abnormally while the 'b.e21.BHISTsmbb.f09_g17.LE2-1231.012.pop.h.SSS2.185001-185912.nc'

It's very puzzling to me. Hope someone will help me.


Replies (2)

RE: CDO to remaphil CESM data but only get one timestep - Added by Uwe Schulzweida 22 days ago

In the file ./b.e21.BHISTsmbb.f09_g17.LE2-1231.011.pop.h.SSS2.185001-185912.nc, the variable SSS2 contains undefined values that are not recognized as such. This leads to them being included in the interpolation, which then leads to the program aborting.
You can set these undefined values with setctomiss,inf to missing values:

cdo remapbil,mygrid -setctomiss,inf ./b.e21.BHISTsmbb.f09_g17.LE2-1231.011.pop.h.SSS2.185001-185912.nc result

RE: CDO to remaphil CESM data but only get one timestep - Added by LUJIA ZHANG 22 days ago

It works perfectly. I really appreciate your solution.

    (1-2/2)