[GRASS-dev] [GRASS GIS] #3615: Two new functions for grass.script python lib
GRASS GIS
trac at osgeo.org
Thu Aug 9 00:30:16 PDT 2018
#3615: Two new functions for grass.script python lib
-------------------------+-------------------------
Reporter: sbl | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.6.0
Component: Python | Version: svn-trunk
Keywords: | CPU: All
Platform: All |
-------------------------+-------------------------
If you agree, I would like to add two new functions to grass.script python
library, that I could not find in existing lib and that I would like to
use in other module(s):
1. A function that parses a GRASS shell command (e.g. from history) into a
dictionary that can be used in pygrass modules:
https://trac.osgeo.org/grass/browser/sandbox/sbl/t.rast.aggregate.update/t.rast.aggregate.update.py#L67
2: A very basic function, that generates a random name for GRASS maps that
are SQL and GRASS compliant:
https://trac.osgeo.org/grass/browser/sandbox/sbl/t.rast.aggregate.update/t.rast.aggregate.update.py#L116
Docstrings would have to be improved, probably, and I am of course open to
changing names or any other suggestions...
If someone can point me to existing functions that do this which I
overlooked, I am happy to use those instead...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3615>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list