[GRASS-dev] d.mon/d.rast from within python script gives empty monitor
Paulo van Breugel
p.vanbreugel at gmail.com
Sat Mar 4 03:17:01 PST 2017
Dear devs,
I am trying to generate maps as part of a python script. Running the
following directly on the python command (python tab in main gui) works.
import grass.script as gs
gs.run_command("d.mon", start="wx1")
gs.run_command("d.rast", map="mymap")
However, when running the same from a python scrip (e.g., using the
GRASS Simple Python Editor) results in an empty monitor. Any idea what I
am doing wrong (or is this a bug)?
Rgds,
Paulo
More information about the grass-dev
mailing list