[GRASS-user] g.remove from another mapset

Martin Landa landa.martin at gmail.com
Fri Oct 28 17:25:42 EDT 2011


Hi,

2011/10/28 Milton Cezar Ribeiro <miltinho.astronauta at gmail.com>:
> I need to remove raster maps from another mapset instead PERMANENT
>
> As I am putting this in a python-grass script, I tried something like
>
> g.remove -f rast=mymap at OTHERMAPSET
>
> but I get the error message that the raster map is not in the current
> mapset (PERMANENT).

you are allowed to modify data only from your current mapset. In other
words you cannot delete a map from another mapsets. So first you need
to switch to OTHERMAPSET

g.mapset OTHERMAPSET

and then to delete the map

g.remove -f rast=mymap

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list