[GRASSLIST:3430] Re: batching the export process

Richard Greenwood rich at greenwoodmap.com
Mon May 17 12:30:21 EDT 2004


Kirk R. Wythers wrote:

> I'm looking for suggestions as to automating the export process. I want 
> to batch process an export job of several hundred orthorectified raster 
> maps form grass57, so that others can digitize them in ARC-GIS. I'd 
> appreciate hearing approaches that folks have use for this kind of work?
> 
> Thanks,
> 
> Kirk


I use a shell script for things like that. For example,

1. create a list of raster to export in a text file:
     ls /LOCATION/MAPSET/cellhd > list.txt

2. create a script "export.sh" something like:
     while read f
         do
             g.region rast=$f
             r.out.tiff -t input=$f output=$f
	done

3. run the script:
     ./export.sh < list.txt



-- 
Richard Greenwood
www.greenwoodmap.com




More information about the grass-user mailing list