So, here are two versions of script, of parallel GRASS jobs with "<i>split map into spatial chunks (possibly with overlap to gain smooth results)</i>" approach.<div><br></div><div>First script ( script1.bash ) is splitting the region in specified number of smaller regions, do the calculation ( calculating NDVI for example ) in parallel way, overlay parts together and remove all small parts and regions.</div>
<div><br></div><div>Second script ( script2.bash ) is doing the same job until r.patch part. here r.patch is being done in a kind of cascade way. When suppose you have 8 parts that need to be patched r.patch is patching 1 with 2 , 3 with 4, 5 with 6 and 7 with 8 parallelly and creates 4 parts, after these 4 parts are being patched the same parallel way. The idea was interesting but actually it is taking longer then in first way and take more resources.</div>
<div><br></div><div>So I would like to ask people who are interested in this question to help me to understand, if there is another approach in this case to overlay chunks together, or may be export all chunks in one file. because my final goal is to import image, do the calculation and export the image. Finally it should work as underlying script for this GRASS - PyWPS web frontend <a href="http://93.187.165.125/gisservices/">http://93.187.165.125/gisservices/</a> .</div>
<div><br></div><div>Any help will be appreciated.</div><div><br></div><div>Regards,</div><div>Andranik <br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 11:44 AM, Andranik Hayrapetyan <span dir="ltr"><<a href="mailto:andranik.h89@gmail.com" target="_blank">andranik.h89@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
r.mapcalc?</blockquote><div><br></div><div>I don't know how to overlay rasters with r.mapcalc. can you, please be a bit detailed?</div><div class="HOEnZb"><div class="h5">
<div><br></div><div><br></div><div><br></div><div> </div><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 4:53 PM, Helmut Kudrnovsky <span dir="ltr"><<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> So as I understand the only way to concatenate chunks of compressed image<br>
is r.patch....<br>
<br>
</div>r.mapcalc?<br>
<br>
<a href="http://grass.osgeo.org/grass64/manuals/r.mapcalc.html" target="_blank">http://grass.osgeo.org/grass64/manuals/r.mapcalc.html</a><br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/g-copy-several-map-layers-into-one-layer-without-overwriting-tp5020892p5021192.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/g-copy-several-map-layers-into-one-layer-without-overwriting-tp5020892p5021192.html</a><br>
Sent from the Grass - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>