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

Maida Zahid maidazahid.pmd at gmail.com
Mon Aug 6 03:07:04 EDT 2012


Hello Eric,

     My problem is solved. Thank you so much for your help.

Regards

Maida

On Sat, Aug 4, 2012 at 4:02 AM, Eric Altshuler <ela at cola.iges.org> wrote:

> Hello Maida,
>
> You can turn off the rectangular frame surrounding the plot area with this
> command:
>
> set frame off
>
> I don't think there's any way to turn off the actual X and Y axes
> (corresponding to Y=0 and X=0 respectively), but you probably want these
> plotted.
>
> You said your 'mrso' variable is also a soil moisture field, but it has
> some negative values, which should not occur since soil moisture is a
> strictly non-negative field.
>
> Best regards,
> Eric
>
> ----- Original Message -----
> From: "Maida Zahid" <maidazahid.pmd at gmail.com>
> To: "GrADS Users Forum" <gradsusr at gradsusr.org>
> Sent: Thursday, August 2, 2012 8:41:18 PM
> Subject: Re: [gradsusr] Problem in setting vrange for negative values
> -scatterplot
>
>
>
> Hello Eric,
>
>
> Thank you for understanding my problem and valuable suggestion. As far as
> 'mrso' is concerned it is total soil moisture content (mrso) of one of the
> CMIP5 model output.
> Now my question is that why my plot is showing two vertical (y-axis) and
> two horizontal lines (x-axis) although i have set the range.
>
>
> I have attached another graph explaining my problem.
>
>
> Regards
> Maida
>
> On Fri, Aug 3, 2012 at 8:24 AM, Eric Altshuler < ela at cola.iges.org >
> wrote:
>
>
> 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
>
>
>
>
>
> --
>
> --
>
>
>
> _______________________________________________
> 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
>
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120806/b7ac6836/attachment-0003.html 


More information about the gradsusr mailing list