about reading a netcdf file

Cristian Gonzal Muñoz Castillo cmunozc at UDEC.CL
Tue Sep 29 17:55:48 EDT 2009


Hi everyone,

I try to read a netcdf file called "tutorial_ascii.nc" but i wasn't able
to in grads version 1.9.0-rc1 32-bit on kubuntu 9.04

I get the following message:

Scanning self-describing file:  tutorial_ascii.nc
SDF file has no discernable X coordinate.

my ncdump for this file is:

netcdf tutorial_ascii {
dimensions:
        mxstr = 16 ;
        hdr_arr_len = 3 ;
        obs_arr_len = 5 ;
        nhdr = 5 ;
        nobs = UNLIMITED ; // (2140 currently)
variables:
        char hdr_typ(nhdr, mxstr) ;
                hdr_typ:long_name = "message type" ;
        char hdr_sid(nhdr, mxstr) ;
                hdr_sid:long_name = "station identification" ;
        char hdr_vld(nhdr, mxstr) ;
                hdr_vld:long_name = "valid time" ;
                hdr_vld:units = "YYYYMMDD_HHMMSS UTC" ;
        float hdr_arr(nhdr, hdr_arr_len) ;
                hdr_arr:long_name = "array of observation station header
values" ;
                hdr_arr:_fill_value = -9999.f ;
                hdr_arr:columns = "lat lon elv" ;
                hdr_arr:lat_long_name = "latitude" ;
                hdr_arr:lat_units = "degrees_north" ;
                hdr_arr:lon_long_name = "longitude" ;
                hdr_arr:lon_units = "degrees_east" ;
                hdr_arr:elv_long_name = "elevation " ;
                hdr_arr:elv_units = "meters above sea level (msl)" ;
        float obs_arr(nobs, obs_arr_len) ;
                obs_arr:long_name = "array of observation values" ;
                obs_arr:_fill_value = -9999.f ;
                obs_arr:columns = "hdr_id gc lvl hgt ob" ;
                obs_arr:hdr_id_long_name = "index of matching header data" ;
                obs_arr:gc_long_name = "grib code corresponding to the
observation type" ;
                obs_arr:lvl_long_name = "pressure level (hPa) or
accumulation interval (h)" ;
                obs_arr:hgt_long_name = "height in meters above sea level
(msl)" ;
                obs_arr:ob_long_name = "observation value" ;

// global attributes:
                :FileOrigins = "File
tutorial/out/ascii2nc/tutorial_ascii.nc generated
20090819_230043 UTC on host gimli by the ASCII2NC tool"


any idea why this happens?

regards!

--
Cristian G. Muñoz Castillo
Licenciado en Ciencias Físicas
Geofísico
Depto. Geofísica
Facultad Ciencias Físicas y Matemáticas
Oficina 442
Fono (41) 2203155
Universidad de Concepción
Concepción
Chile



More information about the gradsusr mailing list