[GRASS5] scripting r.in.gdal
Kirk R. Wythers
kwythers at umn.edu
Tue Jun 29 13:53:22 EDT 2004
I would like to automate the import processes (if possible). I have
several hundred tifs that I need to read into grass with r.in.gdal into
an xy location (before I rectify them). The command:
r.in.gdal in=T56N.R9W.tif out=t56n.r9w.tif
works just fine.
Can anyone get me started setting up a script that could run through a
directory full of tifs that looked something like this:
T56N.R10W.tif T61N.R19W.tif T64N.R4W.tif
T56N.R11W.tif T61N.R20W.tif T64N.R5W.1.tif
T56N.R12W.tif T61N.R2E.tif T64N.R5W.tif
T56N.R13W.1.tif add infinitum...
reading each tif into grass with r.in.gdal (the renameing bit is
gravy... I can do that in a second step if necessary with a regular
expression).
Thanks,
Kirk
------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers at umn.edu
------------------------------------------------------------------------
More information about the grass-dev
mailing list