Re: [GRASS-user] Parallelizing r.mapcalc

2022-09-20 Thread Markus Neteler
Hi Frank,

On Thu, Sep 15, 2022 at 2:32 PM Frank David  wrote:
> Is there a way to parallelize r.mapcalc in python scripts with 
> start_command() as it is with other command ?
>
> https://grasswiki.osgeo.org/wiki/Parallelizing_Scripts
>
> It seems to me r.mapcalc.tiled is not using processors at 100%

You may also check the source code of this addon where r.mapcalc is
used in parallel:

https://github.com/OSGeo/grass-addons/blob/grass8/src/raster/r.mapcalc.tiled/r.mapcalc.tiled.py

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Parallelizing r.mapcalc

2022-09-19 Thread Frank David

Thank you Vero.
The last link is very interesting. But nothing about python 
run_command() with r.mapcalc

Regards,
Frank

Le 16/09/2022 à 13:58, Veronica Andreo a écrit :

Hi Frank,

While not an expert here, did you see this other wiki: 
https://grasswiki.osgeo.org/wiki/Parallel_GRASS_jobs or Anna's 
presentation at FOSS4G 2022: 
https://htmlpreview.github.io/?https://github.com/petrasovaa/FUTURES-CONUS-talk/blob/main/foss4g2022.html#/ 
?


Perhaps useful?

Best,
Vero

El jue, 15 sept 2022 a las 14:33, Frank David 
() escribió:


Hello,

Is there a way to parallelize r.mapcalc in python scripts with
start_command() as it is with other command ?

https://grasswiki.osgeo.org/wiki/Parallelizing_Scripts

It seems to me r.mapcalc.tiled is not using processors at 100%

Thank you

Regards,

Frank

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Parallelizing r.mapcalc

2022-09-16 Thread Veronica Andreo
Hi Frank,

While not an expert here, did you see this other wiki:
https://grasswiki.osgeo.org/wiki/Parallel_GRASS_jobs or Anna's presentation
at FOSS4G 2022:
https://htmlpreview.github.io/?https://github.com/petrasovaa/FUTURES-CONUS-talk/blob/main/foss4g2022.html#/
?

Perhaps useful?

Best,
Vero

El jue, 15 sept 2022 a las 14:33, Frank David ()
escribió:

> Hello,
>
> Is there a way to parallelize r.mapcalc in python scripts with
> start_command() as it is with other command ?
>
> https://grasswiki.osgeo.org/wiki/Parallelizing_Scripts
>
> It seems to me r.mapcalc.tiled is not using processors at 100%
>
> Thank you
>
> Regards,
>
> Frank
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Parallelizing r.mapcalc

2022-09-15 Thread Frank David

Hello,

Is there a way to parallelize r.mapcalc in python scripts with 
start_command() as it is with other command ?


https://grasswiki.osgeo.org/wiki/Parallelizing_Scripts

It seems to me r.mapcalc.tiled is not using processors at 100%

Thank you

Regards,

Frank
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user