[GRASS-user] g.region in R
Sam Prentice
sep at umail.ucsb.edu
Thu May 5 12:53:02 EDT 2011
Hi,
I study dirt and landforms and I have what (I think) is a very basic
question, unless you're a new GRASS user like me.
I've created DEM derivatives in GRASS (via qGIS) and I'm trying to parse
them within R using gmeta6(). I know little about GRASS file structure, but
it's evident that g.region is a metadata file of spatial parameters, and
that I need to point R towards it, but I can't find the file or get around
this error. This may be more of an R question than a GRASS one, but any
suggestions are welcome. Code and errors printed below.
Thanks,
Sam
#load GRASS region data
gmeta6 <- gmeta6()
#read in our 7 raster files from GRASS
x <- readFLOAT6sp(c("er","crosc","longc","slope","profc","minic","maxic"))
> ?gmeta6
> gmeta6 = gmeta6()
Error in system(cmd0, intern = TRUE) : 'g.region.exe' not found
Error in parseGRASS(cmd) : g.region not found
> ?g.region
No documentation for 'g.region' in specified packages and libraries:
you could try '??g.region'
> ??g.region
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110505/0120e3bc/attachment.html
More information about the grass-user
mailing list