Dear bash scripters,

I  would like to create the following r.mapcalc command calling a map in a 
script in GRASS 6.4.1 (Ubuntu 10.4):

g.ask type=old prompt="enter DTM" elem=cell_misc 
unixfile=/home/becca/Documents/grassdata/scripts/settings
. /home/becca/Documents/grassdata/scripts/settings
if [ ! "$file" ]
    then
        exit
fi

MAP=${fullname}
BKG=${name}_bkg

r.mapcalc '${BKG} = if(isnull(modern_mask@Brovey),${MAP},0)'

but it ends with the error

Invalid map <${MAP}>

Can
 anyone tell me how I should include calls to the map and name a 
derivative using the original raster name? I have used this syntax with 
success before so have not be able to troubleshoot this.

Thanks for reading,

Rebecca Bennett

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to