[gradsusr] Problem in setting vrange for negative values -scatterplot

Eric Altshuler ela at cola.iges.org
Thu Aug 2 19:24:27 EDT 2012


Hello Maida,

Your defined variable 'cpc' appears to be a time average of soil wetness (soilw), which can never be negative. What kind of field is 'mrso'? Your latest plot shows that cpc is always positive (or zero), which is expected, while mod is mostly positive but can be slightly negative. I don't think there's anything wrong with your plot.

Best regards,

Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA

E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793

----- Original Message -----
From: "Maida Zahid" <maidazahid.pmd at gmail.com>
To: "GrADS Users Forum" <gradsusr at gradsusr.org>
Sent: Wednesday, August 1, 2012 1:34:45 AM
Subject: Re: [gradsusr] Problem in setting vrange for negative values	-scatterplot


Rashed 


Thank you for replying. The data surely have negative values. You can see variables range from the following commands. 



ga-> set gxout scatter 
ga-> d cpc;mod 
-0.5 8 -15 50 


Output of the above mentioned commands is attached so that you can have a look at the range. 


Regards 
Maida 

On Wed, Aug 1, 2012 at 1:52 PM, Rashed Mahmood < rashidcomsis at gmail.com > wrote: 



Maida 


Are you sure that your variables "cpc" and "mod" have negative values? 
>From your code it appears (but I am not sure) that the variables are positive. As you know, the scatter plot won't move towards negative axis unless one of the variables have negative values. So may be you would like to confirm variable values first. 


Good luck 


Rashed 










On Wed, Aug 1, 2012 at 12:26 PM, Maida Zahid < maidazahid.pmd at gmail.com > wrote: 


Dear Sir, 


Thank you so much. I have used this link already for making scatter plot. The main problem is that scatter plot is plotting only positive values neglecting negative values whether i set vrange or not. 


Regards 
















On Wed, Aug 1, 2012 at 12:45 PM, Muhammad Afzaal < afzaalkarori at gmail.com > wrote: 


Dear Maida 



Following link would be useful for you; 


http://cookbooks.opengrads.org/index.php?title=Recipe-009:_Scatter_plot_with_linear_fit_and_basic_statistics 





MUHAMMAD AFZAAL KARORI 

Institute of Atmospheric Physics 
Chinese Academy of Sciences 
Beijing, China 


Pakistan Meteorological Department 
Islamabad - Pakistan 





On Tue, Jul 31, 2012 at 12:10 PM, Maida Zahid < maidazahid.pmd at gmail.com > wrote: 




Dear all, 




I am trying to draw scatter plot from two files. Following are the commands which i have used to plot it. 



xdfopen soilw.mon.mean.v2-2deg-197901-200512-JJAS.ctl 
define cpc=ave(soilw,t=1,t=27)/100 
xdfopen mrso_Lmon_bcc-csm1-1-2deg_historical_r1i1p1_197901-200512-JJAS.ctl 
set dfile 2 
define mod=ave(mrso,t=1,t=27)/100 
set gxout scatter 
set vrange -0.5 8 
set vrange2 -2 20 
d cpc;mod 


output of this display is attached. 
I am unable to set my axis for negative values.Every time it starts from 0 to positive values either I set the "vrange" to positive values or negative values. 
How can i solve this problem? 


grads version and Os details are: 

Grads version:Grid Analysis and Display System (GrADS) Version 1.9b4 
Linux OS: Linux cslogin 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux 



Thanks in advance. 

Regards 

Maida Zahid 




_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 



_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 





-- 

------------------------------------------------------ 
Maida Zahid 


Assistant Director/Meteorologist 
Research & Development Division 
Pakistan Meteorological Department 
Sector H-8/2, Islamabad 
------------------------------------------------------- 
Contact # : 051-9250334 
------------------------------------------------------- 

_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 






_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 





-- 



_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr



More information about the gradsusr mailing list