Exist an advanced version of r.mapcalc?

Ciao,
your loop problem can be solved using a shell script (I've got
lots in C-shell). Let me know if you need an example.

As for random access, I would be interested too. I don't know
if it is possible to address a specific cell within r.mapcalc, but
I don't think so.

--
      Andrea Giacomelli
      andreag@idra6.iar.polimi.it
      http://idra6.iar.polimi.it:8080/~andreag
      tel: +39-2-23996233 fax: +39-2-23996207