[GRASS-user] GRASS Scripting questions
António Rocha
antonio.rocha at deimos.com.pt
Thu Dec 17 09:43:59 EST 2009
Greetings Achim
You are absolutely right. I made a mistake copying the expression.
Here it goes:
#itinialization of counter1
r.mapcalc $GIS_OPT_COUNTER1= "float (0)"
The cycle:
IFS=,
for opt in $GIS_OPT_INPUT; do
r.mapcalc $GIS_OPT_COUNTER= "$opt+$GIS_OPT_COUNTER"
done
so the question still remains :)
Sorry and thanks for your reply.
Antonio
Achim Kisseler wrote:
> Hi Antonio,
>
>
>> itinialization of counter1
>> r.mapcalc $GIS_OPT_COUNTER1= "float (0)"
>
> shouldn't be counter1=
> GIS_OPT_SOMA
>
>>
>> The cycle:
>> IFS=,
>> for opt in $GIS_OPT_INPUT; do
>> r.mapcalc $GIS_OPT_SOMA= "$opt+$GIS_OPT_SOMA)"
>> done |
> |
> is there a ')' too much? ------------------------|
>
> ?
>
> Achim
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4695 (20091217) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4696 (20091217) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the grass-user
mailing list