Project

General

Profile

Help requested with "cdo replace"

Added by Bidyut Goswami over 3 years ago

Hi,

I am using the cdo replace command like:

cdo -replace file1 file2 fileout

But the problem I am facing is: the file1 has many variables with different dimension specifications. So when I try to use the "replace" operator CDO skips some of the variables with the message "Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ... ". So my fileout is missing some variables.

This is exactly what warnings I get:

Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_IMPROAD_DIR!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_IMPROAD_DIF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_PERROAD_DIR!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_PERROAD_DIF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_ROOF_DIR!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_ROOF_DIF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_WALL_DIR!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable ALB_WALL_DIF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable TK_ROOF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable TK_WALL!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable TK_IMPROAD!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable CV_ROOF!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable CV_WALL!
Warning (cdfVerifyVars): Inconsistent number of dimensions, skipped variable CV_IMPROAD!

Kindly suggest how can I replace file1 by file2 without skipping any variable.

Thank you.

file2.tar.bz2 (4.55 KB) file2.tar.bz2 Contains the variable which I want to write in file1
file1.tar.bz2 (65.1 MB) file1.tar.bz2

Replies (1)

RE: Help requested with "cdo replace" - Added by Ralf Mueller over 3 years ago

hi!

the listed variables don't follow the CF-convention I think. That's why CDO cannot read/write them. you might select these variables with some NCO command and merge them back into the result of the cdo -replace ... call. Variable selection with NCO can be done with

ncks -v 

hth
ralf

    (1-1/1)