[GRASS-user] Variables in r.mapcalc other than raster?

Hi Roland,
I use in my calculations something like this:

last_round=07
Y=${last_round}
current_round=08
X=${current_round}

r.mapcalc ez_${X}01 ="if(isnull(dgm_top${X}),ez_${Y},ez_${Y}+20)"
r.mapcalc ez_${X}02 ="if(isnull(dgm_cut${X}),ez_${X}01,ez${X}_01-10)"

Maybe you could define your variables in this way.
To define a command as a variable I use i.e.

bg1=**echo "d.rast ez_${Y}"**
${bg1} starts it.

cheers
om shantih
Philipp

Roland Pape schrieb: