Project

General

Profile

cdo copy and cat fail with error cdf_put_vara_double

Added by Mathieu-Alexandre Fafard almost 10 years ago

Hi,

I'm currently trying to concatenate several files containing netcdf variables together using the cdo copy or cdo cat commands and it is unfortunately failing with the following error: "Error (cdf_put_vara_double) : NetCDF: Numeric conversion not representable".

I have tried to concatenate the files manually 2 by 2 and some of them fail, and some others work. I have tried using cdo infov on files that work and files that do not, and I can't see any difference between the two. Here is the output of a copy that works (first one) and one that doesn't (second one):

1) hawa 85% /cnfs/dev/regions/que/cli/cdo_hawa/cdo-1.6.1/bin/cdo infov VV_2012050518_044_.nc VV_2012050518_045_.nc
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name
1 : 2012-05-07 14:00:00 1 34762 0 : -18.352 -0.32921 9.0595 : vwnd
2 : 2012-05-07 14:00:00 0.995 34762 0 : -20.530 -0.13777 11.491 : vwnd
-2 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name
1 : 2012-05-07 15:00:00 1 34762 0 : -18.436 -0.29319 9.2764 : vwnd
2 : 2012-05-07 15:00:00 0.995 34762 0 : -20.565 -0.098326 11.526 : vwnd

2) hawa 86% /cnfs/dev/regions/que/cli/cdo_hawa/cdo-1.6.1/bin/cdo infov VV_2012050518_046_.nc VV_2012050518_047_.nc
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name
1 : 2012-05-07 16:00:00 1 34762 0 : -16.150 -0.29143 9.6726 : vwnd
2 : 2012-05-07 16:00:00 0.995 34762 0 : -17.670 -0.10330 11.397 : vwnd
-2 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name
1 : 2012-05-07 17:00:00 1 34762 0 : -14.744 -0.32387 9.6325 : vwnd
2 : 2012-05-07 17:00:00 0.995 34762 0 : -16.442 -0.15140 11.212 : vwnd

What would cause such an error to happens on one copy operation and not the other with two very similar couple of files?

Thanks for your help


Replies (3)

RE: cdo copy and cat fail with error cdf_put_vara_double - Added by Jaison-Thomas Ambadan almost 10 years ago

try the "-b" option like,

cdo -f nc2 -b F64 -cat ifile1 ifile2 ofile.nc

Cheers,
J

RE: cdo copy and cat fail with error cdf_put_vara_double - Added by Mathieu-Alexandre Fafard almost 10 years ago

Thank you, I added the -b option and it worked :)

    (1-3/3)