[GRASSLIST:6409] Re: Batch exporting raster files
Hamish
hamish_nospam at yahoo.com
Mon Apr 11 21:41:31 EDT 2005
> Is there any easy way to batch export GRASS rasters via GDAL to some
> output format/extension? I have about 40 files to export and was
> hoping to avoid doing them one at a time...
Just write a small bash script:
for map in `g.mlist type=rast pattern='*'` ; do
echo "Map is: $map"
r.info -r $map
done
but replace r.info with whatever output command you want to use for the
export, e.g. d.rast + d.out.png or r.out.gdal
If you just want to do a slideshow, use d.slide.show.
Hamish
More information about the grass-user
mailing list