[GRASSLIST:4769] Re: batch jobs

M.Wegmann m.wegmann at web.de
Fri Oct 18 03:14:56 EDT 2002


Hello, 

first thanks a lot for your help, I managed to write my first bash script and it's working.....nearly ;-)

could it be, that I can't grab a file which is an output of a GRASS command?

eg (temp and $temp):

r.mapcalc "temp=int(raster*1000000)"

r.statistics base=killarney cover=$temp method=.... 

here it seems that it can't read the $temp file. error message is: "no cover map found". what would be a solution for that?


and another thing, I want to do a loop for all images starting with the letter b,d and t.

eg

for x in "[a,d,t]*"

do

.....
r.mapcalc "temp=int($x*1000000)"
....

done

but that doesn't work. something wrong in the way I wrote it?


thanks for your help, Martin








More information about the grass-user mailing list