<div dir="ltr"><div class="gmail_quote">Hi Anna,</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks a lot for the prompt reply! it works fine now thanks ...</div><div class="gmail_quote"><br></div><div class="gmail_quote">for your kind information please note the following warnings</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">"" "main.c: In function ‘main’:</div><div class="gmail_quote">main.c:42:32: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]</div><div class="gmail_quote">main.c:42:25: warning: variable ‘SE’ set but not used [-Wunused-but-set-variable]</div><div class="gmail_quote">Installing...</div><div class="gmail_quote">Updating addons metadata file...</div><div class="gmail_quote">Installation of <r.gwr> successfully finished"""</div></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On 4 May 2016 00:33, "Anna Petrášová" <<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Tue, May 3, 2016 at 10:35 AM, Vinay Elothunkal <<a href="mailto:vinay223333@gmail.com" target="_blank">vinay223333@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I want to parse the command r.gwr using python scripting (parse_command). I<br>
> can parse all the results without any problem as shown below......<br>
><br>
>>>> bw=g.parse_command('r.gwr',mapx=('B1','B2'), mapy='B3',<br>
>>>> estimates='tmp_bathymetry', residuals='residual', bandwidth=10,<br>
>>>> overwrite=True)<br>
> Calculating average...<br>
> 100%<br>
> Geographically weighted regression...<br>
> 100%<br>
>>>> bw<br>
> {u'': None, u'bmean1': u'0.00326378', u'bmean0': u'173.645', u'Rsq1':<br>
> u'0.0024281', u'bmin2': u'-1.17172', u'bmin1': u'-1.5533', u'bmin0':<br>
> u'-13376', u'bmax1': u'3.42206', u'bmax0': u'6829.21', u'AIC': u'38512.1',<br>
> u'bmax2': u'2.15423', u'AIC2': u'45268.2', u'AIC1': u'39181.4', u'BIC':<br>
> u'38531.5', u'Rsqadj': u'0.984456', u'bstddev2': u'0.628214', u'bstddev0':<br>
> u'3798.71', u'bstddev1': u'0.552098', u'BIC2': u'45272.7', u'Rsq':<br>
> u'0.984463', u'BIC1': u'39185.9', u'F': u'146367', u'Rsq2': u'0.0514878',<br>
> u'bmean2': u'0.859825', u'F1': u'722.008', u'F2': u'15310.1', u'predictor2':<br>
> u'B2', u'predictor1': u'B1', u'AICc1': u'39181.4', u'AICc2': u'45268.2',<br>
> u'n': u'4623', u'AICc': u'38512.1'}<br>
><br>
><br>
><br>
> But I cannot parse the optimal bandwidth when I use '-e' flag which is only<br>
> printing on the screen as shown below ....<br>
><br>
>>>> bw=g.parse_command('r.gwr',mapx=('B1','B2'), mapy='B3',<br>
>>>> estimates='tmp_bathymetry', residuals='residual', bandwidth=10,<br>
>>>> flags='eg',overwrite=True)<br>
> Estimating optimal bandwidth...<br>
> Testing bandwidth 10<br>
> 100%<br>
> Testing bandwidth 5<br>
> 100%<br>
> Testing bandwidth 3<br>
> 100%<br>
> Testing bandwidth 2<br>
> 100%<br>
> Estimated optimal bandwidth: 2<br>
>>>> bw<br>
> {}<br>
>>>><br>
><br>
> Any comments are appreciable<br>
><br>
> GRASS 7.1.svn (Ubuntu)<br>
><br>
> Thanks,<br>
> Vinay<br>
><br>
> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br>
<br>
Hi,<br>
<br>
I updated the source code, so if you reinstall it, it should work. You<br>
have to call it together with -g flag.<br>
<br>
Anna<br>
</blockquote></div>
</div>