<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default" style="font-size:12.8000001907349px">Hi,</div><div class="gmail_default" style="font-size:12.8000001907349px"><br></div><div class="gmail_default" style="font-size:12.8000001907349px"><font color="#0000ff">I am using a Landsat ETM Scene imagery for calculating the Linear Corregionalization Method in CoKriging.  (gstat).</font></div><div class="gmail_default" style="font-size:12.8000001907349px"><div dir="ltr" style="font-family:arial,sans-serif;font-size:12.8000001907349px"><div class="gmail_default" style="font-family:tahoma,sans-serif"><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue">Can you kindly debug my snippet (See enclosed). Really appreciate your help. </span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue"><br></span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue">Thanking in advance.</span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue"><br></span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue">> </span><span style="color:blue">coKrige1 <- variogram(coKrige2)
</span><span class="im"><span style="color:rgb(197,6,11)">Error in model.frame.default(terms(formula), as(data, "data.frame"), na.action = na.fail) : 
  object is not a matrix</span></span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:rgb(197,6,11)"><br></span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:16px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:rgb(197,6,11)"><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue">> </span><span style="color:blue">coKrige.fit <- fit.lmc(coKrige1, coKrige2, vgm(1, "Gau", 350, 1), TRUE, 1.0)
</span><span style="color:rgb(197,6,11)">Error in fit.lmc(coKrige1, coKrige2, vgm(1, "Gau", 350, 1), TRUE, 1) : 
  gstatVariogram var1 not present</span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><br></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:rgb(197,6,11)"><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:blue">> </span><span style="color:blue">coKrige.predict <- predict(coKrige.fit, rGrid)
</span><span style="color:rgb(197,6,11)">Error in UseMethod("predict") : 
  no applicable method for 'predict' applied to an object of class "c('variogramModel', 'data.frame')"</span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:rgb(197,6,11)"><br></span></pre><pre style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);white-space:pre-wrap!important;font-size:10.4pt!important"><span style="color:rgb(197,6,11)"><br></span></pre></span></pre></span></pre></div></div><div class="" style="font-family:arial,sans-serif;font-size:12.8000001907349px"><div id=":u7" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 3:33 PM, Rajabhushanam. C <span dir="ltr"><<a href="mailto:rajcheruk@gmail.com" target="_blank">rajcheruk@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 style="font-family:tahoma,sans-serif">Hi,</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">I am using a Landsat ETM Scene imagery for calculating the Linear Corregionalization Method in CoKriging.  (gstat).</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">Specifically, there is one raster band imagery and then using readGDAL and gstat function calls, I am making a gstat object that is input to the Variogram call. Now, while I use <b>fit.lmc()</b>, I get an error message <b>"gstatVariogram var1 not present"</b>. I have done some preliminary findings, and there are no pertinent messages in this message board that have Raster as an input to cokriging.</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">Really appreciate if anybody can point me some relevant code or pseudo code to perform cokriging with Landsat one band imagery.</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">Thank You</div><span class="HOEnZb"><font color="#888888"><div style="font-family:tahoma,sans-serif">C. Rajabhushanam.</div></font></span></div>
</blockquote></div><br></div></div>