[GRASS-user] g.copy several map layers into one layer without overwriting .....
Andranik Hayrapetyan
andranik.h89 at gmail.com
Mon Dec 10 00:19:30 PST 2012
So, here are two versions of script, of parallel GRASS jobs with "*split
map into spatial chunks (possibly with overlap to gain smooth results)*"
approach.
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.
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.
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
http://93.187.165.125/gisservices/ .
Any help will be appreciated.
Regards,
Andranik
On Mon, Dec 10, 2012 at 11:44 AM, Andranik Hayrapetyan <
andranik.h89 at gmail.com> wrote:
> r.mapcalc?
>
>
> I don't know how to overlay rasters with r.mapcalc. can you, please be a
> bit detailed?
>
>
>
>
>
> On Thu, Dec 6, 2012 at 4:53 PM, Helmut Kudrnovsky <hellik at web.de> wrote:
>
>> > So as I understand the only way to concatenate chunks of compressed
>> image
>> is r.patch....
>>
>> r.mapcalc?
>>
>> http://grass.osgeo.org/grass64/manuals/r.mapcalc.html
>>
>>
>>
>> -----
>> best regards
>> Helmut
>> --
>> View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/g-copy-several-map-layers-into-one-layer-without-overwriting-tp5020892p5021192.html
>> Sent from the Grass - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121210/1e783369/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script1.bash
Type: application/octet-stream
Size: 2583 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121210/1e783369/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script2.bash
Type: application/octet-stream
Size: 2550 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121210/1e783369/attachment-0003.obj>
More information about the grass-user
mailing list