<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    HI,<br>
    Thanks for this.<br>
    On a point of "note", don't you also wonder why people buy PCs with
    slower CPU's <u>but more processing cores</u>, and then run
    everything single-threaded :-)<br>
    <br>
    I do spatial data capture projects so am always scripting in
    different environments and languages - so I write in a way that I
    can run many (10+) scripts on 1 PC, and them still spread that
    across sometimes even 10 PCs.<br>
    <br>
    (Nice to see that you are also 'production aware')<br>
    <br>
    Cheers for now,<br>
    Zoltan<br>
    <br>
    <div class="moz-cite-prefix">On 2019/11/27 12:32, Maris Nartiss
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK8GbeDjft7kuEz3z-OMd0EOgEWi8Zt3SOqzupjetgqZ5=de9Q@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">I have been dealing with similar large file count issue by splitting
processing into two parts — processing script for a single file
launched with "grass --exec python my_processing_script
params_for_script" — no need for setting up session in advance etc.;
launcher script starting multiple processing scripts in parallel (one
file = one mapset).
Afterwards it is easy to modify launcher script to be started by srun
or sbatch and migrate to more than one PC, when your tasks outgrows
single system resources.

Good luck,
Māris.

otrd., 2019. g. 26. nov., plkst. 15:04 — lietotājs Stefan Blumentrath
(<a class="moz-txt-link-rfc2396E" href="mailto:Stefan.Blumentrath@nina.no"><Stefan.Blumentrath@nina.no></a>) rakstīja:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">
Hi Zoltan,

did you try <a class="moz-txt-link-freetext" href="https://github.com/zarch/grass-session">https://github.com/zarch/grass-session</a>
That should simplify running GRASS algorithms using GRASS more as a library.

Cheers
Stefan
________________________________
Fra: grass-dev <a class="moz-txt-link-rfc2396E" href="mailto:grass-dev-bounces@lists.osgeo.org"><grass-dev-bounces@lists.osgeo.org></a> på vegne av Zoltan Szecsei <a class="moz-txt-link-rfc2396E" href="mailto:zoltans@geograph.co.za"><zoltans@geograph.co.za></a>
Sendt: tirsdag 26. november 2019 13:34
Til: <a class="moz-txt-link-abbreviated" href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:grass-dev@lists.osgeo.org"><grass-dev@lists.osgeo.org></a>
Emne: [GRASS-dev] PyCharm 2019 with Grass 7.8.1

Hi,
I've just installed QGIS/GRASS etc with Osgeo4w64, but am struggling to
find out how to set up PyCharm to do some grasspy scripting with.
(import grass.scripting as gscript fails - I have set GISBASE, GRASSBIN
and PATH to various C:\OSGeo4W64\apps\grass\grass78 folders)

I need to run r.thin over 2800 tif images, so figured a python loop
should do it.

Any pointers would be welcome.

Thanks and regards,
Zoltan

--

=============================================
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028     (WhatsApp only)
Qatar:  +974 5083 2722     <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
=============================================

_______________________________________________
grass-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a>
_______________________________________________
grass-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

=============================================
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028     (WhatsApp only)
Qatar:  +974 5083 2722     <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
=============================================
</pre>
  </body>
</html>