Project

General

Profile

Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable

Added by praveen rai over 8 years ago

Dear CDO users

I am trying to select different years from the file using following command

cdo selyear,1953,1954,1955 shum.mon.mean.nc shum.mon.mean_a.nc

and I am getting the foolowing error with termination of the process-
cdf_put_att_double : 131072 4 0.000000

Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable
HDF5-DIAG: Error detected in HDF5 (1.8.13) thread 0:
#000: H5T.c line 1766 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type

Error (cdf_close) : NetCDF: HDF error

I am not able to figure out what is going wrong...
Please help...

Thanks in anticipation

Praveen


Replies (5)

RE: Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable - Added by Uwe Schulzweida over 8 years ago

Dear Praveen,

This seems to be bug in CDO. To check this in detail and to fix this problem we need the input file and the CDO version number (result of CDO -V).
Could you please upload the file shum.mon.mean.nc?

Cheers, Uwe

RE: Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable - Added by praveen rai over 8 years ago

Thank you for the reply.....in my system currently CDO version 1.6.9 has been installed.
due to large size of file shum.mon.mean.nc, i can't upload it here but the link for the data file is http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.pressure.html.

Thank you once again

Cheers, Praveen

RE: Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable - Added by Uwe Schulzweida over 8 years ago

Thanks for the netCDF file! This bug will be fixed in the next CDO release. A prerelease will be available next week.
This problem is caused by an attribute with the value "Infinity":

    shum:actual_range = 0.f, Infinityf ;
A workaround for this problem is to replace the Infinity by a real number. Here is an example to set it to 100:
   ncatted -a actual_range,shum,m,f,'0,100'  file.nc
Cheers, Uwe

RE: Error (cdf_put_att_double) : NetCDF: Numeric conversion not representable - Added by praveen rai over 8 years ago

Thanks alot Uwe.....i m waiting for the next CDO release.

Cheers, Praveen

    (1-5/5)