[GRASS-dev] python using grass without starting grass: can we have a wx monitor displaying images?

Markus Neteler neteler at osgeo.org
Sun Nov 4 05:05:58 PST 2012


On Fri, Nov 2, 2012 at 9:18 AM, Yann Chemin <yann.chemin at gmail.com> wrote:
> Hi,
>
> I am starting a recursive process on many images and I would like to display
> a resulting image for each of the dataset being processed.
>
> The script I am using is a Python script, calling GRASS without grass being
> run "normally", and it does process properly, so all is OK.
>
> I am trying like this:
> g.run_command('d.mon',start="wx0")
> g.run_command('d.mon',select="wx0")
> g.run_command('d.rast',map=toar)
>
> but not display is being launched, though it says "wx0 already selected"...
>
> Am I expecting not available features, or did something wrong?

I wonder if the
 g.run_command('d.mon',select="wx0")
is needed at all.

Furthermore, perhaps a DISPLAY redirect is needed (just guessing around)?

Markus


More information about the grass-dev mailing list