[GRASS-user] automated import via r.in.gdal

Tim Michelsen timmichelsen at gmx-topmail.de
Tue Sep 4 11:10:12 EDT 2007


Hello,
I have a bunch of landsat images which I would like to import all into 
one location. The files are all in the same directory.

How do I write a script to import them all at once:

like


start Grass with MyLocation

for file in path/to/files/
r.in.gdal -e in=path/to/files/
FILENAME.tif out=FILENAME

exit grass

I know bash a little bit and some small python.


Thanks for your hints,
Timmie




More information about the grass-user mailing list