[GRASS-dev] [GRASS GIS] #1109: g.mlist functionality extension:
return e.g. $prefix.001 to $prefix.031 out of $prefix.365 maps
GRASS GIS
trac at osgeo.org
Mon Jul 19 00:11:24 EDT 2010
#1109: g.mlist functionality extension: return e.g. $prefix.001 to $prefix.031 out
of $prefix.365 maps
-------------------------------+--------------------------------------------
Reporter: nikos | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: default | Version: unspecified
Keywords: g.mlist, pattern, | Platform: Unspecified
Cpu: Unspecified |
-------------------------------+--------------------------------------------
A problem:
365 maps were produced using an r.sun(script) with a common prefix. It is
required to extract average values per month [i.e. (1+2+...+31)/31,
(32+33+...+ 59)/28, etc.]. For this task r.series can be used and,
naturally, typing 31+28+... map names to feed the "input=" can/should be
avoided.
Figuring out a wildcard(s) pattern or regular expression to pick e.g. only
maps 001 to 031 out of 365 (all of them with the same prefix of course) is
not easy (I think). The usual way of using "[0-something]" per character
trick, will return also maps >031. My understanding is that g.mlist is
also not "smart" enough to solve this quickly.
A wish:
How about adding such a functionality? Given there are many maps with a
common prefix, the user can set a $BEGIN and an $END number and g.mlist
would return those (counting from $BEGIN, adding all existing numbered
maps up to $END) with the separator that the user has set.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1109>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list