[GRASSLIST:4529] r.mapcalc and environment variables

Daniel Victoria daniel_victoria at yahoo.com
Wed Sep 18 09:50:53 EDT 2002


Hi all,

I'm trying to automate a process that will use
r.mapcalc. The problem is that some of the numbers and
also the map name are stored in a bash environment
variable (like $i)
but when I call the variable on the formula line it
gives me a map [$i] not found. How should I write the
formula line? I'm doing something like this...

for i in `cat images`
        do {
        r.mapcalc output=$i+bla bla bla...
        }
done

Thanks

Daniel

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com



More information about the grass-user mailing list