[gradsusr] Scatter plot not working

鄔毅愷 ayasp4 at gmail.com
Mon Feb 17 21:51:13 EST 2014


Hi Adam

I think u can try
'set t 1 252'
'define pr=aave(prate.1,lon=-9,lon=-2,lat=5,lat=8)'
'define ndvi=aave(data.2,lon=-9,lon=-2,lat=5,lat=8)'
if we don't set the time, it should be t=1

Your pr and ndvi has no value at t=2 to 252

Joe





2014-02-17 15:52 GMT+08:00 Adam Bamba <adambamba_2000 at yahoo.com>:

>
> Dear grads user,
> I want to do a scatter plot but it does not work.
> What I did as script:
>
>  'reinit'
> 'set display color white'
> 'c'
> 'set grads off'
> 'sdfopen prate2.mon.mean.nc'
> 'sdfopen ndviremap.nc'
> 'define pr=aave(prate.1,lon=-9,lon=-2,lat=5,lat=8)'
> 'define ndvi=aave(data.2,lon=-9,lon=-2,lat=5,lat=8)'
> 'set t 1 252'
> 'set gxout scatter'
> 'd pr ; ndvi'
> 'draw title Test Scatter Statistics, rainfall, ndvi'
> 'draw xlab X rainfall'
> 'draw ylab Y ndvi'
> 'run scatter_fit_stats.gs prate.1 data.2'
> 'print'
> 'printim pratendviscatter.png'
>
> What I got:
>
> ga-> run pratendviscatter5.gs
> No hardcopy metafile open
> All files closed; all defined objects released;
> All GrADS attributes have been reinitialized
>  Linear fit with intercept
> Y = 0 + 0*X
> Non-numeric args to numeric operation
>   Error occurred on line 93
>   In file scatter_fit_stats.gs
>   EPS file written to grads.eps
>
> can anybody help me to solve this issue.
> Thank in advance
>
>
> *Adam Sdick BAMBA*
>
>
>
>
>
>
>
>
>
>   On Saturday, February 15, 2014 9:14 AM, Adam Bamba <
> adambamba_2000 at yahoo.com> wrote:
>  Dear grads user,
> I want to do a scatter plot but it does not work.
>
> What I did as script:
>  'reinit'
> 'set display color white'
> 'c'
> 'set grads off'
> 'sdfopen prate2.mon.mean.nc'
> 'sdfopen ndviremap.nc'
> 'define pr=aave(prate.1,lon=-9,lon=-2,lat=5,lat=8)'
> 'define ndvi=aave(data.2,lon=-9,lon=-2,lat=5,lat=8)'
> 'set t 1 252'
> 'set gxout scatter'
> 'd pr ; ndvi'
> 'draw title Test Scatter Statistics, rainfall, ndvi'
> 'draw xlab X rainfall'
> 'draw ylab Y ndvi'
> 'run scatter_fit_stats.gs prate.1 data.2'
> 'print'
> 'printim pratendviscatter.png'
>
> What I got:
>
> ga-> run pratendviscatter5.gs
> No hardcopy metafile open
> All files closed; all defined objects released;
> All GrADS attributes have been reinitialized
>  Linear fit with intercept
> Y = 0 + 0*X
> Non-numeric args to numeric operation
>   Error occurred on line 93
>   In file scatter_fit_stats.gs
>   EPS file written to grads.eps
>
> can anybody help me to solve this issue.
> Thank in advance
>
>
> *Adam Sdick BAMBA*
>
>
>
>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140218/5575e892/attachment.html 


More information about the gradsusr mailing list