[GRASS-dev] [GRASS GIS] #3627: i.group: file= parameter for input desired
GRASS GIS
trac at osgeo.org
Fri Aug 24 09:19:23 PDT 2018
#3627: i.group: file= parameter for input desired
--------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.6.0
Component: Imagery | Version: 7.4.0
Resolution: | Keywords: i.group
CPU: Unspecified | Platform: All
--------------------------+-------------------------
Comment (by hellik):
Replying to [ticket:3627 neteler]:
> To enter the input to i.group can reach a significant number of map
names.
>
> On Unix like systems backticks can be used to feed in g.list output with
regex/wildcard search. However, this fails on Windows. Here the file
parameter would be handy:
>
> {{{
> # r.series example, also works on Windows as no backticks involved
> g.list rast pattern="tmean.1981_2010.*.avg"
output=list_tmean_1981_2010.csv
> r.series file=list_tmean_1981_2010.csv ...
> }}}
>
> Wish: add a "file" parameter to i.group is it exists for r.series and
other commands.
for the record, see https://lists.osgeo.org/pipermail/grass-
user/2018-June/078526.html
{{{
not as elegant in linux, but you can do something similar in windows too
e.g. in the winGRASS command line:
:\>FOR /F %c in ('g.list "type=raster" "pattern=*2" "mapset=user1"
"separator=comma"') DO SET RASTER2REMOVE=%c
C:\>SET RASTER2REMOVE=b172,d172,it172,r172
C:\>echo %RASTER2REMOVE%
b172,d172,it172,r172
C:\>g.remove type=raster name=%RASTER2REMOVE%
The following data base element files would be deleted:
raster/b172 at user1
raster/d172 at user1
raster/it172 at user1
raster/r172 at user1
WARNING: Nothing removed. You must use the force flag (-f) to actually
remove them. Exiting.
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3627#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list