Hi<br><br>I'm trying to run GRASS and import raster map using a bash
script but I'm getting an error saying r.in.gdal not found. <br><br>What
have I done wrong? see the script below.<br><br>#!/bin/sh<br><br>#variable
to customize:<br>
# path to GRASS software main directory<br>GISBASE=/usr/bin/grass64<br>#
path to GRASS database<br>GISDBASE=$HOME/grassdem <br><br>GISBASELIB=/usr/lib/grass64<br><br>#
nothing to change below<br>MAP=SRTMDEM.tiff<br>LOCATION=/home/tgumede1/<div id=":184" class="ii gt">grassdem<br>
<br><br># generate temporal LOCATION:<br>TEMPDIR=Floods<br>mkdir -p
$GISDBASE/$TEMPDIR/tmp<br><br># save existing $HOME/.grassrc6<br>if test
-e $HOME/.grassrc6 ; then<br>mv $HOME/.grassrc6
/$GISDBASE/$TEMPDIR.grassrc6<br>
fi<br><br>echo "LOCATION_NAME: $TEMPDIR" > $HOME/.grassrc6<br>echo
"MAPSET:tmp" >> $HOME/.grassrc6<br>echo "DIGITIZER: none" >>
$HOME/.grassrc6<br>echo "GISDBASE: $GISDBASE" >> $HOME/.grassrc6<br>
export GISBASE=$GISBASE<br><br># first our GRASS, then the rest<br>export
PATH=$GISBASE:$GISBASELIB/scripts:$PATH<br><br># first have our
private libraries:<br>export LD_LIBRARY_PATH=$GISDBASE/lib:$GISBASELIB/lib:$LD_LIBRARY_PATH<br>
<br># import raster map into new location:<br>r.in.gdal -eo in=$MAP
out=dem location=$LOCATION<br>if [$? -eq 1] ; then<br>echo "An error
occured. Stop."<br>exit 1<br>fi<br><br># restore saved $HOME/.grassrc6<br>
if test -e $HOME/.grassrc6 ; then<br>mv $HOME/.grassrc6
/$GISDBASE/$TEMPDIR.grassrc6<br>fi<br><font color="#888888"><br></font></div><br clear="all"><br>-- <br>Kind Regards<br>TS Gumede<br>CSIR, Meraka Institute<br>072 258 1650<br><br>