<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-AU;}
span.gjwpqfqdb4
        {mso-style-name:gjwpqfqdb4;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:413012839;
        mso-list-type:hybrid;
        mso-list-template-ids:-395425594 566547284 201916441 201916443 201916431 201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
        {mso-level-number-format:alpha-lower;
        mso-level-text:"\(%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";
        color:windowtext;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I would like an opinion please on package gstat and examining anisotropy in variograms.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a set of atmospheric science variables in a regular grid of 3000 points at 1 km resolution.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre>When I use this code for one variable: <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><span style="font-family:"Lucida Console";color:blue">plot(variogram(d1$wrfae ~ 1, d1, alpha=c(0, 45, 90, 135)))</span><span style="font-family:"Lucida Console";color:black"><o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can see the four different directions have different experimental variograms thus exhibiting anisotropy for that variable (as one might expect in an atmospheric data set). I can do the same for another variable of course.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I construct a cross-variogram for two of the variables and plot for anisotropy thus (because this is what I want – the cross-variogram examining spatial correlation):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">g <- gstat(NULL, id = "ae", form = wrfae ~ 1, data=d1)<o:p></o:p></p>
<p class="MsoNormal">g <- gstat(g, id = "in", form = intensity ~ 1, data=d1)<o:p></o:p></p>
<p class="MsoNormal">xv1.aeVin <- variogram(g, alpha=c(0))<o:p></o:p></p>
<p class="MsoNormal">xv2.aeVin <- variogram(g, alpha=c(45))<o:p></o:p></p>
<p class="MsoNormal">xv3.aeVin <- variogram(g, alpha=c(90))<o:p></o:p></p>
<p class="MsoNormal">xv4.aeVin <- variogram(g, alpha=c(135))<o:p></o:p></p>
<p class="MsoNormal">plot(xv1.aeVin)<o:p></o:p></p>
<p class="MsoNormal">plot(xv2.aeVin)<o:p></o:p></p>
<p class="MsoNormal">plot(xv3.aeVin)<o:p></o:p></p>
<p class="MsoNormal">plot(xv4.aeVin)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">but - I get exactly the same experimental variograms for two variables – and the cross-variogram - for each direction (thus implying isotropy).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I use: <o:p></o:p></p>
<p class="MsoNormal">g <- gstat(NULL, id = "ae", form = wrfae ~ 1, data=d1)<o:p></o:p></p>
<p class="MsoNormal">g <- gstat(g, id = "in", form = intensity ~ 1, data=d1)<o:p></o:p></p>
<p class="MsoNormal">xv.aeVin <- variogram(g, alpha=c(0, 45, 90, 135))<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">then I can see the anisotropy for the larger varying variable variogram – but the now superimposed graphs contain also the small varying variable variogram – and the cross-variogram – these lines are not distinguishable from the x-axis
 in the four plots (thus unreadable for analysis). <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m looking for a single plot set (2 variograms and a cross variogram for a given direction) – can I achieve that with some code amendments to my second set of code above?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Alternatively – can I extent the y axis (semi-variance) in the third set of code above?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If it helps I can add the plots …<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My thanks,<o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="mso-fareast-language:EN-AU">________________________________________________________<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="mso-fareast-language:EN-AU">Michael Hewson
</span></i></b><i><span style="font-size:10.0pt;mso-fareast-language:EN-AU">PhD candidate<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:10.0pt;mso-fareast-language:EN-AU"><a href="http://www.gpem.uq.edu.au/crg"><span style="color:blue">Climate Research Group</span></a> |
<a href="http://www.gpem.uq.edu.au/cser"><span style="color:blue">Centre for Spatial Environmental Research</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;mso-fareast-language:EN-AU">The University of Queensland | Brisbane Q 4072 | Australia<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;mso-fareast-language:EN-AU">m.hewson@uq.edu.au |
<b><i>+61 (0)408 379 373<o:p></o:p></i></b></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-AU"><img border="0" width="447" height="55" id="Picture_x0020_1" src="cid:image001.jpg@01CD3DA2.E5F11230" alt="Description: ClimateResearchGroupbanner"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>