[GRASS-user] bash script error
Glynn Clements
glynn at gclements.plus.com
Mon Aug 22 09:31:14 EDT 2011
Rebecca Bennett wrote:
> r.mapcalc '${BKG} = if(isnull(modern_mask at 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.
You need to use double quotes around the r.mapcalc expression.
Single-quoted strings take everything up to the next single quote
literally, while double-quoted strings expand variable substitutions.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list