Problem to read netcdf file
Added by Sven Kotlarski almost 13 years ago
hello
I do have a problem with the attached netcdf file (containing two 1D variables: rotated latitude and rotated longitude). I cannot read the file using the CDOs (error message: "cdo info: Open failed on >rcoord_EUR-11.nc< Unsupported file structure"). ncdump and ncks, for instance, work. Do you have any idea what's wrong?
This is the info I get from the "cdo -V" command on my system:
Climate Data Operators version 1.5.4 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2 -pthread
version: gcc (SUSE Linux) 4.6.2
with: PTHREADS NC4 OPeNDAP SZ Z
Compiled: by beyerleu on hellmann (i686-pc-linux-gnu) Mar 6 2012 14:14:48
CDI library version : 1.5.4 of Mar 6 2012 14:14:39
CGRIBEX library version : 1.5.1 of Aug 29 2011 20:30:27
GRIB_API library version : 1.9.9
netCDF library version : 4.1.1 of Apr 21 2010 20:50:00 $
HDF5 library version : 1.8.4
SERVICE library version : 1.3.0 of Mar 6 2012 14:14:21
EXTRA library version : 1.3.0 of Mar 6 2012 14:14:16
IEG library version : 1.3.0 of Mar 6 2012 14:14:20
FILE library version : 1.7.1 of Mar 6 2012 14:14:16
Thanks a lot, Sven
rcoord_EUR-11.nc (4.56 KB) rcoord_EUR-11.nc |
Replies (4)
RE: Problem to read netcdf file - Added by Jaison-Thomas Ambadan almost 13 years ago
Hi Sven,
As far as I can see there is no co-ordinate variable associated with the data variable (or I don't see any data variable afterall, just co-ordinates variables - or may be i'm wrong?) ie, if there is a data variable in the file, say "temp" it will show as "float temp (time, lat, lon)" in the variables section of "ncdump -h"
Cheers,
J.
RE: Problem to read netcdf file - Added by Jaison-Thomas Ambadan almost 13 years ago
sorry just ignore my previous post: In fact there is associated co-ordiate variable - then I guess cdo cannot handle 1D netcdf!
sorry again.
Cheers,
j.
RE: Problem to read netcdf file - Added by Uwe Schulzweida almost 13 years ago
Hi Sven,
your netCDF file contains only coordinates variables for a rotated grid. Such variables are a kind of metadata for CDO. CDO can process only data variables. Metadata like name, grid or datatype are processed only together with data variables.
Best regards,
Uwe
RE: Problem to read netcdf file - Added by Sven Kotlarski almost 13 years ago
Alright, thanks a lot for your help! I'll use NCOs or something else then...
Sven