[GRASS-user] Re: g.region in R
Helmut Kudrnovsky
hellik at web.de
Fri May 6 03:02:57 EDT 2011
[please keep it on the ML]
- GRASS GIS 6.4.1 (2011) is actual, please update if possible
- "wingrass": the standalone wingrass-installer (from http://wingrass.fsv.cvut.cz/grass64/, http://wingrass.fsv.cvut.cz/grass65/, http://wingrass.fsv.cvut.cz/grass70/), and not osgeo4w-grass-gis (http://trac.osgeo.org/osgeo4w/wiki/PackageListing#GRASS)
- from the wiki http://grass.osgeo.org/wiki/GRASS_and_Rstat#MS_Windows:
Usage II (taken from the grass-stats-ML):
http://lists.osgeo.org/pipermail/grass-stats/2010-September/001274.html
at the moment there is following for a Grass-R-connection implemented in WinGrass64
(1) the WinGrass64-installer searches during installation for a installed R and writes - if found - the R-installation-path to %PATH% in the grass64.bat-starting script (see http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi#L660[http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi#L660])
(2) you can start "Grass-command-line" - it's a windows-command-line, not a msys-rxvt-terminal (you can find this starting option under Programs -> Grass64 -> Grass command line; but not as a desktop icon)
with this starting option you start a Grass-session in the good old text mode. if you type R in the command line, then you start R inside a Grass-session like in Linux.
I'm always using this way (R-session within a Wingrass-session) successfully.
best regards
Helmut
-----Ursprüngliche Nachricht-----
Von: "Sam Prentice" <sep at umail.ucsb.edu>
Gesendet: 06.05.2011 02:42:19
An: "'Helmut Kudrnovsky'" <hellik at web.de>
Betreff: RE: g.region in R
Hello Helmut,
Thanks for your assistance. I'm running GRASS GIS 6.4.0 (2010) and R 2.12.2 on a current Windows platform. I created the GRASS DEM derivatives using the Windows-based GUI and the r.param.scale function. I'm not sure what you mean by "wingrass" but does this help? Also, I am running R directly - that is, I am not running it within GRASS. Would this make a difference?
Thanks,
Sam
|-----Original Message-----
|From: Helmut Kudrnovsky [mailto:hellik at web.de]
|Sent: Thursday, May 05, 2011 12:16 PM
|To: grass userlist
|Cc: sep at umail.ucsb.edu
|Subject: g.region in R
|
|
|Hi,
|
|>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.
|
|please tell us which wingrass-installation (standalone, osgeo4w, ...) you are
|using.
|and how you are coupling wingrass and R
|
|could you test it with wingrass-nightlybuilds?
|
|http://wingrass.fsv.cvut.cz/grass64/
|http://wingrass.fsv.cvut.cz/grass65/
|http://wingrass.fsv.cvut.cz/grass70/
|
|I've tested it with a recent wingrass70-nightly-build, a R-session within a
|wingrass7-session is working
|(see below)
|
|some hints for R and grass gis:
|http://grass.osgeo.org/wiki/GRASS_and_Rstat
|http://www.mendeley.com/research/open-source-geocomputation-using-
|the-r-data-analysis-language-integrated-with-grass-gis-and-postgresql-data-
|base-systems/
|http://casoilresource.lawr.ucdavis.edu/drupal/node/438
|
|best regards
|Helmut
|
|Cleaning up temporary files...
|Starting GRASS GIS...
|WARNUNG: Concurrent mapset locking is not supported on Windows
|
| __________ ___ __________ _______________
| / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
| / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
| / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
| \____/_/ |_/_/ |_/____/____/ \____/___//____/
|
|Welcome to GRASS 7.0.svn (2011)
|
|GRASS homepage: http://grass.osgeo.org
|This version running through: shell (C:\Program Files\GRASS
|7.0.SVN\msys\bin\sh.exe)
|Help is available with the command: g.manual -i
|See the licence terms with: g.version -c
|If required, restart the GUI with: g.gui wxpython
|When ready to quit enter: exit
|
|Launching 'wxpython' GUI in the background, please wait...
|GRASS 7.0.svn> R
|
|R version 2.12.2 (2011-02-25)
|Copyright (C) 2011 The R Foundation for Statistical Computing
|ISBN 3-900051-07-0
|Platform: i386-pc-mingw32/i386 (32-bit)
|
|R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
|Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
|Tippen Sie 'license()' or 'licence()' für Details dazu.
|
|R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
|Tippen Sie 'contributors()' für mehr Information und 'citation()',
|um zu erfahren, wie R oder R packages in Publikationen zitiert werden
|können.
|
|Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
|'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
|Tippen Sie 'q()', um R zu verlassen.
|
|> library(sp)
|> library(spgrass6)
|Lade nötiges Paket: rgdal
|Geospatial Data Abstraction Library extensions to R successfully loaded
|Loaded GDAL runtime: GDAL 1.7.2, released 2010/04/23
|Path to GDAL shared files: c:/PROGRA~1/R/R-212~1.2/library/rgdal/gdal
|Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
|Path to PROJ.4 shared files: c:/PROGRA~1/R/R-212~1.2/library/rgdal/proj
|Lade nötiges Paket: XML
|GRASS GIS interface loaded with GRASS version: 7.0.svn
|and location: nc_spm_08
|> gm <- gmeta6()
|> gm
|gisdbase C:\gisdata\grassdata
|location nc_spm_08
|mapset g7
|rows 1350
|columns 1500
|north 228500
|south 215000
|west 630000
|east 645000
|nsres 10
|ewres 10
|projection +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334
|+lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +no_defs +a=6378137
|+rf=298.257222101 +towgs84=0.000,0.000,0.000 +to_meter=1
|>
|
|___________________________________________________________
|Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
|Toolbar eingebaut! http://produkte.web.de/go/toolbar
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20110506/2d7ff827/smime.bin
More information about the grass-user
mailing list