[gradsusr] Line Graph!

abbas mofidi abbasmofidi at yahoo.com
Thu Aug 12 11:01:18 EDT 2010


Dear GrADS Users,

I'm trying to use GrADS to plot a line graph with some nc files. But I don't 
know what's the problem that it can not make a graph. You can find the error 
message and also script in the following. 

Any suggestion would be appreciated.

Thanks,
Abbas



Error: 
Cannot plot data - all undefined values
**********************************

    'reinit'
'sdfopen /host/DATA/Temp600-200mb-1Apr-31Oct-Dailymean-1990.nc'
'sdfopen /host/DATA/Temp600-200mb-1Apr-31Oct-Dailymean-1991.nc' 
    'set dfile 1' 
    'set t 1 214'
    'set lon 30 110' 
    'set lat -15 35'
    'set lev 600 200'
    'define a1 = air'
********************************
    'set dfile 2' 
    'set t 1 214'
    'set lon 30 110' 
    'set lat -15 35'
    'set lev 600 200'
    'define a2 = air'
**********====Average====********
    'define a3 = (a1+a2)/2'

    'define t1 = aave(a3,lon=40,lon=100,lat=-15,lat=5)' 
    'define t2 = aave(a3,lon=40,lon=100,lat=15,lat=35)'
    'define tt1 = ave(t1,z=1,z=6)' 
    'define tt2 = ave(t2,z=1,z=6)'
    'define p1 = tt1-tt2'

    'reset'

    'set t 25 205'
    'set lon 62.5' 
    'set lat 27.5'
    'set lev 200'

    'set gxout line' 
    'set grid on 5 1' 
    'set grads off' 
    'set vrange -6 6' 
    'set clevs -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 8 10'
    'set line 1 1 10'
    'display p1'
***************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100812/f0eb62e8/attachment-0003.html 


More information about the gradsusr mailing list