[GRASS-user] parse_command r.gwr with -e flag

Vinay Elothunkal vinay223333 at gmail.com
Tue May 3 07:35:47 PDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160503/23015879/attachment.html>


More information about the grass-user mailing list