[GRASSLIST:6060] RE: g.copy

Matt Doggett mdoggett at coas.oregonstate.edu
Tue Apr 15 20:03:19 EDT 2003


Like yourself, I wish GRASS had a lot more "bulk" commands to do this
automatically.
Instead, I use the shell's 'for' or 'foreach' command while in the
$LOCATION/cell directory like this (csh example):

Grass %> cd $LOCATION/cell
Grass %> foreach map (h*)
foreach? g.copy rast=$file at old,$file at new
foreach? end



> -----Original Message-----
> From: owner-GRASSLIST at baylor.edu [mailto:owner-GRASSLIST at baylor.edu]
On
> Behalf Of Martin Wegmann
> Sent: Tuesday, April 15, 2003 4:51 PM
> To: GRASSLIST(engl)
> Subject: [GRASSLIST:6059] g.copy
> 
> hello,
> 
> I would like to copy all of my raster maps starting with an "h" from
my
> current mapset to a new one in the same location.
> 
> I tried a little bit with g.copy e.g. g.copy rast= |grep
h*@mapset_old,
> h*@mapset_new but that doesn't work.
> 
> any suggestions for a bulk g.copy command?
> 
> thanks in advance, cheers Martin
> 
> 
> --
> Martin Wegmann
> Department of Animal Ecology and Tropical Biology
> Zoology III, Biocenter
> Am Hubland
> D-97074 Würzburg
> Germany
> E-Mail:
> wegmann at biozentrum.uni-wuerzburg.de
> m.wegmann at web.de




More information about the grass-user mailing list