[GRASS-user] g.remove from another mapset

Milton Cezar Ribeiro miltinho.astronauta at gmail.com
Fri Oct 28 19:17:36 EDT 2011


Hi Martin,

Worked fine!

best

milton

2011/10/28, Martin Landa <landa.martin at gmail.com>:
> 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
>


-- 

Miltinho - mcr at rc.unesp.br
Laboratório de Ecologia Espacial e Conservação - LEEC
Depto de Ecologia - UNESP - Rio Claro
Av. 24A, 1515- Bela Vista
13506-900 Rio Claro, SP, Brasil


http://www.rc.unesp.br/ib/ecologia/
Fone: +55 19 3526-9647
Cel: 19 9853-3220 / 19 9853-5430


More information about the grass-user mailing list