@Hamish - I posted the code on the wiki, thanks for the tip.<br><br>2012/8/7 Johannes Radinger <span dir="ltr"><<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>></span><br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br><br><div class="gmail_quote"><div>In your loop what do you mean with "job" respectivle the number of jobs. Is that e.g. 3 task x 200 maps = 600 jobs?<br>

<br></div></div></blockquote><div><br>That was my thought, yes - depending on how you want to implement it of course. In that context 600 jobs would probably be fine, or even mroe - good thing the computer doesn't get bored ;) The variable running_jobs was meant to keep track of what jobs are currently being formed.<br>

 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>Attached there is a little python script which applies a focal filter on a raster map but based on a user supplied r.cost<br>


distance from each cell instead of a moving window. Thus the script loops over each single raster cell (transfered to a <br>temporary point vector) and calculates r. cost, mapcalc and r.univar which takes quite a lot of time. The script is working<br>


so far and uses g.parser to generate the gui interface etc.<br><br>I think I can upload this skript to the addons/wiki but before I'd like to make it faster (e.g. parallize the code).<br><br>Thank you for your help so far...<span class="HOEnZb"><font color="#888888"><br>


<br>/Johannes<br></font></span><br></div></div></blockquote><div><br>I think as far as posting things on the wiki is concerned, the more examples the merrier, we just have to make sure that it stays nice and readable and that everything works. <br>

</div></div>