[GRASS-user] Parallelizing r.mapcalc

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

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 (<frank.david@geophom.fr>) 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

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 (<frank.david@geophom.fr>) 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

Hi Frank,

On Thu, Sep 15, 2022 at 2:32 PM Frank David <frank.david@geophom.fr> 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