Does someone know how translate previous display commands into GRASS70, i.e. integrate a py-script that is called
"d.mon x1=start" (or similar) into GRASS70 doing these command:
#####start display in GRASS7.0
export GRASS_PNGFILE=map.bmp
d.erase
ximgview map.bmp &
export GRASS_PNG_MAPPED=TRUE
This would allow to run GRASS64-scripts on GRASS70 and for those you prefer direct output out of the script, just go on doing this as before. I tried to do so, but didn't manage to handle the "export" command in py. Maybe someone
of knows howto?
greetz, Patrick
>>> I just started using d.mon in combination with d.rast to quickly display
>>> a layer - but d.mon will be removed in 7.0. I assume there is a
>>> replacement for it, which I can use in 7.0? I do not assume, that I have
>>> to use GUI for display.>> >> You can use wxpyimgview[1] to view the images.
>> >> [1] or wximgview or ximgview. ximgview is C/Xlib, wximgview is
>> C++/wxWidgets, wxpyimgview is Python/wxWidgets.
>> >> For this, you need:
>> >> export GRASS_PNGFILE=map.bmp
>> export GRASS_PNG_MAPPED=TRUE
>> >> Optionally:
>> >> export GRASS_NOTIFY='kill -USR1<pid>'
>> >> where<pid> is the PID of the {x,wx,wxpy}imgview process. This allows
>> you to set percent=0; the display will be redrawn whenever a display
>> command completes.