[GRASS-user] Error in a script that calls g.mapset

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Tue Aug 10 05:49:05 EDT 2010


Helena Herrera wrote:
> hello

Hi!
 
> I'm sorry for bothering you but I have sent this question last week and I
> didn't get any answer.
> 
> I have a Python Script (for GRASS6.4) where I run this:
> grass.run_command("g.mapset", mapset = t_mapset)
> (to change active mapset)
> But I get all this in the command output:
> Erasing monitors... PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to
> file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR
> status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768,
> GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file:
> map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status:
> TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501
> PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG:
> GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png,
> GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG:
> collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 Cleaning up
> temporary files... Your shell continues to use the history for the old
> mapset You can switch the history by commands: history -w; history -r
> /usr/local/share/grassdata/Place/National/.bash_history;
> HISTFILE=/usr/local/share/grassdata/Place/National/.bash_history
> 
> It seems to be running ok without any impact but:
> 1- Why is this happening?
> 2- How can I avoid this?

Did you try the "--q" flag (in python "-q") in the g.mapset (as well as in 
other) command(s)?

Nikos


More information about the grass-user mailing list