[GRASS-user] Running a python script using GRASS GIS on a Mac

Shaffiq Somani ssomani at msn.com
Sun Nov 21 15:48:04 PST 2021


Dear GRASS Community,

I am trying to run grass as a Python script  for the gapfilling component of PySEBAL where the GitHub directory is shown below.   I have already imported the grass-session using the pip3 command.

PySEBAL GitHub Directory GapFilling
https://github.com/spareeth/PySEBAL_dev/tree/version3.7.3/gapfilling

The Windows Environmental Variable setup file is shown below which I tried to follow in the  Jupyter Notebook and  see if I can import GRASS.  Unfortunately, I had no luck as shown in the screenshot.

set GRASSBIN=C:\OSGeo4W64\bin\grass78
set GISRC=C:\OSGeo4W64\apps\grass\grass78\demolocation\.grassrc78
set PATH=%PATH%;C:\OSGeo4W64\apps\grass\grass78\lib;C:\OSGeo4W64\apps\grass\grass78\bin;C:\OSGeo4W64\apps\grass\grass78\scripts

Does anyone have ideas or suggestions on how to make GRASS GIS run on  the MacOS so I can make the gap fill_v3.py work with minimum alteration for the file.   I have seen a few suggestions, on trying to make grass run via python, but I have not had any luck.  .  Any help you can provide or point me too in the right direction would be greatly appreciated.

Thanks.

Kind Regards,

Shaffiq



[cid:DCB271FD-70FB-4D2B-85FA-38EA7AADF8E2]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20211121/6d8c1fb3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2021-11-21 at 5.07.03 PM.png
Type: image/png
Size: 381846 bytes
Desc: Screen Shot 2021-11-21 at 5.07.03 PM.png
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20211121/6d8c1fb3/attachment-0001.png>


More information about the grass-user mailing list