[STATSGRASS] problems assesing mapsets

Markus Neteler neteler at itc.it
Thu Jan 13 06:26:18 EST 2005


On Thu, Jan 13, 2005 at 12:15:21PM +0100, Roger Bivand wrote:
> On 13 Jan 2005, Marta Benito wrote:
> 
> > Hi, 
> > I am having problems using the GRASS library in R. 
> > I think I am doing something wrong when using gmeta but I don't know
> > exactly, the problem began when I've done update of packages in R and
> > GRASS. 
> > 
> > GRASS 5.7.cvs:~/grassdata/espanya_modelo_devel > R
> > > library(GRASS)
> > GRASS environment variables in: /tmp/grass6-marta-8901/gisrc
> >  G<-gmeta()
> > Error in gmeta() : region for current mapset MAPSET
> > run "g.region"
> 
> You seem to be using GRASS 5.7 or 6.0beta1, is that correct?
> 
> Please try G <- gmeta(interp=TRUE), and post the result (str(G)) - this 
> may be a WIND3 WINDOW not being recognised by the 5.0 version of the GRASS 
> function used when run with interp=FALSE. 
 
Roger,

to detect a GRASS version, we have added

lib/gis/version.c
 int
 G_version (char *major, char *minor, char *release)

This might be helpful for the WIND/WIND3 issue. This functions is
already present in 6.0beta1.

Markus

-- 
Markus Neteler     <neteler itc it>       http://mpa.itc.it
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy




More information about the grass-stats mailing list