[GRASS-dev] [GRASS GIS] #2121: v.rast.stats: allow choice of statistics
GRASS GIS
trac at osgeo.org
Thu Jan 16 01:03:49 PST 2014
#2121: v.rast.stats: allow choice of statistics
--------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.rast.stats | Platform: Unspecified
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Comment(by mlennert):
Replying to [comment:9 lucadelu]:
> Replying to [comment:6 mlennert]:
>
> >
> > Now, one more issue: since recently (r57999), there is the possibility
to abbreviate option values, but this does not seem to work here:
> >
> >
> > {{{
> > v.rast.stats blks raster=elevation column=elev
method=mini,maxi,mean,stddev -c
> > Processing data (2535 categories)...
> > Traceback (most recent call last):
> > File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-
linux-gnu/scripts/v.rast.stats", line 295, in <module>
> > main()
> > File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-
linux-gnu/scripts/v.rast.stats", line 261, in main
> > i = variables[variable]
> > KeyError: 'mini'
> > }}}
> >
> > I don't know exactly what's needed to make this work, but it would be
nice if it did.
> >
>
> fixed in r58731, I just check the long name and set it instead the
abbreviate one.
Seems to work nicely, thanks !
Moritz
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2121#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list