I have a large number of raster files to remove from a mapset. Are wildcards available to expedite this process?
Thanks,
Kirk
------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------
[Thursday 05 February 2004 10:53] From Kirk R. Wythers
I have a large number of raster files to remove from a mapset. Are
wildcards available to expedite this process?
It's far far better to use the "g.remove" function, than deleting the files by
hand (too many directories to search).
Why wouldn't you just write a small script to create the list of all your
rasters, and then call "g.remove" ?
Like
for map in ${maplist}; do g.remove ra=${map}; done
Your maplist can be created with as many wildcards as you want.
--
Soil & Water Laboratory
Dept. of Biological & Environmental Engineering
Cornell University
ITHACA, NY 14853
Tel: (607)255.2463
[Thursday 05 February 2004 10:53] From Kirk R. Wythers
> I have a large number of raster files to remove from a mapset. Are
> wildcards available to expedite this process?
It's far far better to use the "g.remove" function, than deleting the files by
hand (too many directories to search).
Why wouldn't you just write a small script to create the list of all your
rasters, and then call "g.remove" ?
Like
for map in ${maplist}; do g.remove ra=${map}; done
Your maplist can be created with as many wildcards as you want.
Also, see g.mremove - IIRC it is just such a script...
On 5-Feb-04, at 11:40, SWlab wrote:
[Thursday 05 February 2004 10:53] From Kirk R. Wythers
I have a large number of raster files to remove from a mapset. Are
wildcards available to expedite this process?
It's far far better to use the "g.remove" function, than deleting the files by
hand (too many directories to search).
Why wouldn't you just write a small script to create the list of all your
rasters, and then call "g.remove" ?
Like
for map in ${maplist}; do g.remove ra=${map}; done
Your maplist can be created with as many wildcards as you want.
--
Soil & Water Laboratory
Dept. of Biological & Environmental Engineering
Cornell University
ITHACA, NY 14853
Tel: (607)255.2463
------
Scott W. Mitchell Scott_Mitchell@carleton.ca
Department of Geography and Environmental Studies
Carleton University, B349 Loeb Building (Office A209)
1125 Colonel By Drive, Ottawa, ON Canada K1S 5B6
+1-613-520-2600 ext 2695 Fax: 1-613-520-4301
That's what I'm look'n for. Unfortunately it does not seem to be implemented in 5.7 yet (sorry, I didn't say I was using 5.7 with a mid December build date).
oops... looks like I need to cvs up and try rebuilding.
On Feb 5, 2004, at 11:42 AM, Kirk R. Wythers wrote:
On Feb 5, 2004, at 10:53 AM, Paul Kelly wrote:
What about
g.mremove rast='pattern*'
That's what I'm look'n for. Unfortunately it does not seem to be implemented in 5.7 yet (sorry, I didn't say I was using 5.7 with a mid December build date).
------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------
On Thu, Feb 05, 2004 at 11:42:52AM -0600, Kirk R. Wythers wrote:
On Feb 5, 2004, at 10:53 AM, Paul Kelly wrote:
>What about
>g.mremove rast='pattern*'
That's what I'm look'n for. Unfortunately it does not seem to be
implemented in 5.7 yet (sorry, I didn't say I was using 5.7 with a mid
December build date).
I have uploaded the new parser support from Francesco Pirotti
to 5.3 and added the script to 5.7 as well.
Markus
--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy