It worked<div>Thanks</div><div>Helena<br><br><div class="gmail_quote">On Thu, Sep 23, 2010 at 3:49 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
Helena Herrera wrote:<br>
<br>
> I have sent an email a couple of days ago reporting an error with g.mapset<br>
> on Windows. Now I have also a problem with g.mapset on linux (a different<br>
> one)<br>
> When I do:<br>
> g.mapset mapset=Regional<br>
><br>
> I get this in Output command window:<br>
><br>
> Erasing monitors...<br>
> PNG: GRASS_TRUECOLOR status: TRUE<br>
> PNG: collecting to file: map.png,<br>
> GRASS_WIDTH=768, GRASS_HEIGHT=501<br>
> ERROR: PNG: couldn't open output file map.png<br>
<br>
</div>This suggests that you don't have write permission on the current<br>
directory.<br>
<br>
In 6.x, g.mapset restarts any active monitors, as any information<br>
which they are storing will be invalid in the new mapset. By default,<br>
the PNG driver sends its output to the file "map.png" in the current<br>
directory; if you don't have write permission on the current<br>
directory, you will get an error.<br>
<br>
You can prevent this by specifying the PNG driver's output file using<br>
an absolute path, e.g.:<br>
<br>
export GRASS_PNGFILE=`pwd`/map.png<br>
<font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br></div>