[STATSGRASS] R - problem with mapsets

Roger Bivand Roger.Bivand at nhh.no
Wed Jul 28 12:06:20 EDT 2004


On Wed, 28 Jul 2004 marta.benito at uam.es wrote:

> Hello, 
> I try to work in R (using GRASS library) with two different maps with the same
> name that are located in two different mapsets:
> mapset1: map r
> mapset2: map r
> 
> and allways I get the same map 
> 
> > grass5 ms1
> > g.region w=0 s=0 e=1 n=1
> > r.mapcalc r=123
> > exit
> 
> > grass5 ms2
> > g.region w=0 s=0 e=1 n=1
> > r.mapcalc r=456
> > R
> > library(GRASS)
> > G <-gmeta()
> > r <- rast.get(G,"r at ms1")
> > r
> $r
> [1] 456

I'll have a look, could you tell me which version of the GRASS interface 
you are using (help(package=GRASS)), and what print(G) says? What does 
get.mapsets() say?

Roger

> 
> 
>  
> Thanks
> 
> Marta
> 
> --------------------------------------------------------------------------
> Mensaje enviado mediante una herramienta Webmail integrada en *El Rincon*:
> ------------->>>>>>>>     https://rincon.uam.es     <<<<<<<<--------------
> 
> 
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no





More information about the grass-stats mailing list