Project

General

Profile

CDO Error (cdf_get_att_double)

Added by Joseph Kuchar over 9 years ago

Hi,

I just installed cdo so that I can regrid a netcdf file with Greenland topography information. However, when I just use the command cdo info Greenland2km.nc, I get the error "Error (cdf_get_att_double) : NetCDF: Attempt to convert between text & numbers."

The full output is as follows:

cdf_get_att_double : ncid = 65536 varid = 1 att = latitude_of_projection_origin val = 1.15547907e-312

Error (cdf_get_att_double) : NetCDF: Attempt to convert between text & numbers

The netcdf file I'm trying to work with can be found here: http://websrv.cs.umt.edu/isis/index.php/1km_Greenland_data_set

I appreciate any help!

Thanks,

Joseph Kuchar


Replies (2)

RE: CDO Error (cdf_get_att_double) - Added by Jaison-Thomas Ambadan over 9 years ago

Hi,

I think the problem is, your file contains a character variable called "mapping" (see ncdump -h), which doesn't have any co-ordinates but is used by other variables. I guess it provides the information regarding mapping/projection. You could try using the NCO operator ncks for extracting a particular variable and then use CDO afterwards. For example,

ncks -h -v topg Greenland2km.nc green_topo.nc

extract the "Bedrock Topography" variable. Now "cdo sinfo green_topo.nc" should work but you may have to use the "mapping" information when you regrid/remap.

Cheers,
J

RE: CDO Error (cdf_get_att_double) - Added by Joseph Kuchar over 9 years ago

That solved my problem! Thank you very much.

Cheers,

Joseph

    (1-2/2)