[GRASS-user] automated import via r.in.gdal
THK
tkeitt at gmail.com
Tue Sep 4 16:15:50 EDT 2007
Tim Michelsen <timmichelsen <at> gmx-topmail.de> writes:
>
> 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
>
try:
for f in /path/*.tif
do
export fnam=`basename $f .tif`
r.in.gdal -e $f out=${fnam}
done
More information about the grass-user
mailing list