[gradsusr] gadsdf: SDF file has no discernable X coordinate

M.Mahakur mmahakur at tropmet.res.in
Mon Jan 27 05:10:56 EST 2014


Probably your north.nc file in not written proper way/following convection that GrADS can understand. For example lati (N to S), no time and undef information. Because, of which it is not getting the coordinate information. I tried through the following ctl, see the attached fig. Is it looks ok for you?

$ cat north.ctl
dset north.nc
title test north.nc
dtype netcdf
options yrev
undef -9999
# arbitrary undef value
xdef 20 linear -20.0 2.5
ydef 17 linear 30.0 2.5
zdef 1 levels 1000
tdef 1 linear 27jan2013 1yr 
# arbitrary tdef
vars 1
north 0 y,x pressure
endvars

Regards,
Mahakur

----- Original Message -----
From: Noelia otero <noeli1680 at gmail.com>
To: gradsusr at gradsusr.org
Sent: Mon, 27 Jan 2014 14:35:57 +0530 (IST)
Subject: [gradsusr] gadsdf: SDF file has no discernable X coordinate

Hi Jim,

Thanks for your answer. I tried to change the units as you suggested, just
like "degrees" (for both lon and lat), but it doesn't work. I'd like to
attach my file (this is another file similar, created from R) and I also
attach the data descriptor that I made.

This is the output from ncdump -c :
netcdf north {
dimensions:
long = 25 ;
lati = 17 ;
variables:
double long(long) ;
long:units = "degrees" ;
double lati(lati) ;
lati:units = "degrees" ;
double north(lati, long) ;
north:units = "Pa" ;
north:missing_value = -999. ;
data:

 long = -20, -17.5, -15, -12.5, -10, -7.5, -5, -2.5, 0, 2.5, 5, 7.5, 10,
    12.5, 15, 17.5, 20, 22.5, 25, 27.5, 30, 32.5, 35, 37.5, 40 ;

 lati = 70, 67.5, 65, 62.5, 60, 57.5, 55, 52.5, 50, 47.5, 45, 42.5, 40,
37.5,
    35, 32.5, 30 ;
}

Any idea about how it's happening?
Many thanks in advance!!

Cheers,

Noelia

-------------- next part --------------
A non-text attachment was scrubbed...
Name: north.png
Type: image/png
Size: 30666 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20140127/39efa4f7/attachment-0001.png 


More information about the gradsusr mailing list