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