[GRASS-user] GRASS doesn't find rasters after renaming mapset

Hi there,

Happy New Year’s first of all :slight_smile:

Something strange is happening when I rename mapsets. I’m running GRASS 6.4RC2 on OpenSUSE 12.1 64-bit. Often, when I rename a mapset - not always, but often - the rasters are no longer recognized. When I press CTRL+L to load layers, it also doesn’t work. I get the following error:

Traceback (most recent call last):
File “/opt/grass/etc/wxpython/wxgui.py”, line 1276, in
OnAddMaps

dialog = gdialogs.AddMapLayersDialog (parent = self, title =
_(“Add selected map layers into layer tree”))
File “/opt/grass/etc/wxpython/gui_modules/gdialogs.py”,
line 864, in LoadMapLayers

self.map_layers = grass.mlist_grouped(type = type)[mapset]
KeyError
:
u’Clearsky’

I’m pretty sure the two phenomena are connected.

Previously, I was able to solve the problem by naming the mapset back to what it used to be called. Sadly, in this case I don’t remember the original name. Does anybody have a tip as to how I can access the rasters? g.mremove * finds them, but g.list doesn’t. Thanks!

Best,
Daniel


B.Sc. Daniel Lee
Geschäftsführung für Forschung und Entwicklung
ISIS - International Solar Information Solutions
Vertreten durch: Daniel Lee, Nepomuk Reinhard und Paul Gaus

Deutschhausstr. 10
35037 Marburg
Festnetz: +49 6421 379 6256
Mobil: +49 176 6127 7269
E-Mail: Lee@isi-solutions.org
Web: http://www.isi-solutions.org

ISIS wird gefördert durch die Bundesrepublik Deutschland, Zuwendungsgeber: Bundesministerium für Wirtschaft und Technologie aufgrund eines Beschlusses des Deutchen Bundestages, sowie durch die Europäiache Union, Zuwendungsgeber: Europäischer Sozialfonds.
Zusätzliche Unterstützung erhält ISIS von dem Entrepreneurship Cluster Mittelhessen, der Universität Marburg, dem Laboratory for Climatology and Remote Sensing und dem GIS-Lab Marburg.

Hi Daniel,

On Mon, Jan 2, 2012 at 2:19 AM, Daniel Lee <lee@isi-solutions.org> wrote:

Hi there,

Happy New Year's first of all :slight_smile:

Something strange is happening when I rename mapsets.

When renaming a mapset, remember to update the
SEARCH_PATH
file since it contains the mapset name. This is a common trap
which I fell into regularly. I asked to get this fixed which has
happened in GRASS 7 in

http://trac.osgeo.org/grass/changeset/46173

My attempts to backport this to GRASS 6 failed...

So, for now, just update the SEARCH_PATH ASCII file and
it will work again. But I think we should really get r46173
backported.

Markus