Project

General

Profile

RE: cdo gencon fails due to target grid description » runcdo.sh

Script to perform cdo calls - Alexander Robinson, 2021-03-24 13:16

 

# This succeeds:
cdo genbil,grid_NH-40KM.nc grid_CMN-5x5.nc scrip-con_CMN-5x5_NH-40KM.nc

# This one fails:
cdo gencon,grid_NH-40KM.nc grid_CMN-5x5.nc scrip-con_CMN-5x5_NH-40KM.nc

# This succeeds, as long as grid desc files are defined by hand (not by cdo):
cdo gencon,grid_NH-40KM.txt -setgrid,grid_CMN-5x5.txt grid_CMN-5x5.nc scrip_CMN-5x5_NH-40KM.nc



## ajr: note, the following grid desciption files fail with gencon:

# Generate the source grid description file
##cdo griddes grid_CMN-5x5.nc > grid_CMN-5x5.txt

# Generate the target grid description file
##cdo griddes grid_NH-40KM.nc > grid_NH-40KM.txt
(4-4/5)