[GRASS-dev] PyCharm 2019 with Grass 7.8.1

Zoltan Szecsei zoltans at geograph.co.za
Wed Nov 27 02:26:38 PST 2019


HI,
Thanks for this.
On a point of "note", don't you also wonder why people buy PCs with 
slower CPU's _but more processing cores_, and then run everything 
single-threaded :-)

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.

(Nice to see that you are also 'production aware')

Cheers for now,
Zoltan

On 2019/11/27 12:32, Maris Nartiss wrote:
> 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
> (<Stefan.Blumentrath at nina.no>) rakstīja:
>> Hi Zoltan,
>>
>> did you try https://github.com/zarch/grass-session
>> That should simplify running GRASS algorithms using GRASS more as a library.
>>
>> Cheers
>> Stefan
>> ________________________________
>> Fra: grass-dev <grass-dev-bounces at lists.osgeo.org> på vegne av Zoltan Szecsei <zoltans at geograph.co.za>
>> Sendt: tirsdag 26. november 2019 13:34
>> Til: grass-dev at lists.osgeo.org <grass-dev at lists.osgeo.org>
>> 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     www.geograph.co.za
>> =============================================
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-dev
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-dev

-- 

=============================================
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     www.geograph.co.za
=============================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191127/8956dcfb/attachment.html>


More information about the grass-dev mailing list