<div dir="ltr"><div>Yes Kishore<code></code>, the spatial resolution is same for both the datasets. But the function (scorr) you have mentioned is valid only for one box (I have four lat. and four lon. values, which are required to draw two boxes). Please share, If you have any idea.<br><br></div><div>Thanks <br></div><div><br></div><div>Regards <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 26, 2015 at 10:15 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>you need to have same resolution for both the datasets so that you can calculate the spatial correlation as below<br><br></div><div>open two datasets as 1 and two and invoke the following command<br></div><div><br></div><code>scorr(<i>var.1, var.2</i>, lon=x1, lon=x2, lat=y1, lat=y2)<br><br></code></div><code>hope this helps!<br><br></code></div><code>Regards,<br></code></div><code>Kishore<br></code></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: <a href="tel:%2B91-8908671881" value="+918908671881" target="_blank">+91-8908671881</a><br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kishoreragi</a><br><br><a href="http://kishoreragi.webnode.com/" target="_blank">http://kishoreragi.webnode.com/</a></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Sat, Dec 26, 2015 at 10:18 PM, Muhammad Latif <span dir="ltr"><<a href="mailto:latif.met@gmail.com" target="_blank">latif.met@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jeff, Let's suppose, I have two boxes on map 1 (Model) and similar on map
2 (Observation) of rainfall climatologies. I want to compute spatial
correlation (scorr) between two maps, considering only the data within
the defined boxes.<br><br></div>Thanks</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 26, 2015 at 9:40 PM, Muhammad Latif <span dir="ltr"><<a href="mailto:latif.met@gmail.com" target="_blank">latif.met@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks Jeff Duda, Would you please elaborate a bit more?<br><br></div>Regards<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 26, 2015 at 9:26 PM, Jeff Duda <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Create your fields such that they have empty boxes within them. Use maskout.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Dec 26, 2015 at 9:28 AM, Muhammad Latif <span dir="ltr"><<a href="mailto:latif.met@gmail.com" target="_blank">latif.met@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi all Grads users,<br><br></div><div>As, "scorr" function calculates the spatial correlation between two variables
over an X-Y domain, i.e. <code>scorr(<i>expr1, expr2</i>, lon=0, lon=360, lat=-90, lat=90)</code>. Is there any way to use this scorr function when the domains are more than one (let's say, I have two boxes on a single map)?<br><br>Thank you <br></div><div> </div><div>Regards<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>Latif<br></div><br></font></span></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>