I found the bash command for adding up rasters as
$str="r.mapcalc map=ts.1"
$for i in `seq ts.2 ts.120`; do
str=$str+" + map$i", done
I need this exact command, but in csh I have been playing with the syntax and cannot seem to get it to work. I know I will switch out "for i in" for like foreach, but the "str" command is not interchangable, and neither is the "seq" command.
while($i <= 120)
set str="$str + map.$i"
@ i++
end
echo $str
--Wolf
On 12.07.2007 17:57, goldneaa@onid.orst.edu wrote:
I found the bash command for adding up rasters as
$str="r.mapcalc map=ts.1"
$for i in `seq ts.2 ts.120`; do
str=$str+" + map$i", done
I need this exact command, but in csh I have been playing with the
syntax and cannot seem to get it to work. I know I will switch out "for
i in" for like foreach, but the "str" command is not interchangable, and
neither is the "seq" command.