[gradsusr] Scatter plot not working

Adam Bamba adambamba_2000 at yahoo.com
Mon Feb 17 02:52:34 EST 2014



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

 
>> 
>>                                 
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140216/aaeeb320/attachment.html 


More information about the gradsusr mailing list