<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FRsb</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FRsb"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FRsb"/>
	<updated>2026-06-01T04:48:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4014</id>
		<title>GRASS 6 Tutorial</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4014"/>
		<updated>2007-04-05T13:07:14Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Mini How to interpolate using kriging with GRASS and R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Free Software/Open Source GIS GRASS 6 is fully operational and stable version for production use.  This tutorial tries to&lt;br /&gt;
give you a hand to familiarize yourself with the improved functionality, especially in the vector engine and attribute management.&lt;br /&gt;
For further reading, see the references below.&lt;br /&gt;
&lt;br /&gt;
'''Disclaimer:''' In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!&lt;br /&gt;
&lt;br /&gt;
This tutorial is intended for GRASS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional [http://grass.itc.it/gdp/tutorials.php books or tutorials].&lt;br /&gt;
&lt;br /&gt;
NOTE: This tutorial here still awaits the merge of the [http://grass.itc.it/grass57/tutorial/ previous GRASS 5.7 tutorial].&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
New GRASS development has made major improvements to the vector&lt;br /&gt;
architecture. The most significant change includes a new 2- and&lt;br /&gt;
3-dimensional vector library that manages vector attributes in&lt;br /&gt;
standard database management systems (DBMS). This system provides the&lt;br /&gt;
power of true relational databases for vector attribute management&lt;br /&gt;
while preserving the flexibility of traditional GRASS topological&lt;br /&gt;
tools. GRASS now also incorporates true 3-dimensional voxels in the&lt;br /&gt;
[[http://grass.itc.it/gdp/nviz/index.html][NVIS]] visualization environment as well as [[http://grass.itc.it/grass60/index.php][numerous enhancements]] to&lt;br /&gt;
virtually every tool in the GRASS library.&lt;br /&gt;
&lt;br /&gt;
==Getting started in general==&lt;br /&gt;
&lt;br /&gt;
* [[Introductory Material]] for Linux and GRASS&lt;br /&gt;
&lt;br /&gt;
==Getting started - how to migrate to the new GRASS version==&lt;br /&gt;
&lt;br /&gt;
* [[Grass Six Tutorial Getting Started]]&lt;br /&gt;
&lt;br /&gt;
==Raster data management==&lt;br /&gt;
&lt;br /&gt;
* The raster management works as it did in previous GRASS versions.&lt;br /&gt;
&lt;br /&gt;
==Vector data management==&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Default Settings]]=== &lt;br /&gt;
       -  Default settings for vector geometry;&lt;br /&gt;
          for vector attributes; for db.* modules&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Geometry Management]]=== &lt;br /&gt;
        -  General notes on Geometry &lt;br /&gt;
          management; Managing the default settings; &lt;br /&gt;
          GRASS vector architecture; Geometry stored in native format;&lt;br /&gt;
          Geometry stored in SHAPE file; &lt;br /&gt;
          Import/export of vector data Geometry;&lt;br /&gt;
          Generating vector geometry from various sources&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Attribute Management]]===&lt;br /&gt;
        - General notes on Attribute &lt;br /&gt;
          management; Managing the default settings; Examples;&lt;br /&gt;
          Database Schema&lt;br /&gt;
&lt;br /&gt;
==Usage examples==&lt;br /&gt;
&lt;br /&gt;
===Basic usage examples===&lt;br /&gt;
&lt;br /&gt;
===Complex usage examples===&lt;br /&gt;
&lt;br /&gt;
===Vector network analysis examples===&lt;br /&gt;
&lt;br /&gt;
===Vector overlay/clipping examples===&lt;br /&gt;
&lt;br /&gt;
===Examples from US National Atlas===&lt;br /&gt;
&lt;br /&gt;
===FAQ (Frequently Asked Questions)===&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Faq&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Troubleshooting&lt;br /&gt;
&lt;br /&gt;
==Links of interest==&lt;br /&gt;
&lt;br /&gt;
* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
&lt;br /&gt;
===GRASS and R kriging interpolation===&lt;br /&gt;
&lt;br /&gt;
====Mini How to interpolate using kriging with GRASS and R====&lt;br /&gt;
&lt;br /&gt;
             ORDINARY KRIGING IN R WITH GRASS6 DATA&lt;br /&gt;
&lt;br /&gt;
('''WARNING!!''' Most of the code quoted here is very out of date, and simply does not work for current R/sp/gstat/spgrass6. Untried suggestions have been edited in, but without a test location, there is no guarantee that they will work! Roger Bivand, 5 April 2007)&lt;br /&gt;
&lt;br /&gt;
Of all the methods we tried this is the most easy and (I suppose) exact too:&lt;br /&gt;
&lt;br /&gt;
You have to have in your library the packages &amp;quot;gstat&amp;quot; and &amp;quot;spgrass6&amp;quot;, you can download this last one directly from R using the command &amp;quot;install.packages&amp;quot;.&lt;br /&gt;
In GRASS we have a vector file named &amp;quot;giaciture_cat_clean3&amp;quot; and we want to do a prediction on this data...&lt;br /&gt;
these are the commmands:&lt;br /&gt;
&lt;br /&gt;
enter R from the GRASS prompt, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(spgrass6) &lt;br /&gt;
&lt;br /&gt;
#get vector points as SpatialPointsDataFrame &lt;br /&gt;
#giaciture &amp;lt;- getSites6sp(&amp;quot;giaciture_cat_clean3&amp;quot;) RSB 070405&lt;br /&gt;
&lt;br /&gt;
giaciture &amp;lt;- readVECT6(&amp;quot;giaciture_cat_clean3&amp;quot;) # RSB 070405&lt;br /&gt;
&lt;br /&gt;
class(giaciture) #shows the class of &amp;quot;giaciture&amp;quot; (SpatialPointsDataFrame)&lt;br /&gt;
 &lt;br /&gt;
# G &amp;lt;- gmeta6() #get region from GRASS to R  RSB 070405&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now if you want you can continue to work in R from GRASS or not...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#create a grid from the region settings of GRASS, it is very important&lt;br /&gt;
# to have square cells, so you can set the region settings of GRASS or&lt;br /&gt;
# you can give directly square dimensions using the values:  &lt;br /&gt;
# e.g.&amp;quot;cells.dim=c(50,50)&amp;quot;&lt;br /&gt;
#grd &amp;lt;- GridTopology(cellcentre.offset=c(G$west+(G$ewres/2)&lt;br /&gt;
#                    ,G$south+(G$nsres/2))&lt;br /&gt;
#                    ,cellsize=c(G$ewres, G$nsres)&lt;br /&gt;
#                    ,cells.dim=c(G$cols, G$rows)) RSB 070405&lt;br /&gt;
&lt;br /&gt;
grd &amp;lt;- gmeta2grd() # RSB 070405&lt;br /&gt;
&lt;br /&gt;
#create a SpatialGridDataFrame&lt;br /&gt;
mask_SG &amp;lt;- SpatialGridDataFrame(grd,&lt;br /&gt;
#                                ,data=list(k=rep(1, G$cols*G$rows)) RSB 070405&lt;br /&gt;
     data=data.frame(k=rep(1, prod(slot(grd, &amp;quot;cells.dim&amp;quot;)))), # RSB 070405&lt;br /&gt;
     proj4string=CRS(proj4string(giaciture))) # RSB 070405&lt;br /&gt;
# proj4string(giaciture) and proj4string(mask_SG) must agree&lt;br /&gt;
class(mask_SG)&lt;br /&gt;
&lt;br /&gt;
library(gstat)&lt;br /&gt;
&lt;br /&gt;
cvgm &amp;lt;- variogram(IMMERSIONE~1, data=giaciture, width=400, cutoff=4000) # RSB 070405&lt;br /&gt;
#create variogram, and &amp;quot;IMMERSIONE&amp;quot; &lt;br /&gt;
#here is the our variable, the variable on wich we have to do the prediction,&lt;br /&gt;
# ~ 1 select the type of kriging, this is the ordinary one&lt;br /&gt;
&lt;br /&gt;
efitted &amp;lt;- fit.variogram(cvgm, vgm(psill=5000, model=&amp;quot;Exp&amp;quot;, range=1500, nugget=8000))&lt;br /&gt;
# choose the model to fit variogram (here is exponential) and give the&lt;br /&gt;
# estimated parameters of the variogram (partial sill, range and nugget)&lt;br /&gt;
&lt;br /&gt;
OK_pred &amp;lt;- krige(IMMERSIONE~1, data=giaciture, newdata=mask_SG, model=efitted) # RSB 070405&lt;br /&gt;
# make the kriging prediction&lt;br /&gt;
&lt;br /&gt;
names(OK_pred) #show the name of variable kriged&lt;br /&gt;
&lt;br /&gt;
writeRAST6(OK_pred, &amp;quot;OK_pred&amp;quot;, zcol=&amp;quot;var1.pred&amp;quot;) # RSB 070405&lt;br /&gt;
#write a raster file and save it in GRASS, now you can open it from there.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that's all! &lt;br /&gt;
&lt;br /&gt;
special thanks to Roger Bivand, ever ready to lend a hand!&lt;br /&gt;
&lt;br /&gt;
* GRASS &amp;lt;a href=&amp;quot;http://grass.itc.it/gdp/tutorials.php&amp;quot;&amp;gt;books and tutorials&amp;lt;/a&amp;gt;&lt;br /&gt;
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature&lt;br /&gt;
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4013</id>
		<title>GRASS 6 Tutorial</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4013"/>
		<updated>2007-04-05T13:05:52Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Mini How to interpolate using kriging with GRASS and R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Free Software/Open Source GIS GRASS 6 is fully operational and stable version for production use.  This tutorial tries to&lt;br /&gt;
give you a hand to familiarize yourself with the improved functionality, especially in the vector engine and attribute management.&lt;br /&gt;
For further reading, see the references below.&lt;br /&gt;
&lt;br /&gt;
'''Disclaimer:''' In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!&lt;br /&gt;
&lt;br /&gt;
This tutorial is intended for GRASS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional [http://grass.itc.it/gdp/tutorials.php books or tutorials].&lt;br /&gt;
&lt;br /&gt;
NOTE: This tutorial here still awaits the merge of the [http://grass.itc.it/grass57/tutorial/ previous GRASS 5.7 tutorial].&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
New GRASS development has made major improvements to the vector&lt;br /&gt;
architecture. The most significant change includes a new 2- and&lt;br /&gt;
3-dimensional vector library that manages vector attributes in&lt;br /&gt;
standard database management systems (DBMS). This system provides the&lt;br /&gt;
power of true relational databases for vector attribute management&lt;br /&gt;
while preserving the flexibility of traditional GRASS topological&lt;br /&gt;
tools. GRASS now also incorporates true 3-dimensional voxels in the&lt;br /&gt;
[[http://grass.itc.it/gdp/nviz/index.html][NVIS]] visualization environment as well as [[http://grass.itc.it/grass60/index.php][numerous enhancements]] to&lt;br /&gt;
virtually every tool in the GRASS library.&lt;br /&gt;
&lt;br /&gt;
==Getting started in general==&lt;br /&gt;
&lt;br /&gt;
* [[Introductory Material]] for Linux and GRASS&lt;br /&gt;
&lt;br /&gt;
==Getting started - how to migrate to the new GRASS version==&lt;br /&gt;
&lt;br /&gt;
* [[Grass Six Tutorial Getting Started]]&lt;br /&gt;
&lt;br /&gt;
==Raster data management==&lt;br /&gt;
&lt;br /&gt;
* The raster management works as it did in previous GRASS versions.&lt;br /&gt;
&lt;br /&gt;
==Vector data management==&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Default Settings]]=== &lt;br /&gt;
       -  Default settings for vector geometry;&lt;br /&gt;
          for vector attributes; for db.* modules&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Geometry Management]]=== &lt;br /&gt;
        -  General notes on Geometry &lt;br /&gt;
          management; Managing the default settings; &lt;br /&gt;
          GRASS vector architecture; Geometry stored in native format;&lt;br /&gt;
          Geometry stored in SHAPE file; &lt;br /&gt;
          Import/export of vector data Geometry;&lt;br /&gt;
          Generating vector geometry from various sources&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Attribute Management]]===&lt;br /&gt;
        - General notes on Attribute &lt;br /&gt;
          management; Managing the default settings; Examples;&lt;br /&gt;
          Database Schema&lt;br /&gt;
&lt;br /&gt;
==Usage examples==&lt;br /&gt;
&lt;br /&gt;
===Basic usage examples===&lt;br /&gt;
&lt;br /&gt;
===Complex usage examples===&lt;br /&gt;
&lt;br /&gt;
===Vector network analysis examples===&lt;br /&gt;
&lt;br /&gt;
===Vector overlay/clipping examples===&lt;br /&gt;
&lt;br /&gt;
===Examples from US National Atlas===&lt;br /&gt;
&lt;br /&gt;
===FAQ (Frequently Asked Questions)===&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Faq&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Troubleshooting&lt;br /&gt;
&lt;br /&gt;
==Links of interest==&lt;br /&gt;
&lt;br /&gt;
* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
&lt;br /&gt;
===GRASS and R kriging interpolation===&lt;br /&gt;
&lt;br /&gt;
====Mini How to interpolate using kriging with GRASS and R====&lt;br /&gt;
&lt;br /&gt;
             ORDINARY KRIGING IN R WITH GRASS6 DATA&lt;br /&gt;
&lt;br /&gt;
('''WARNING!!''' Most of the code quoted here is very out of date, and simply does not work for current R/sp/gstat/spgrass6. Untried suggestions have been edited in, but without a test location, there is no guarantee that they will work! Roger Bivand, 5 April 2007)&lt;br /&gt;
&lt;br /&gt;
Of all the methods we tried this is the most easy and (I suppose) exact too:&lt;br /&gt;
&lt;br /&gt;
You have to have in your library the packages &amp;quot;gstat&amp;quot; and &amp;quot;spgrass6&amp;quot;, you can download this last one directly from R using the command &amp;quot;install.packages&amp;quot;.&lt;br /&gt;
In GRASS we have a vector file named &amp;quot;giaciture_cat_clean3&amp;quot; and we want to do a prediction on this data...&lt;br /&gt;
these are the commmands:&lt;br /&gt;
&lt;br /&gt;
enter R from the GRASS prompt, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(spgrass6) &lt;br /&gt;
&lt;br /&gt;
#get vector points as SpatialPointsDataFrame &lt;br /&gt;
#giaciture &amp;lt;- getSites6sp(&amp;quot;giaciture_cat_clean3&amp;quot;) RSB 070405&lt;br /&gt;
&lt;br /&gt;
giaciture &amp;lt;- readVECT6(&amp;quot;giaciture_cat_clean3&amp;quot;) # RSB 070405&lt;br /&gt;
&lt;br /&gt;
class(giaciture) #shows the class of &amp;quot;giaciture&amp;quot; (SpatialPointsDataFrame)&lt;br /&gt;
 &lt;br /&gt;
# G &amp;lt;- gmeta6() #get region from GRASS to R  RSB 070405&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now if you want you can continue to work in R from GRASS or not...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#create a grid from the region settings of GRASS, it is very important&lt;br /&gt;
# to have square cells, so you can set the region settings of GRASS or&lt;br /&gt;
# you can give directly square dimensions using the values:  &lt;br /&gt;
# e.g.&amp;quot;cells.dim=c(50,50)&amp;quot;&lt;br /&gt;
#grd &amp;lt;- GridTopology(cellcentre.offset=c(G$west+(G$ewres/2)&lt;br /&gt;
#                    ,G$south+(G$nsres/2))&lt;br /&gt;
#                    ,cellsize=c(G$ewres, G$nsres)&lt;br /&gt;
#                    ,cells.dim=c(G$cols, G$rows)) RSB 070405&lt;br /&gt;
&lt;br /&gt;
grd &amp;lt;- gmeta2grd() # RSB 070405&lt;br /&gt;
&lt;br /&gt;
#create a SpatialGridDataFrame&lt;br /&gt;
mask_SG &amp;lt;- SpatialGridDataFrame(grd,&lt;br /&gt;
#                                ,data=list(k=rep(1, G$cols*G$rows)) RSB 070405&lt;br /&gt;
                                data=data.frame(k=rep(1, prod(slot(grd, &amp;quot;cells.dim&amp;quot;)))),&lt;br /&gt;
                                proj4string=CRS(proj4string(giaciture))) # RSB 070405&lt;br /&gt;
# proj4string(giaciture) and proj4string(mask_SG) must agree&lt;br /&gt;
class(mask_SG)&lt;br /&gt;
&lt;br /&gt;
library(gstat)&lt;br /&gt;
&lt;br /&gt;
cvgm &amp;lt;- variogram(IMMERSIONE~1, data=giaciture, width=400, cutoff=4000) # RSB 070405&lt;br /&gt;
#create variogram, and &amp;quot;IMMERSIONE&amp;quot; &lt;br /&gt;
#here is the our variable, the variable on wich we have to do the prediction,&lt;br /&gt;
# ~ 1 select the type of kriging, this is the ordinary one&lt;br /&gt;
&lt;br /&gt;
efitted &amp;lt;- fit.variogram(cvgm, vgm(psill=5000, model=&amp;quot;Exp&amp;quot;, range=1500, nugget=8000))&lt;br /&gt;
# choose the model to fit variogram (here is exponential) and give the&lt;br /&gt;
# estimated parameters of the variogram (partial sill, range and nugget)&lt;br /&gt;
&lt;br /&gt;
OK_pred &amp;lt;- krige(IMMERSIONE~1, data=giaciture, newdata=mask_SG, model=efitted) # RSB 070405&lt;br /&gt;
# make the kriging prediction&lt;br /&gt;
&lt;br /&gt;
names(OK_pred) #show the name of variable kriged&lt;br /&gt;
&lt;br /&gt;
writeRAST6(OK_pred, &amp;quot;OK_pred&amp;quot;, zcol=&amp;quot;var1.pred&amp;quot;) # RSB 070405&lt;br /&gt;
#write a raster file and save it in GRASS, now you can open it from there.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that's all! &lt;br /&gt;
&lt;br /&gt;
special thanks to Roger Bivand, ever ready to lend a hand!&lt;br /&gt;
&lt;br /&gt;
* GRASS &amp;lt;a href=&amp;quot;http://grass.itc.it/gdp/tutorials.php&amp;quot;&amp;gt;books and tutorials&amp;lt;/a&amp;gt;&lt;br /&gt;
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature&lt;br /&gt;
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4012</id>
		<title>GRASS 6 Tutorial</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4012"/>
		<updated>2007-04-05T12:54:10Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Mini How to interpolate using kriging with GRASS and R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Free Software/Open Source GIS GRASS 6 is fully operational and stable version for production use.  This tutorial tries to&lt;br /&gt;
give you a hand to familiarize yourself with the improved functionality, especially in the vector engine and attribute management.&lt;br /&gt;
For further reading, see the references below.&lt;br /&gt;
&lt;br /&gt;
'''Disclaimer:''' In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!&lt;br /&gt;
&lt;br /&gt;
This tutorial is intended for GRASS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional [http://grass.itc.it/gdp/tutorials.php books or tutorials].&lt;br /&gt;
&lt;br /&gt;
NOTE: This tutorial here still awaits the merge of the [http://grass.itc.it/grass57/tutorial/ previous GRASS 5.7 tutorial].&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
New GRASS development has made major improvements to the vector&lt;br /&gt;
architecture. The most significant change includes a new 2- and&lt;br /&gt;
3-dimensional vector library that manages vector attributes in&lt;br /&gt;
standard database management systems (DBMS). This system provides the&lt;br /&gt;
power of true relational databases for vector attribute management&lt;br /&gt;
while preserving the flexibility of traditional GRASS topological&lt;br /&gt;
tools. GRASS now also incorporates true 3-dimensional voxels in the&lt;br /&gt;
[[http://grass.itc.it/gdp/nviz/index.html][NVIS]] visualization environment as well as [[http://grass.itc.it/grass60/index.php][numerous enhancements]] to&lt;br /&gt;
virtually every tool in the GRASS library.&lt;br /&gt;
&lt;br /&gt;
==Getting started in general==&lt;br /&gt;
&lt;br /&gt;
* [[Introductory Material]] for Linux and GRASS&lt;br /&gt;
&lt;br /&gt;
==Getting started - how to migrate to the new GRASS version==&lt;br /&gt;
&lt;br /&gt;
* [[Grass Six Tutorial Getting Started]]&lt;br /&gt;
&lt;br /&gt;
==Raster data management==&lt;br /&gt;
&lt;br /&gt;
* The raster management works as it did in previous GRASS versions.&lt;br /&gt;
&lt;br /&gt;
==Vector data management==&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Default Settings]]=== &lt;br /&gt;
       -  Default settings for vector geometry;&lt;br /&gt;
          for vector attributes; for db.* modules&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Geometry Management]]=== &lt;br /&gt;
        -  General notes on Geometry &lt;br /&gt;
          management; Managing the default settings; &lt;br /&gt;
          GRASS vector architecture; Geometry stored in native format;&lt;br /&gt;
          Geometry stored in SHAPE file; &lt;br /&gt;
          Import/export of vector data Geometry;&lt;br /&gt;
          Generating vector geometry from various sources&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Attribute Management]]===&lt;br /&gt;
        - General notes on Attribute &lt;br /&gt;
          management; Managing the default settings; Examples;&lt;br /&gt;
          Database Schema&lt;br /&gt;
&lt;br /&gt;
==Usage examples==&lt;br /&gt;
&lt;br /&gt;
===Basic usage examples===&lt;br /&gt;
&lt;br /&gt;
===Complex usage examples===&lt;br /&gt;
&lt;br /&gt;
===Vector network analysis examples===&lt;br /&gt;
&lt;br /&gt;
===Vector overlay/clipping examples===&lt;br /&gt;
&lt;br /&gt;
===Examples from US National Atlas===&lt;br /&gt;
&lt;br /&gt;
===FAQ (Frequently Asked Questions)===&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Faq&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Troubleshooting&lt;br /&gt;
&lt;br /&gt;
==Links of interest==&lt;br /&gt;
&lt;br /&gt;
* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
&lt;br /&gt;
===GRASS and R kriging interpolation===&lt;br /&gt;
&lt;br /&gt;
====Mini How to interpolate using kriging with GRASS and R====&lt;br /&gt;
&lt;br /&gt;
             ORDINARY KRIGING IN R WITH GRASS6 DATA&lt;br /&gt;
&lt;br /&gt;
('''WARNING!!''' Most of the code quoted here is very out of date, and simply does not work for current R/sp/gstat/spgrass6. Untried suggestions have been edited in, but without a test location, there is no guarantee that they will work! Roger Bivand, 5 April 2007)&lt;br /&gt;
&lt;br /&gt;
Of all the methods we tried this is the most easy and (I suppose) exact too:&lt;br /&gt;
&lt;br /&gt;
You have to have in your library the packages &amp;quot;gstat&amp;quot; and &amp;quot;spgrass6&amp;quot;, you can download this last one directly from R using the command &amp;quot;install.packages&amp;quot;.&lt;br /&gt;
In GRASS we have a vector file named &amp;quot;giaciture_cat_clean3&amp;quot; and we want to do a prediction on this data...&lt;br /&gt;
these are the commmands:&lt;br /&gt;
&lt;br /&gt;
enter R from the GRASS prompt, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(spgrass6) &lt;br /&gt;
&lt;br /&gt;
#get vector points as SpatialPointsDataFrame &lt;br /&gt;
#giaciture &amp;lt;- getSites6sp(&amp;quot;giaciture_cat_clean3&amp;quot;) RSB 070405&lt;br /&gt;
&lt;br /&gt;
giaciture &amp;lt;- readVECT6(&amp;quot;giaciture_cat_clean3&amp;quot;) # RSB 070405&lt;br /&gt;
&lt;br /&gt;
class(giaciture) #shows the class of &amp;quot;giaciture&amp;quot; (SpatialPointsDataFrame)&lt;br /&gt;
 &lt;br /&gt;
G &amp;lt;- gmeta6() #get region from GRASS to R &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now if you want you can continue to work in R from GRASS or not...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#create a grid from the region settings of GRASS, it is very important&lt;br /&gt;
# to have square cells, so you can set the region settings of GRASS or&lt;br /&gt;
# you can give directly square dimensions using the values:  &lt;br /&gt;
# e.g.&amp;quot;cells.dim=c(50,50)&amp;quot;&lt;br /&gt;
#grd &amp;lt;- GridTopology(cellcentre.offset=c(G$west+(G$ewres/2)&lt;br /&gt;
#                    ,G$south+(G$nsres/2))&lt;br /&gt;
#                    ,cellsize=c(G$ewres, G$nsres)&lt;br /&gt;
#                    ,cells.dim=c(G$cols, G$rows)) RSB 070405&lt;br /&gt;
&lt;br /&gt;
grd &amp;lt;- gmeta2grd() # RSB 070405&lt;br /&gt;
&lt;br /&gt;
#create a SpatialGridDataFrame&lt;br /&gt;
mask_SG &amp;lt;- SpatialGridDataFrame(grd,&lt;br /&gt;
#                                ,data=list(k=rep(1,G$cols*G$rows)) RSB 070405&lt;br /&gt;
                                data=data.frame(k=rep(1,G$cols*G$rows)),&lt;br /&gt;
                                proj4string=CRS(G$proj4)) &lt;br /&gt;
&lt;br /&gt;
class(mask_SG)&lt;br /&gt;
&lt;br /&gt;
library(gstat)&lt;br /&gt;
&lt;br /&gt;
cvgm &amp;lt;- variogram(IMMERSIONE~1, data=giaciture, width=400, cutoff=4000) # RSB 070405&lt;br /&gt;
#create variogram, and &amp;quot;IMMERSIONE&amp;quot; &lt;br /&gt;
#here is the our variable, the variable on wich we have to do the prediction,&lt;br /&gt;
# ~ 1 select the type of kriging, this is the ordinary one&lt;br /&gt;
&lt;br /&gt;
efitted &amp;lt;- fit.variogram(cvgm, vgm(psill=5000, model=&amp;quot;Exp&amp;quot;, range=1500, nugget=8000))&lt;br /&gt;
# choose the model to fit variogram (here is exponential) and give the&lt;br /&gt;
# estimated parameters of the variogram (partial sill, range and nugget)&lt;br /&gt;
&lt;br /&gt;
OK_pred &amp;lt;- krige(IMMERSIONE~1, data=giaciture, newdata=mask_SG, model=efitted) # RSB 070405&lt;br /&gt;
# make the kriging prediction&lt;br /&gt;
&lt;br /&gt;
names(OK_pred) #show the name of variable kriged&lt;br /&gt;
&lt;br /&gt;
writeRAST6(OK_pred, &amp;quot;OK_pred&amp;quot;, zcol=&amp;quot;var1.pred&amp;quot;) # RSB 070405&lt;br /&gt;
#write a raster file and save it in GRASS, now you can open it from there.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that's all! &lt;br /&gt;
&lt;br /&gt;
special thanks to Roger Bivand, ever ready to lend a hand!&lt;br /&gt;
&lt;br /&gt;
* GRASS &amp;lt;a href=&amp;quot;http://grass.itc.it/gdp/tutorials.php&amp;quot;&amp;gt;books and tutorials&amp;lt;/a&amp;gt;&lt;br /&gt;
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature&lt;br /&gt;
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4011</id>
		<title>GRASS 6 Tutorial</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4011"/>
		<updated>2007-04-05T12:44:30Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Mini How to interpolate using kriging with GRASS and R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Free Software/Open Source GIS GRASS 6 is fully operational and stable version for production use.  This tutorial tries to&lt;br /&gt;
give you a hand to familiarize yourself with the improved functionality, especially in the vector engine and attribute management.&lt;br /&gt;
For further reading, see the references below.&lt;br /&gt;
&lt;br /&gt;
'''Disclaimer:''' In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!&lt;br /&gt;
&lt;br /&gt;
This tutorial is intended for GRASS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional [http://grass.itc.it/gdp/tutorials.php books or tutorials].&lt;br /&gt;
&lt;br /&gt;
NOTE: This tutorial here still awaits the merge of the [http://grass.itc.it/grass57/tutorial/ previous GRASS 5.7 tutorial].&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
New GRASS development has made major improvements to the vector&lt;br /&gt;
architecture. The most significant change includes a new 2- and&lt;br /&gt;
3-dimensional vector library that manages vector attributes in&lt;br /&gt;
standard database management systems (DBMS). This system provides the&lt;br /&gt;
power of true relational databases for vector attribute management&lt;br /&gt;
while preserving the flexibility of traditional GRASS topological&lt;br /&gt;
tools. GRASS now also incorporates true 3-dimensional voxels in the&lt;br /&gt;
[[http://grass.itc.it/gdp/nviz/index.html][NVIS]] visualization environment as well as [[http://grass.itc.it/grass60/index.php][numerous enhancements]] to&lt;br /&gt;
virtually every tool in the GRASS library.&lt;br /&gt;
&lt;br /&gt;
==Getting started in general==&lt;br /&gt;
&lt;br /&gt;
* [[Introductory Material]] for Linux and GRASS&lt;br /&gt;
&lt;br /&gt;
==Getting started - how to migrate to the new GRASS version==&lt;br /&gt;
&lt;br /&gt;
* [[Grass Six Tutorial Getting Started]]&lt;br /&gt;
&lt;br /&gt;
==Raster data management==&lt;br /&gt;
&lt;br /&gt;
* The raster management works as it did in previous GRASS versions.&lt;br /&gt;
&lt;br /&gt;
==Vector data management==&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Default Settings]]=== &lt;br /&gt;
       -  Default settings for vector geometry;&lt;br /&gt;
          for vector attributes; for db.* modules&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Geometry Management]]=== &lt;br /&gt;
        -  General notes on Geometry &lt;br /&gt;
          management; Managing the default settings; &lt;br /&gt;
          GRASS vector architecture; Geometry stored in native format;&lt;br /&gt;
          Geometry stored in SHAPE file; &lt;br /&gt;
          Import/export of vector data Geometry;&lt;br /&gt;
          Generating vector geometry from various sources&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Attribute Management]]===&lt;br /&gt;
        - General notes on Attribute &lt;br /&gt;
          management; Managing the default settings; Examples;&lt;br /&gt;
          Database Schema&lt;br /&gt;
&lt;br /&gt;
==Usage examples==&lt;br /&gt;
&lt;br /&gt;
===Basic usage examples===&lt;br /&gt;
&lt;br /&gt;
===Complex usage examples===&lt;br /&gt;
&lt;br /&gt;
===Vector network analysis examples===&lt;br /&gt;
&lt;br /&gt;
===Vector overlay/clipping examples===&lt;br /&gt;
&lt;br /&gt;
===Examples from US National Atlas===&lt;br /&gt;
&lt;br /&gt;
===FAQ (Frequently Asked Questions)===&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Faq&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Troubleshooting&lt;br /&gt;
&lt;br /&gt;
==Links of interest==&lt;br /&gt;
&lt;br /&gt;
* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
&lt;br /&gt;
===GRASS and R kriging interpolation===&lt;br /&gt;
&lt;br /&gt;
====Mini How to interpolate using kriging with GRASS and R====&lt;br /&gt;
&lt;br /&gt;
             ORDINARY KRIGING IN R WITH GRASS6 DATA&lt;br /&gt;
&lt;br /&gt;
('''WARNING!!''' Most of the code quoted here is very out of date, and simply does not work for current R/sp/gstat/spgrass6. Roger Bivand, 5 April 2007)&lt;br /&gt;
&lt;br /&gt;
Of all the methods we tried this is the most easy and (I suppose) exact too:&lt;br /&gt;
&lt;br /&gt;
You have to have in your library the packages &amp;quot;gstat&amp;quot; and &amp;quot;spgrass6&amp;quot;, you can download this last one directly from R using the command &amp;quot;install.packages&amp;quot;.&lt;br /&gt;
In GRASS we have a vector file named &amp;quot;giaciture_cat_clean3&amp;quot; and we want to do a prediction on this data...&lt;br /&gt;
these are the commmands:&lt;br /&gt;
&lt;br /&gt;
enter R from the GRASS prompt, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(spgrass6) &lt;br /&gt;
&lt;br /&gt;
#get vector points as SpatialPointsDataFrame &lt;br /&gt;
giaciture &amp;lt;- getSites6sp(&amp;quot;giaciture_cat_clean3&amp;quot;) &lt;br /&gt;
&lt;br /&gt;
class(giaciture) #shows the class of &amp;quot;giaciture&amp;quot; (SpatialPointsDataFrame)&lt;br /&gt;
 &lt;br /&gt;
G &amp;lt;- gmeta6() #get region from GRASS to R&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now if you want you can continue to work in R from GRASS or not...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#create a grid from the region settings of GRASS, it is very important&lt;br /&gt;
# to have square cells, so you can set the region settings of GRASS or&lt;br /&gt;
# you can give directly square dimensions using the values:  &lt;br /&gt;
# e.g.&amp;quot;cells.dim=c(50,50)&amp;quot;&lt;br /&gt;
grd &amp;lt;- GridTopology(cellcentre.offset=c(G$west+(G$ewres/2)&lt;br /&gt;
                    ,G$south+(G$nsres/2))&lt;br /&gt;
                    ,cellsize=c(G$ewres, G$nsres)&lt;br /&gt;
                    ,cells.dim=c(G$cols, G$rows)) &lt;br /&gt;
&lt;br /&gt;
#create a SpatialGridDataFrame&lt;br /&gt;
mask_SG &amp;lt;- SpatialGridDataFrame(grd&lt;br /&gt;
                                ,data=list(k=rep(1,G$cols*G$rows))&lt;br /&gt;
                                ,proj4string=CRS(G$proj4)) &lt;br /&gt;
&lt;br /&gt;
class(mask_SG)&lt;br /&gt;
&lt;br /&gt;
library(gstat)&lt;br /&gt;
&lt;br /&gt;
cvgm &amp;lt;- variogram(IMMERSIONE~1,locations=giaciture,width=400,cutoff=4000)&lt;br /&gt;
#create variogram, and &amp;quot;IMMERSIONE&amp;quot; &lt;br /&gt;
#here is the our variable, the variable on wich we have to do the prediction,&lt;br /&gt;
# ~ 1 select the type of kriging, this is the ordinary one&lt;br /&gt;
&lt;br /&gt;
efitted &amp;lt;- fit.variogram(cvgm,vgm(psill=5000,model=&amp;quot;Exp&amp;quot;,range=1500,nugget=8000))&lt;br /&gt;
# choose the model to fit variogram (here is exponential) and give the&lt;br /&gt;
# estimated parameters of the variogram (partial sill, range and nugget)&lt;br /&gt;
&lt;br /&gt;
OK_pred &amp;lt;- krige(IMMERSIONE~1,locations=giaciture,newdata=mask_SG,model=efitted)&lt;br /&gt;
# make the kriging prediction&lt;br /&gt;
&lt;br /&gt;
names(OK_pred) #show the name of variable kriged&lt;br /&gt;
&lt;br /&gt;
writeRast6sp(OK_pred,&amp;quot;OK_pred&amp;quot;,zcol=&amp;quot;var1.pred&amp;quot;,NODATA=-9999) &lt;br /&gt;
#write a raster file and save it in GRASS, now you can open it from there.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that's all! &lt;br /&gt;
&lt;br /&gt;
special thanks to Roger Bivand, ever ready to lend a hand!&lt;br /&gt;
&lt;br /&gt;
* GRASS &amp;lt;a href=&amp;quot;http://grass.itc.it/gdp/tutorials.php&amp;quot;&amp;gt;books and tutorials&amp;lt;/a&amp;gt;&lt;br /&gt;
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature&lt;br /&gt;
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4010</id>
		<title>GRASS 6 Tutorial</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=GRASS_6_Tutorial&amp;diff=4010"/>
		<updated>2007-04-05T12:43:32Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Mini How to interpolate using kriging with GRASS and R */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Free Software/Open Source GIS GRASS 6 is fully operational and stable version for production use.  This tutorial tries to&lt;br /&gt;
give you a hand to familiarize yourself with the improved functionality, especially in the vector engine and attribute management.&lt;br /&gt;
For further reading, see the references below.&lt;br /&gt;
&lt;br /&gt;
'''Disclaimer:''' In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!&lt;br /&gt;
&lt;br /&gt;
This tutorial is intended for GRASS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional [http://grass.itc.it/gdp/tutorials.php books or tutorials].&lt;br /&gt;
&lt;br /&gt;
NOTE: This tutorial here still awaits the merge of the [http://grass.itc.it/grass57/tutorial/ previous GRASS 5.7 tutorial].&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
New GRASS development has made major improvements to the vector&lt;br /&gt;
architecture. The most significant change includes a new 2- and&lt;br /&gt;
3-dimensional vector library that manages vector attributes in&lt;br /&gt;
standard database management systems (DBMS). This system provides the&lt;br /&gt;
power of true relational databases for vector attribute management&lt;br /&gt;
while preserving the flexibility of traditional GRASS topological&lt;br /&gt;
tools. GRASS now also incorporates true 3-dimensional voxels in the&lt;br /&gt;
[[http://grass.itc.it/gdp/nviz/index.html][NVIS]] visualization environment as well as [[http://grass.itc.it/grass60/index.php][numerous enhancements]] to&lt;br /&gt;
virtually every tool in the GRASS library.&lt;br /&gt;
&lt;br /&gt;
==Getting started in general==&lt;br /&gt;
&lt;br /&gt;
* [[Introductory Material]] for Linux and GRASS&lt;br /&gt;
&lt;br /&gt;
==Getting started - how to migrate to the new GRASS version==&lt;br /&gt;
&lt;br /&gt;
* [[Grass Six Tutorial Getting Started]]&lt;br /&gt;
&lt;br /&gt;
==Raster data management==&lt;br /&gt;
&lt;br /&gt;
* The raster management works as it did in previous GRASS versions.&lt;br /&gt;
&lt;br /&gt;
==Vector data management==&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Default Settings]]=== &lt;br /&gt;
       -  Default settings for vector geometry;&lt;br /&gt;
          for vector attributes; for db.* modules&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Geometry Management]]=== &lt;br /&gt;
        -  General notes on Geometry &lt;br /&gt;
          management; Managing the default settings; &lt;br /&gt;
          GRASS vector architecture; Geometry stored in native format;&lt;br /&gt;
          Geometry stored in SHAPE file; &lt;br /&gt;
          Import/export of vector data Geometry;&lt;br /&gt;
          Generating vector geometry from various sources&lt;br /&gt;
&lt;br /&gt;
===[[Grass Six Tutorial Attribute Management]]===&lt;br /&gt;
        - General notes on Attribute &lt;br /&gt;
          management; Managing the default settings; Examples;&lt;br /&gt;
          Database Schema&lt;br /&gt;
&lt;br /&gt;
==Usage examples==&lt;br /&gt;
&lt;br /&gt;
===Basic usage examples===&lt;br /&gt;
&lt;br /&gt;
===Complex usage examples===&lt;br /&gt;
&lt;br /&gt;
===Vector network analysis examples===&lt;br /&gt;
&lt;br /&gt;
===Vector overlay/clipping examples===&lt;br /&gt;
&lt;br /&gt;
===Examples from US National Atlas===&lt;br /&gt;
&lt;br /&gt;
===FAQ (Frequently Asked Questions)===&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Faq&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
* Grass Six Tutorial Troubleshooting&lt;br /&gt;
&lt;br /&gt;
==Links of interest==&lt;br /&gt;
&lt;br /&gt;
* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/&lt;br /&gt;
&lt;br /&gt;
==Further reading==&lt;br /&gt;
&lt;br /&gt;
===GRASS and R kriging interpolation===&lt;br /&gt;
&lt;br /&gt;
====Mini How to interpolate using kriging with GRASS and R====&lt;br /&gt;
&lt;br /&gt;
             ORDINARY KRIGING IN R WITH GRASS6 DATA&lt;br /&gt;
&lt;br /&gt;
(WARNING!! Most of the code quoted here is very out of date, and simply does not work for current R/sp/gstat/spgrass6. Roger Bivand, 5 April 2007)&lt;br /&gt;
&lt;br /&gt;
Of all the methods we tried this is the most easy and (I suppose) exact too:&lt;br /&gt;
&lt;br /&gt;
You have to have in your library the packages &amp;quot;gstat&amp;quot; and &amp;quot;spgrass6&amp;quot;, you can download this last one directly from R using the command &amp;quot;install.packages&amp;quot;.&lt;br /&gt;
In GRASS we have a vector file named &amp;quot;giaciture_cat_clean3&amp;quot; and we want to do a prediction on this data...&lt;br /&gt;
these are the commmands:&lt;br /&gt;
&lt;br /&gt;
enter R from the GRASS prompt, and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
library(spgrass6) &lt;br /&gt;
&lt;br /&gt;
#get vector points as SpatialPointsDataFrame &lt;br /&gt;
giaciture &amp;lt;- getSites6sp(&amp;quot;giaciture_cat_clean3&amp;quot;) &lt;br /&gt;
&lt;br /&gt;
class(giaciture) #shows the class of &amp;quot;giaciture&amp;quot; (SpatialPointsDataFrame)&lt;br /&gt;
 &lt;br /&gt;
G &amp;lt;- gmeta6() #get region from GRASS to R&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now if you want you can continue to work in R from GRASS or not...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#create a grid from the region settings of GRASS, it is very important&lt;br /&gt;
# to have square cells, so you can set the region settings of GRASS or&lt;br /&gt;
# you can give directly square dimensions using the values:  &lt;br /&gt;
# e.g.&amp;quot;cells.dim=c(50,50)&amp;quot;&lt;br /&gt;
grd &amp;lt;- GridTopology(cellcentre.offset=c(G$west+(G$ewres/2)&lt;br /&gt;
                    ,G$south+(G$nsres/2))&lt;br /&gt;
                    ,cellsize=c(G$ewres, G$nsres)&lt;br /&gt;
                    ,cells.dim=c(G$cols, G$rows)) &lt;br /&gt;
&lt;br /&gt;
#create a SpatialGridDataFrame&lt;br /&gt;
mask_SG &amp;lt;- SpatialGridDataFrame(grd&lt;br /&gt;
                                ,data=list(k=rep(1,G$cols*G$rows))&lt;br /&gt;
                                ,proj4string=CRS(G$proj4)) &lt;br /&gt;
&lt;br /&gt;
class(mask_SG)&lt;br /&gt;
&lt;br /&gt;
library(gstat)&lt;br /&gt;
&lt;br /&gt;
cvgm &amp;lt;- variogram(IMMERSIONE~1,locations=giaciture,width=400,cutoff=4000)&lt;br /&gt;
#create variogram, and &amp;quot;IMMERSIONE&amp;quot; &lt;br /&gt;
#here is the our variable, the variable on wich we have to do the prediction,&lt;br /&gt;
# ~ 1 select the type of kriging, this is the ordinary one&lt;br /&gt;
&lt;br /&gt;
efitted &amp;lt;- fit.variogram(cvgm,vgm(psill=5000,model=&amp;quot;Exp&amp;quot;,range=1500,nugget=8000))&lt;br /&gt;
# choose the model to fit variogram (here is exponential) and give the&lt;br /&gt;
# estimated parameters of the variogram (partial sill, range and nugget)&lt;br /&gt;
&lt;br /&gt;
OK_pred &amp;lt;- krige(IMMERSIONE~1,locations=giaciture,newdata=mask_SG,model=efitted)&lt;br /&gt;
# make the kriging prediction&lt;br /&gt;
&lt;br /&gt;
names(OK_pred) #show the name of variable kriged&lt;br /&gt;
&lt;br /&gt;
writeRast6sp(OK_pred,&amp;quot;OK_pred&amp;quot;,zcol=&amp;quot;var1.pred&amp;quot;,NODATA=-9999) &lt;br /&gt;
#write a raster file and save it in GRASS, now you can open it from there.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
that's all! &lt;br /&gt;
&lt;br /&gt;
special thanks to Roger Bivand, ever ready to lend a hand!&lt;br /&gt;
&lt;br /&gt;
* GRASS &amp;lt;a href=&amp;quot;http://grass.itc.it/gdp/tutorials.php&amp;quot;&amp;gt;books and tutorials&amp;lt;/a&amp;gt;&lt;br /&gt;
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature&lt;br /&gt;
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3021</id>
		<title>Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3021"/>
		<updated>2006-11-21T08:49:34Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Interfacing R-Statistics with GRASS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Tips and Tricks==&lt;br /&gt;
&lt;br /&gt;
===Using QGIS as a frontend to GRASS===&lt;br /&gt;
&lt;br /&gt;
QGIS can run as a frontend to GRASS. There is support for displaying maps, editing maps, and execution of simple GIS functions. The GDAL/OGR library is a requirement for that (but for GRASS anyway):&lt;br /&gt;
&lt;br /&gt;
* QGIS homepage:  http://qgis.org&lt;br /&gt;
* GDAL homepage:  http://www.gdal.org&lt;br /&gt;
&lt;br /&gt;
To use the two together, the GDAL-GRASS plugin must be installed:&lt;br /&gt;
&lt;br /&gt;
* [[Compile and install GRASS and QGIS with GDAL/OGR Plugin]]&lt;br /&gt;
&lt;br /&gt;
Test that the GDAL-GRASS plugin is available with this command:&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  gdalinfo --formats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Look for a line like &amp;quot;GRASS (ro): GRASS Database Rasters (5.7+)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enable the QGIS GRASS plugin from QGIS: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  GUI: Plugins / Plugin Manager / Check the GRASS checkbox&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The GRASS toolbar should now be visible.&lt;br /&gt;
While not a firm requirement, it is easier to start QGIS from within a GRASS session.&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.qgis.org/qgiswiki/GrassCookbook QGIS GRASS Cookbook] - Recipes for common tasks&lt;br /&gt;
&lt;br /&gt;
===Exporting GRASS maps to GMT===&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
Exporting GRASS maps to GMT:  http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
===Interfacing R-Statistics with GRASS===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* All the necessary functions for the GRASS 6 interface are now in packages on CRAN, so that on Linux/Unix (or Mac OSX) installing rgdal from source with PROJ4 and GDAL installed, or Windows installing from binary, the required packages are: sp; maptools (now includes spmaptools); rgdal (now includes spGDAL, spproj); spgrass6 - now all on CRAN.&lt;br /&gt;
&lt;br /&gt;
* http://grass.ibiblio.org/statsgrass/index.php#grassR&lt;br /&gt;
&lt;br /&gt;
* R-Statistics homepage  http://www.r-project.org&lt;br /&gt;
&lt;br /&gt;
* R Spatial Projects http://sal.uiuc.edu/csiss/Rgeo//&lt;br /&gt;
&lt;br /&gt;
* http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html#spgrass6&lt;br /&gt;
&lt;br /&gt;
* Neural Networks with GRASS and R (posted by Markus Neteler on the grass-user mailing list) http://www.uam.es/proyectosinv/Mclim/pdf/MBenito_EcoMod.pdf&lt;br /&gt;
&lt;br /&gt;
* Using R and GRASS with cygwin: It is possible to use Rterm inside the GRASS shell in cygwin, just as in Unix/Linux or OSX. You should not, however, start Rterm from a cygwin xterm, because Rterm is not expecting to be run in an xterm under Windows, and loses its input. If you use the regular cygwin bash shell, but need to start display windows, start X from within GRASS with startx &amp;amp;, and then start Rterm in the same cygwin shell, not in the xterm.&lt;br /&gt;
&lt;br /&gt;
===Using GRASS with an on-line Web-GIS===&lt;br /&gt;
&lt;br /&gt;
see:&lt;br /&gt;
&lt;br /&gt;
* [[GRASS and MapServer]]&lt;br /&gt;
* [[GRASS and PHP]]&lt;br /&gt;
* [[GRASS and Python]]&lt;br /&gt;
&lt;br /&gt;
(please expand)&lt;br /&gt;
&lt;br /&gt;
===Starting and running GRASS from a script===&lt;br /&gt;
&lt;br /&gt;
See [[GRASS and Shell]].&lt;br /&gt;
&lt;br /&gt;
===Running GRASS remotely on OS X===&lt;br /&gt;
&lt;br /&gt;
Tiger (OS 10.4) changed the default configuration of SSH from previous versions of OS X. You can no longer start  an ssh session with the -X flag and display the Tcl/Tk components of the GRASS GUI remotely. If you are running grass on OS X (10.4) between hosts on a network (i.e. running it on one machine but displaying it on another), you will need to use the &amp;quot;trusted forwarding&amp;quot; mode of SSH in order for the Tcl/Tk generated graphics, such as d.m or gis.m in order for the GUI graphics to make it through your connection. This can be done using the -Y flag when you start the ssh session:&lt;br /&gt;
&lt;br /&gt;
 ssh -Y remotehost&lt;br /&gt;
&lt;br /&gt;
or add this to ~/.ssh/config:&lt;br /&gt;
&lt;br /&gt;
 Host hostname&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
   ForwardX11Trusted yes&lt;br /&gt;
&lt;br /&gt;
Using the -X flag, or simply turning on X11Forwarding in the SSH configuration files, is not enough:  the symptoms in this case are that a d.mon window will function fine, but none of the Tcl/Tk dialogues will work, failing with an error message complaining either about Wish not behaving as expected, or a &amp;quot;Bad Atom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3020</id>
		<title>Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3020"/>
		<updated>2006-11-21T08:48:59Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Interfacing R-Statistics with GRASS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Tips and Tricks==&lt;br /&gt;
&lt;br /&gt;
===Using QGIS as a frontend to GRASS===&lt;br /&gt;
&lt;br /&gt;
QGIS can run as a frontend to GRASS. There is support for displaying maps, editing maps, and execution of simple GIS functions. The GDAL/OGR library is a requirement for that (but for GRASS anyway):&lt;br /&gt;
&lt;br /&gt;
* QGIS homepage:  http://qgis.org&lt;br /&gt;
* GDAL homepage:  http://www.gdal.org&lt;br /&gt;
&lt;br /&gt;
To use the two together, the GDAL-GRASS plugin must be installed:&lt;br /&gt;
&lt;br /&gt;
* [[Compile and install GRASS and QGIS with GDAL/OGR Plugin]]&lt;br /&gt;
&lt;br /&gt;
Test that the GDAL-GRASS plugin is available with this command:&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  gdalinfo --formats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Look for a line like &amp;quot;GRASS (ro): GRASS Database Rasters (5.7+)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enable the QGIS GRASS plugin from QGIS: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  GUI: Plugins / Plugin Manager / Check the GRASS checkbox&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The GRASS toolbar should now be visible.&lt;br /&gt;
While not a firm requirement, it is easier to start QGIS from within a GRASS session.&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.qgis.org/qgiswiki/GrassCookbook QGIS GRASS Cookbook] - Recipes for common tasks&lt;br /&gt;
&lt;br /&gt;
===Exporting GRASS maps to GMT===&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
Exporting GRASS maps to GMT:  http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
===Interfacing R-Statistics with GRASS===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* All the necessary functions for the GRASS 6 interface are now in packages &lt;br /&gt;
on CRAN, so that on Linux/Unix (or Mac OSX) installing rgdal from source &lt;br /&gt;
with PROJ4 and GDAL installed, or Windows installing from binary, the required&lt;br /&gt;
packages are: sp; maptools (now includes spmaptools); rgdal (now includes spGDAL, spproj); spgrass6 - now all on CRAN.&lt;br /&gt;
&lt;br /&gt;
* http://grass.ibiblio.org/statsgrass/index.php#grassR&lt;br /&gt;
&lt;br /&gt;
* R-Statistics homepage  http://www.r-project.org&lt;br /&gt;
&lt;br /&gt;
* R Spatial Projects http://sal.uiuc.edu/csiss/Rgeo//&lt;br /&gt;
&lt;br /&gt;
* http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html#spgrass6&lt;br /&gt;
&lt;br /&gt;
* Neural Networks with GRASS and R (posted by Markus Neteler on the grass-user mailing list) http://www.uam.es/proyectosinv/Mclim/pdf/MBenito_EcoMod.pdf&lt;br /&gt;
&lt;br /&gt;
* Using R and GRASS with cygwin: It is possible to use Rterm inside the GRASS shell in cygwin, just as in Unix/Linux or OSX. You should not, however, start Rterm from a cygwin xterm, because Rterm is not expecting to be run in an xterm under Windows, and loses its input. If you use the regular cygwin bash shell, but need to start display windows, start X from within GRASS with startx &amp;amp;, and then start Rterm in the same cygwin shell, not in the xterm.&lt;br /&gt;
&lt;br /&gt;
===Using GRASS with an on-line Web-GIS===&lt;br /&gt;
&lt;br /&gt;
see:&lt;br /&gt;
&lt;br /&gt;
* [[GRASS and MapServer]]&lt;br /&gt;
* [[GRASS and PHP]]&lt;br /&gt;
* [[GRASS and Python]]&lt;br /&gt;
&lt;br /&gt;
(please expand)&lt;br /&gt;
&lt;br /&gt;
===Starting and running GRASS from a script===&lt;br /&gt;
&lt;br /&gt;
See [[GRASS and Shell]].&lt;br /&gt;
&lt;br /&gt;
===Running GRASS remotely on OS X===&lt;br /&gt;
&lt;br /&gt;
Tiger (OS 10.4) changed the default configuration of SSH from previous versions of OS X. You can no longer start  an ssh session with the -X flag and display the Tcl/Tk components of the GRASS GUI remotely. If you are running grass on OS X (10.4) between hosts on a network (i.e. running it on one machine but displaying it on another), you will need to use the &amp;quot;trusted forwarding&amp;quot; mode of SSH in order for the Tcl/Tk generated graphics, such as d.m or gis.m in order for the GUI graphics to make it through your connection. This can be done using the -Y flag when you start the ssh session:&lt;br /&gt;
&lt;br /&gt;
 ssh -Y remotehost&lt;br /&gt;
&lt;br /&gt;
or add this to ~/.ssh/config:&lt;br /&gt;
&lt;br /&gt;
 Host hostname&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
   ForwardX11Trusted yes&lt;br /&gt;
&lt;br /&gt;
Using the -X flag, or simply turning on X11Forwarding in the SSH configuration files, is not enough:  the symptoms in this case are that a d.mon window will function fine, but none of the Tcl/Tk dialogues will work, failing with an error message complaining either about Wish not behaving as expected, or a &amp;quot;Bad Atom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3019</id>
		<title>Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3019"/>
		<updated>2006-11-21T08:47:38Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Interfacing R-Statistics with GRASS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Tips and Tricks==&lt;br /&gt;
&lt;br /&gt;
===Using QGIS as a frontend to GRASS===&lt;br /&gt;
&lt;br /&gt;
QGIS can run as a frontend to GRASS. There is support for displaying maps, editing maps, and execution of simple GIS functions. The GDAL/OGR library is a requirement for that (but for GRASS anyway):&lt;br /&gt;
&lt;br /&gt;
* QGIS homepage:  http://qgis.org&lt;br /&gt;
* GDAL homepage:  http://www.gdal.org&lt;br /&gt;
&lt;br /&gt;
To use the two together, the GDAL-GRASS plugin must be installed:&lt;br /&gt;
&lt;br /&gt;
* [[Compile and install GRASS and QGIS with GDAL/OGR Plugin]]&lt;br /&gt;
&lt;br /&gt;
Test that the GDAL-GRASS plugin is available with this command:&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  gdalinfo --formats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Look for a line like &amp;quot;GRASS (ro): GRASS Database Rasters (5.7+)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enable the QGIS GRASS plugin from QGIS: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  GUI: Plugins / Plugin Manager / Check the GRASS checkbox&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The GRASS toolbar should now be visible.&lt;br /&gt;
While not a firm requirement, it is easier to start QGIS from within a GRASS session.&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.qgis.org/qgiswiki/GrassCookbook QGIS GRASS Cookbook] - Recipes for common tasks&lt;br /&gt;
&lt;br /&gt;
===Exporting GRASS maps to GMT===&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
Exporting GRASS maps to GMT:  http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
===Interfacing R-Statistics with GRASS===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* All the necessary functions for the GRASS 6 interface are now in packages  &lt;br /&gt;
on CRAN, so that on Linux/Unix (or Mac OSX) installing rgdal from source&lt;br /&gt;
with PROJ4 and GDAL installed, or Windows installing from binary, the required&lt;br /&gt;
packages are:&lt;br /&gt;
  &lt;br /&gt;
sp&lt;br /&gt;
&lt;br /&gt;
maptools (now includes spmaptools)&lt;br /&gt;
&lt;br /&gt;
rgdal (now includes spGDAL, spproj)&lt;br /&gt;
&lt;br /&gt;
spgrass6&lt;br /&gt;
&lt;br /&gt;
now all on CRAN.&lt;br /&gt;
&lt;br /&gt;
* http://grass.ibiblio.org/statsgrass/index.php#grassR&lt;br /&gt;
&lt;br /&gt;
* R-Statistics homepage  http://www.r-project.org&lt;br /&gt;
&lt;br /&gt;
* R Spatial Projects http://sal.uiuc.edu/csiss/Rgeo//&lt;br /&gt;
&lt;br /&gt;
* http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html#spgrass6&lt;br /&gt;
&lt;br /&gt;
* Neural Networks with GRASS and R (posted by Markus Neteler on the grass-user mailing list) http://www.uam.es/proyectosinv/Mclim/pdf/MBenito_EcoMod.pdf&lt;br /&gt;
&lt;br /&gt;
* Using R and GRASS with cygwin: It is possible to use Rterm inside the GRASS shell in cygwin, just as in Unix/Linux or OSX. You should not, however, start Rterm from a cygwin xterm, because Rterm is not expecting to be run in an xterm under Windows, and loses its input. If you use the regular cygwin bash shell, but need to start display windows, start X from within GRASS with startx &amp;amp;, and then start Rterm in the same cygwin shell, not in the xterm.&lt;br /&gt;
&lt;br /&gt;
===Using GRASS with an on-line Web-GIS===&lt;br /&gt;
&lt;br /&gt;
see:&lt;br /&gt;
&lt;br /&gt;
* [[GRASS and MapServer]]&lt;br /&gt;
* [[GRASS and PHP]]&lt;br /&gt;
* [[GRASS and Python]]&lt;br /&gt;
&lt;br /&gt;
(please expand)&lt;br /&gt;
&lt;br /&gt;
===Starting and running GRASS from a script===&lt;br /&gt;
&lt;br /&gt;
See [[GRASS and Shell]].&lt;br /&gt;
&lt;br /&gt;
===Running GRASS remotely on OS X===&lt;br /&gt;
&lt;br /&gt;
Tiger (OS 10.4) changed the default configuration of SSH from previous versions of OS X. You can no longer start  an ssh session with the -X flag and display the Tcl/Tk components of the GRASS GUI remotely. If you are running grass on OS X (10.4) between hosts on a network (i.e. running it on one machine but displaying it on another), you will need to use the &amp;quot;trusted forwarding&amp;quot; mode of SSH in order for the Tcl/Tk generated graphics, such as d.m or gis.m in order for the GUI graphics to make it through your connection. This can be done using the -Y flag when you start the ssh session:&lt;br /&gt;
&lt;br /&gt;
 ssh -Y remotehost&lt;br /&gt;
&lt;br /&gt;
or add this to ~/.ssh/config:&lt;br /&gt;
&lt;br /&gt;
 Host hostname&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
   ForwardX11Trusted yes&lt;br /&gt;
&lt;br /&gt;
Using the -X flag, or simply turning on X11Forwarding in the SSH configuration files, is not enough:  the symptoms in this case are that a d.mon window will function fine, but none of the Tcl/Tk dialogues will work, failing with an error message complaining either about Wish not behaving as expected, or a &amp;quot;Bad Atom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3018</id>
		<title>Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3018"/>
		<updated>2006-11-21T08:46:32Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Interfacing R-Statistics with GRASS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Tips and Tricks==&lt;br /&gt;
&lt;br /&gt;
===Using QGIS as a frontend to GRASS===&lt;br /&gt;
&lt;br /&gt;
QGIS can run as a frontend to GRASS. There is support for displaying maps, editing maps, and execution of simple GIS functions. The GDAL/OGR library is a requirement for that (but for GRASS anyway):&lt;br /&gt;
&lt;br /&gt;
* QGIS homepage:  http://qgis.org&lt;br /&gt;
* GDAL homepage:  http://www.gdal.org&lt;br /&gt;
&lt;br /&gt;
To use the two together, the GDAL-GRASS plugin must be installed:&lt;br /&gt;
&lt;br /&gt;
* [[Compile and install GRASS and QGIS with GDAL/OGR Plugin]]&lt;br /&gt;
&lt;br /&gt;
Test that the GDAL-GRASS plugin is available with this command:&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  gdalinfo --formats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Look for a line like &amp;quot;GRASS (ro): GRASS Database Rasters (5.7+)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enable the QGIS GRASS plugin from QGIS: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  GUI: Plugins / Plugin Manager / Check the GRASS checkbox&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The GRASS toolbar should now be visible.&lt;br /&gt;
While not a firm requirement, it is easier to start QGIS from within a GRASS session.&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.qgis.org/qgiswiki/GrassCookbook QGIS GRASS Cookbook] - Recipes for common tasks&lt;br /&gt;
&lt;br /&gt;
===Exporting GRASS maps to GMT===&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
Exporting GRASS maps to GMT:  http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
===Interfacing R-Statistics with GRASS===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* All the necessary functions for the GRASS 6 interface are now in packages  &lt;br /&gt;
on CRAN, so that on Linux/Unix (or Mac OSX) installing rgdal from source&lt;br /&gt;
with PROJ4 and GDAL installed, or Windows installin binary, the required&lt;br /&gt;
packages are:&lt;br /&gt;
  &lt;br /&gt;
sp&lt;br /&gt;
&lt;br /&gt;
maptools (now includes spmaptools)&lt;br /&gt;
&lt;br /&gt;
rgdal (now includes spGDAL, spproj)&lt;br /&gt;
&lt;br /&gt;
spgrass6&lt;br /&gt;
&lt;br /&gt;
now all on CRAN.&lt;br /&gt;
&lt;br /&gt;
* http://grass.ibiblio.org/statsgrass/index.php#grassR&lt;br /&gt;
&lt;br /&gt;
* R-Statistics homepage  http://www.r-project.org&lt;br /&gt;
&lt;br /&gt;
* R Spatial Projects http://sal.uiuc.edu/csiss/Rgeo//&lt;br /&gt;
&lt;br /&gt;
* http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html#spgrass6&lt;br /&gt;
&lt;br /&gt;
* Neural Networks with GRASS and R (posted by Markus Neteler on the grass-user mailing list) http://www.uam.es/proyectosinv/Mclim/pdf/MBenito_EcoMod.pdf&lt;br /&gt;
&lt;br /&gt;
* Using R and GRASS with cygwin: It is possible to use Rterm inside the GRASS shell in cygwin, just as in Unix/Linux or OSX. You should not, however, start Rterm from a cygwin xterm, because Rterm is not expecting to be run in an xterm under Windows, and loses its input. If you use the regular cygwin bash shell, but need to start display windows, start X from within GRASS with startx &amp;amp;, and then start Rterm in the same cygwin shell, not in the xterm.&lt;br /&gt;
&lt;br /&gt;
===Using GRASS with an on-line Web-GIS===&lt;br /&gt;
&lt;br /&gt;
see:&lt;br /&gt;
&lt;br /&gt;
* [[GRASS and MapServer]]&lt;br /&gt;
* [[GRASS and PHP]]&lt;br /&gt;
* [[GRASS and Python]]&lt;br /&gt;
&lt;br /&gt;
(please expand)&lt;br /&gt;
&lt;br /&gt;
===Starting and running GRASS from a script===&lt;br /&gt;
&lt;br /&gt;
See [[GRASS and Shell]].&lt;br /&gt;
&lt;br /&gt;
===Running GRASS remotely on OS X===&lt;br /&gt;
&lt;br /&gt;
Tiger (OS 10.4) changed the default configuration of SSH from previous versions of OS X. You can no longer start  an ssh session with the -X flag and display the Tcl/Tk components of the GRASS GUI remotely. If you are running grass on OS X (10.4) between hosts on a network (i.e. running it on one machine but displaying it on another), you will need to use the &amp;quot;trusted forwarding&amp;quot; mode of SSH in order for the Tcl/Tk generated graphics, such as d.m or gis.m in order for the GUI graphics to make it through your connection. This can be done using the -Y flag when you start the ssh session:&lt;br /&gt;
&lt;br /&gt;
 ssh -Y remotehost&lt;br /&gt;
&lt;br /&gt;
or add this to ~/.ssh/config:&lt;br /&gt;
&lt;br /&gt;
 Host hostname&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
   ForwardX11Trusted yes&lt;br /&gt;
&lt;br /&gt;
Using the -X flag, or simply turning on X11Forwarding in the SSH configuration files, is not enough:  the symptoms in this case are that a d.mon window will function fine, but none of the Tcl/Tk dialogues will work, failing with an error message complaining either about Wish not behaving as expected, or a &amp;quot;Bad Atom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3004</id>
		<title>Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Tips_and_Tricks&amp;diff=3004"/>
		<updated>2006-11-17T11:31:20Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Interfacing R-Statistics with GRASS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Tips and Tricks==&lt;br /&gt;
&lt;br /&gt;
===Using QGIS as a frontend to GRASS===&lt;br /&gt;
&lt;br /&gt;
QGIS can run as a frontend to GRASS. There is support for displaying maps, editing maps, and execution of simple GIS functions. The GDAL/OGR library is a requirement for that (but for GRASS anyway):&lt;br /&gt;
&lt;br /&gt;
* QGIS homepage:  http://qgis.org&lt;br /&gt;
* GDAL homepage:  http://www.gdal.org&lt;br /&gt;
&lt;br /&gt;
To use the two together, the GDAL-GRASS plugin must be installed:&lt;br /&gt;
&lt;br /&gt;
* [[Compile and install GRASS and QGIS with GDAL/OGR Plugin]]&lt;br /&gt;
&lt;br /&gt;
Test that the GDAL-GRASS plugin is available with this command:&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  gdalinfo --formats&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Look for a line like &amp;quot;GRASS (ro): GRASS Database Rasters (5.7+)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Enable the QGIS GRASS plugin from QGIS: &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  GUI: Plugins / Plugin Manager / Check the GRASS checkbox&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The GRASS toolbar should now be visible.&lt;br /&gt;
While not a firm requirement, it is easier to start QGIS from within a GRASS session.&lt;br /&gt;
&lt;br /&gt;
* [http://wiki.qgis.org/qgiswiki/GrassCookbook QGIS GRASS Cookbook] - Recipes for common tasks&lt;br /&gt;
&lt;br /&gt;
===Exporting GRASS maps to GMT===&lt;br /&gt;
&lt;br /&gt;
GMT (Generic Mapping Tools) is a Free software package for creating publication quality cartography.&lt;br /&gt;
&lt;br /&gt;
GMT homepage:  http://gmt.soest.hawaii.edu&lt;br /&gt;
&lt;br /&gt;
Exporting GRASS maps to GMT:  http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&lt;br /&gt;
&amp;lt;BR&amp;gt;(Supplied by the GRASS Users Group of Davis, California)&lt;br /&gt;
&lt;br /&gt;
===Interfacing R-Statistics with GRASS===&lt;br /&gt;
&lt;br /&gt;
* http://grass.ibiblio.org/statsgrass/index.php#grassR&lt;br /&gt;
&lt;br /&gt;
* R-Statistics homepage  http://www.r-project.org&lt;br /&gt;
&lt;br /&gt;
* R Spatial Projects http://sal.uiuc.edu/csiss/Rgeo//&lt;br /&gt;
&lt;br /&gt;
* http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html#spgrass6&lt;br /&gt;
&lt;br /&gt;
* Neural Networks with GRASS and R (posted by Markus Neteler on the grass-user mailing list) http://www.uam.es/proyectosinv/Mclim/pdf/MBenito_EcoMod.pdf&lt;br /&gt;
&lt;br /&gt;
* Using R and GRASS with cygwin: It is possible to use Rterm inside the GRASS shell in cygwin, just as in Unix/Linux or OSX. You should not, however, start Rterm from a cygwin xterm, because Rterm is not expecting to be run in an xterm under Windows, and loses its input. If you use the regular cygwin bash shell, but need to start display windows, start X from within GRASS with startx &amp;amp;, and then start Rterm in the same cygwin shell, not in the xterm.&lt;br /&gt;
&lt;br /&gt;
===Using GRASS with an on-line Web-GIS===&lt;br /&gt;
&lt;br /&gt;
see:&lt;br /&gt;
&lt;br /&gt;
* [[GRASS and MapServer]]&lt;br /&gt;
* [[GRASS and PHP]]&lt;br /&gt;
* [[GRASS and Python]]&lt;br /&gt;
&lt;br /&gt;
(please expand)&lt;br /&gt;
&lt;br /&gt;
===Starting and running GRASS from a script===&lt;br /&gt;
&lt;br /&gt;
See [[GRASS and Shell]].&lt;br /&gt;
&lt;br /&gt;
===Running GRASS remotely on OS X===&lt;br /&gt;
&lt;br /&gt;
Tiger (OS 10.4) changed the default configuration of SSH from previous versions of OS X. You can no longer start  an ssh session with the -X flag and display the Tcl/Tk components of the GRASS GUI remotely. If you are running grass on OS X (10.4) between hosts on a network (i.e. running it on one machine but displaying it on another), you will need to use the &amp;quot;trusted forwarding&amp;quot; mode of SSH in order for the Tcl/Tk generated graphics, such as d.m or gis.m in order for the GUI graphics to make it through your connection. This can be done using the -Y flag when you start the ssh session:&lt;br /&gt;
&lt;br /&gt;
 ssh -Y remotehost&lt;br /&gt;
&lt;br /&gt;
or add this to ~/.ssh/config:&lt;br /&gt;
&lt;br /&gt;
 Host hostname&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
   ForwardX11Trusted yes&lt;br /&gt;
&lt;br /&gt;
Using the -X flag, or simply turning on X11Forwarding in the SSH configuration files, is not enough:  the symptoms in this case are that a d.mon window will function fine, but none of the Tcl/Tk dialogues will work, failing with an error message complaining either about Wish not behaving as expected, or a &amp;quot;Bad Atom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=AddOns&amp;diff=2661</id>
		<title>AddOns</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=AddOns&amp;diff=2661"/>
		<updated>2006-10-07T13:23:45Z</updated>

		<summary type="html">&lt;p&gt;⚠️Rsb: /* Vector add-ons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page contains references to user contributions and add-ons (the original GRASS GIS software can be downloaded [http://grass.itc.it/download/index.php here]).&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Copyright and licensing information==&lt;br /&gt;
&lt;br /&gt;
''Please be sure to include copyright and licensing information in the header comments of your code so that others may know how they can use, extend, modify, and redistribute your work.''&lt;br /&gt;
&lt;br /&gt;
e.g. at the top of a shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
############################################################################&lt;br /&gt;
#&lt;br /&gt;
# MODULE:       v.in.e00&lt;br /&gt;
#&lt;br /&gt;
# AUTHOR(S):    Markus Neteler, Otto Dassau&lt;br /&gt;
#&lt;br /&gt;
# PURPOSE:      Import E00 data into a GRASS vector map&lt;br /&gt;
#               Imports single and split E00 files (.e00, .e01, .e02 ...)&lt;br /&gt;
#&lt;br /&gt;
# COPYRIGHT:    (c) 2004, 2005 GDF Hannover bR, http://www.gdf-hannover.de&lt;br /&gt;
#&lt;br /&gt;
#               This program is free software under the GNU General Public&lt;br /&gt;
#               License (&amp;gt;=v2). Read the file COPYING that comes with GRASS&lt;br /&gt;
#               for details.&lt;br /&gt;
#&lt;br /&gt;
#############################################################################&lt;br /&gt;
#&lt;br /&gt;
# REQUIREMENTS:&lt;br /&gt;
#      -  avcimport: http://avce00.maptools.org&lt;br /&gt;
&lt;br /&gt;
[script follows]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Shell script coding standards==&lt;br /&gt;
&lt;br /&gt;
Please have a look at our [http://grass.itc.it/grass63/source/SUBMITTING_SCRIPTS Shell script coding standards] before submitting here.&lt;br /&gt;
&lt;br /&gt;
==Miscellaneous Add-ons==&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/utm_which_zone.sh utm_which_zone.sh] is a shell script to determine UTM zone from Lat/Lon input. Requires [http://www.octave.org Octave] to be installed. A shell-only version is [http://dcalvelo.free.fr/grass/utm_which_zone_sh.sh available] which only requires awk.&amp;lt;BR&amp;gt;'''Authors''': Hamish Bowman (Octave part), Markus Neteler (shell script wrapper), Daniel Calvelo (sh+awk version)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Perl scripts for converting data forth and back between Excel files and PostgreSQL: [http://dcalvelo.free.fr/grass/pg2xls.pl pg2xls.pl] reads data from PostgreSQL and produces an excel workbook; [http://dcalvelo.free.fr/grass/xls2sql.pl xls2sql.pl] reads excel files and outputs SQL statements to be fed into an RDBMS. Both scripts need modules from [http://www.cpan.org CPAN], especially [http://search.cpan.org/dist/Spreadsheet-ParseExcel/  Spreadsheet::ParseExcel] for xls2sql.pl and [http://search.cpan.org/~tmtm/Spreadsheet-WriteExcel-FromDB Spreadsheet::WriteExcel::FromDB] and its dependencies for pg2sql.pl. Check the source headers for more info.&amp;lt;BR&amp;gt;'''Authors:''' Daniel Calvelo (xls2sql.pl), Markus Neteler (pg2xls.pl)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://dream.lrrl.arch.tu-muenchen.de/~wqual/perl/dbf2sql.tgz dbf2sql] is a Perl script for translating dbf-tables into a sql-command. dbf-tables are read using dbfdump-command from dbd-xbase-perl module ([http://search.cpan.org/~janpaz/DBD-XBase-0.241/ dbd::xbase] and [http://search.cpan.org/~jv/Getopt-Long-2.35/lib/Getopt/Long.pm getopt::long] have to be installed from CPAN first). There are problems, if the last column of the table contains characters. Suggestions for improvements welcome! &amp;lt;BR&amp;gt;'''Author:'''Wolfgang Qual&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.igc.usp.br/pessoais/guano/downloads/azimuth2.c azimuth2.c] is a small C program to calculate the azimuth and length of vector lines exported by GRASS-GIS as ASCII files (like this: v.out.ascii input=vector output=ascii format=standard). It is useful for create rose diagrams of lineament maps. Improvements on the original code after suggestions by Örs Téglásy, Hungary.&amp;lt;BR&amp;gt;'''Author:''' Carlos Henrique Grohmann&lt;br /&gt;
&lt;br /&gt;
==GRASS 5.x==&lt;br /&gt;
&lt;br /&gt;
===Vector add-ons for GRASS 5===&lt;br /&gt;
&lt;br /&gt;
* See here: http://grass.itc.it/download/addons.php&lt;br /&gt;
&lt;br /&gt;
===Raster add-ons for GRASS 5===&lt;br /&gt;
&lt;br /&gt;
* See here: http://grass.itc.it/download/addons.php&lt;br /&gt;
&lt;br /&gt;
* [http://www.valledemexico.ambitiouslemon.com/gwmodelling.html r.gmtg] The groundwater modelling tool for grass. A module to use MODFLOW within GRASS. &amp;lt;BR&amp;gt;'''Author''': Jaime Carrera&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GRASS 6.x==&lt;br /&gt;
&lt;br /&gt;
===Vector add-ons===&lt;br /&gt;
&lt;br /&gt;
* [http://geni.ath.cx/grass/v.out.gmt v.out.gmt] is a shell script that exports a polygon vector file into GMT xy file. psbasemap code was copied from Hamish's r.out.gmt. &amp;lt;BR&amp;gt;'''Author:''' Huidae Cho, Hamish Bowman, Dylan Beaudette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://geo4.uibk.ac.at/tilde/kindl/grass/v.strahler.tgz v.strahler] is a module that calculates the Strahler Order for all lines of a given dendritic network. &amp;lt;BR&amp;gt;'''Author:''' Florian Kindl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://svg.cc/grass/index.html v.out.svg] is a module that exports SVG notation along with optional attribute data directly from GRASS 6.x vector layers. &amp;lt;BR&amp;gt;'''Author:''' Klaus Förster&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://les-ejk.cz/programs/trees.html v.trees3d] is a module for making 3D trees from input vector point file. &amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.public.asu.edu/~cmbarton/files/grass_scripts/v.lda v.lda] is a shell script for calculating Ian Johnson's (U. Sidney) Local Density Analysis values to measure clustering of point data at different neighborhood radii. There is an option to create a simple line graph of the results. There have been reports of problems creating the line graph on Cygwin installations of GRASS.&amp;lt;BR&amp;gt;'''Author:''' Michael Barton &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.public.asu.edu/~cmbarton/files/grass_scripts/v.append v.append] is a shell script combining two vector files AND their associated attribute tables. The vector files should be of the same type and, for best results, should have identically formatted attribute tables.&amp;lt;BR&amp;gt;'''Author:''' Michael Barton &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.shockfamily.net/cedric/grass/v.group v.group] generates a new vector map with the same geometry as an existing map. The new map has categories and a table based on grouping by the values in certain columns of the existing map's table. The values in these columns are preserved in the table for the new map. It's like a v.reclass that preserves data.&amp;lt;BR&amp;gt;'''Author:''' Cedric Shock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/v.out.ascii.db v.out.ascii.db] is a shell script for exporting vector point data coordinates and selected attribute columns to either a file or to the console.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/v.rasterbounds v.rasterbounds] is a shell script for creating polygon-vector file of rasterfile boundaries. The best version of GRASS is 6.1+. If you are using GRASS &amp;lt; 6.1, you  have to be in the same mapset as your raster maps are from.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/v.3Dtin v.3Dtin] is a shell script for making 3D-vector of the 2D ouput from ''v.delauny''. &amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.clubwebcanada.ca/twiens/v.sample.buffer.tgz v.sample.buffer] is a shell script that samples rasters in buffers of a specified size around features in a specified vector file. Sampling results are added as attributes to the vector file. This script was designed for sampling vegetation indices and DEM derived attributes for bird point counts. Sampling results can be one or more basic statistics such as mean, range, max, etc.&amp;lt;BR&amp;gt;'''Author:''' Trevor Wiens&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.gfosservices.it/materiale_didattico/moduli/v.variogram.tar.gz v.variogram] is a script that create an omnidirectional experimental semi-variogram. This scripts require R-statistics software installed on your machine. Please see a [http://grass.itc.it/pipermail/statsgrass/2006-October/000455.html reply] on the STATGRASS list for changes need to the script to run on spgrass6 &amp;gt;= 0.3 and sp &amp;gt;= 0.9. &amp;lt;BR&amp;gt;'''Author:''' Ivan Marchesini, Pierluigi De Rosa.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.gfosservices.it/materiale_didattico/moduli/v.krige.tar.gz v.krige] is a script that  do a surface interpolation from vector point data by Kriging method.The interpolated value of a cell is determined by using an omnidirectional variogram model fitted starting from model parameter given by user desumed from the experimental semi variogram produced by v.variogram.&amp;lt;BR&amp;gt;'''Author:''' Ivan Marchesini, Pierluigi De Rosa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://ngeo.de/grassstuff/v.lmeasure v.lmeasure] and [http://ngeo.de/grassstuff/v.revlmeasure v.revlmeasure] are two perl scripts that place equidistant vector points along a given arbitrary vector line starting from the beginning or end of the vector line, respectively. Resulting  vector points are labeled with the distance from origin.&amp;lt;BR&amp;gt;'''Author:''' Mats Schuh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://david.p.finlayson.googlepages.com/v.swathwidth v.swathwidth] creates a vector map representing the sea bottom coverage of a multibeam (swath) sonar survey.&amp;lt;BR&amp;gt;'''Author:''' David Finlayson&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://kufaya.googlepages.com/v.flip.tar.gz v.flip] flips the direction of selected vector lines.&amp;lt;BR&amp;gt;'''Author:''' Maciej Sieczka&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://phygeo7.geo.uni-augsburg.de/gis2/scripts/v.digatt v.digatt] (shell script) Interactively assign numeric table attributes to series of vector objects. It is meant to be effective by avoiding to type in the attribute value for all single objects again and again. The user is prompted for typing in an attribute value which is assigned to all objects selected by mouseclick afterwards. Next the display is redrawn after updating the table column. Zooming allows to change the region before the old value can be reused or a new one can be typed in (or copied by mouse from another object) in order to assign it to the next series of objects etc. It is tested not very extensively yet. Therefore better work with a copy of your map and consider using v.digit or d.what.vect -e alternatively. [http://phygeo7.geo.uni-augsburg.de/gis2/scripts/v.digatt.png screenshot]. &amp;lt;BR&amp;gt;'''Author:''' Andreas Philipp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://k153-85.fsv.cvut.cz/cgi-bin/viewcvs.cgi/grass6/vector/v.in.gama/ v.in.gama] converts [http://www.gnu.org/software/gama/ GNU GaMa] XML output file to a GRASS vector map layer.&amp;lt;br /&amp;gt;'''Author:''' Martin Landa&lt;br /&gt;
&lt;br /&gt;
===Raster add-ons===&lt;br /&gt;
&lt;br /&gt;
* [http://www.igc.usp.br/pessoais/guano/downloads/r.roughness r.roughness] is a shell script to calculate the surface roughness of a DEM, using r.surf.area and v.surf.rst. (for GRASS versions 6.1 and above)&lt;br /&gt;
* [http://www.igc.usp.br/pessoais/guano/downloads/r.roughness60 r.roughness60] - for GRASS versions 6.0.X&amp;lt;BR&amp;gt;'''Author:''' Carlos Henrique Grohmann&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/grass/r.gauss.tgz r.gauss] is Gaussian and Laplacian of Gaussian filter for GRASS. It is written in C language.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/grass/r.mlv.tgz r.mlv] is Mean of least variance filter for GRASS. It is an edge-preserving (or even edge-enhacing) filter, which should serve for removing additive noise from images. It is written in C language.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/grass/r.bilateral.tgz r.bilateral] Bilateral filter is an edge-preserving filter, which combines domain and range filtering. It is written in C language.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/zc.pl Zero crossing] is a simple Perl script, finds the ,,zero crossings`` from the Laplacian of Gaussian filter (see above). It is really &amp;lt;em&amp;gt;very&amp;lt;/em&amp;gt; simple, the edges don't need to be really on that pixel, where they are detected, no interpolation is performed.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
     '''Usage:'''&lt;br /&gt;
     zc.pl -i input -o output |r.mapcalc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.fle.czu.cz/~jachym/programs/local_max.pl Local maxima] is a Perl script for &amp;lt;code&amp;gt;r.mapcalc&amp;lt;/code&amp;gt;. It detects local maxima of the image.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
     '''Usage:'''&lt;br /&gt;
     local_maxima.pl -i input -o output -s matrix_size|r.mapcalc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/r.out.gmt r.out.gmt] is a GRASS script for exporting a GRASS raster map into a [[http://www.soest.hawaii.edu/gmt/ GMT]] grid file. It also creates a GMT color table from the data and can generate some GMT commands for plotting a postscript file. (code is experimental, but functional)&amp;lt;BR&amp;gt;see  also http://169.237.35.250/~dylan/grass_user_group/#GMT_and_GRASS-overview&amp;lt;BR&amp;gt;'''Authors:''' Hamish Bowman, Dylan Beaudette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://geni.ath.cx/grass/r.out.gmt yet another r.out.gmt] is a modified version of Hamish's r.out.gmt.  Added options for title, xlabel, ylabel, comment, and map width.  Removed any settings that can be changed by gmtset for more flexibility.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman, Huidae Cho, Dylan Beaudette&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/r.pack r.pack] and [http://bambi.otago.ac.nz/hamish/grass/r.unpack r.unpack] are two GRASS scripts for transfering raster maps to another computer as a single file.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/dominant_dir.m dominant_dir.m] and [http://bambi.otago.ac.nz/hamish/grass/calc_terraflow_dir.m calc_terraflow_dir.m] are two Matlab scripts for determining the dominant flow direction from a r.terraflow MFD map and converting into a GRASS aspect map for use with d.rast.arrow, etc.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www-pool.math.tu-berlin.de/~soeren/grass/modules/ r.in.onearth] for download and import satellite images direct from the NASA onearth WMS server into GRASS.&amp;lt;BR&amp;gt;'''Author:''' Soeren Gebbert&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.shockfamily.net/cedric/grass/r.tileset r.tileset] generates a list of tiles and sizes in a source projection that cover the region in the current database with appropriate resolution. The size of individual tiles can be constrained. Only tiles intersecting the current region are returned. These tilings are appropriate for requesting data from another projection to meet the specifications of the current region. For example, it could be used to generate tile requests to a latitude / longitude WMS server like this &amp;lt;code&amp;gt;r.tileset -w sourceproj=&amp;quot;+init=epsg:4326&amp;quot;&amp;lt;/code&amp;gt;.&amp;lt;BR&amp;gt;'''Author:''' Cedric Shock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [ftp://gsca.nrcan.gc.ca/outgoing/Patton/Grass/r.csr.tar.gz r.csr] integrates several Grass programs to produce colored, shaded-relief rasters in one step. Accepts single or multiple elevation/bathymetry maps as input; optionally will fill data holidays with 3x3 median filter, multiple times, if required; can apply color maps from a) input raster, b) another raster in MAPSET, or c) from a rules file; otherwise, rainbow colorbar is applied. Output colored, shaded-relief rasters can optionally be exported to tiff format and archived using tar with gzip/bzip2 compression if appropriate flags are given. Shading parameters can be modified, though useful defaults are given. (Right-click and choose 'Save Link As')&amp;lt;BR&amp;gt;'''Author:''' Eric Patton&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [ftp://gsca.nrcan.gc.ca/outgoing/Patton/Grass/r.fragment.tar.gz r.fragment] fragments a raster into a user-defined set of smaller tiles according to an input number of rows and columns. Optionally, a null value threshold can be set to filter out candidate tiles that would have a large percentage of null cells. (Right-click and choose 'Save Link As')&amp;lt;BR&amp;gt;'''Author:''' Eric Patton&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://david.p.finlayson.googlepages.com/r.eucdist r.eucdist] creates a raster map estimating the euclidean distance from known cells.&amp;lt;BR&amp;gt;'''Author:''' David Finlayson&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://david.p.finlayson.googlepages.com/r.smoothpatch r.smoothpatch] creates a composite of two rasters using a distance-weighted average across the transition to smooth the edges.&amp;lt;BR&amp;gt;'''Author:''' David Finlayson&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.faunalia.it/download/r_li/ r.li] is meant to be a more flexible and faster replacement of the old r.le. Currently under development (help welcome).&amp;lt;BR&amp;gt;&lt;br /&gt;
[http://www.faunalia.com/mediawiki/index.php/R_li Wiki page]&amp;lt;BR&amp;gt;&lt;br /&gt;
[http://www.faunalia.com/cgi-bin/mailman/listinfo/r.li Mailing list]&amp;lt;BR&amp;gt;&lt;br /&gt;
'''Authors:''' Claudio Porta, Davide Spano, Serena Pallecchi, [http://www.faunalia.it Faunalia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://kufaya.googlepages.com/r.surf.nnbathy.tar.gz r.surf.nnbathy] interpolates surface from raster input using [http://www.marine.csiro.au/~sakov/ nn] natural neighbor intepolation library.&amp;lt;BR&amp;gt;'''Author:''' Maciej Sieczka&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://www.star.ait.ac.th/~yann/r.uslek.tar.gz r.uslek] creates USLE K factor (soil erodibility) from sand,clay,silt fractions and organic matter fraction. Based on USDA 1951 (p209) quoted in FAO World Soil CD, and from some generic [soil class+OM] to K conversion table.Update: Fixed input file swap and silty-clay class recognition.&amp;lt;BR&amp;gt;'''Author:''' Yann Chemin&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===General add-ons===&lt;br /&gt;
&lt;br /&gt;
* [http://www.gdf-hannover.de/dassau/g.laptop/g.laptop.sh g.laptop.sh] is an interactive shell script to extract raster and vector data from current Location into a new one. Data can be copied or extracted in current or original resolution and region extend. This script was written to extract smaller parts of a GRASS location to be able to present them on a laptop without the necessity to transfer huge data. Maps do not have to be in the same mapset.&amp;lt;BR&amp;gt;'''Author:''' Otto Dassau &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''''Readline completion''''' for GRASS commands under the bash shell: [http://www.sorokine.info/grass-complete/ grass-complete] won't clutter the environment but needs to be installed; [http://dcalvelo.free.fr/grass/grass_rlcompleter.sh grass_rlcompleter.sh] needs almost no installation but will pollute the environment. Grass-Complete currently requires Bash version 2.05 for proper install.&amp;lt;BR&amp;gt;'''Author:''' Alexandre Sorokine (grass-complete), Daniel Calvelo (grass_rlcompleter.sh)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Imagery add-ons ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.star.ait.ac.th/~yann/6s/i.atcorr.1.3.1b.tar.gz i.atcorr] Atmospheric Correction using Christo Zietsman's implementation of 6s code in C/C++. The Old Page was rescued by Christo recently and copied [http://www.star.ait.ac.th/~yann/6s/ here]. Compiled in CVS but not tested. Update: The source code is somehow functional in GRASS CVS, it is processing and creates output map, but does not accept non-default input. Not Tested/Validated! &amp;lt;BR&amp;gt;'''Author:''' Christo Zietsman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/gdal/i.warp61 i.warp61] is a shell script that will use gdalwarp to rectify a raw input image using thin plate splines. The map should be imported into GRASS with r.in.gdal and GCPs set with i.points. Input is the raw image (GeoTIFF, JPEG, etc). Output is a GeoTIFF in the imagery group's target location's map projection. Requires a recent (early 2006) version of GRASS 6.1, or newer.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Display add-ons ===&lt;br /&gt;
&lt;br /&gt;
* [http://www.ornl.gov/sci/gist/software/grass/ pd-GRASS]: Parallel Display for GRASS GIS&amp;lt;BR&amp;gt;'''Author:''' Alex Sorokine&lt;br /&gt;
&lt;br /&gt;
==== [[IconSymbols]] ====&lt;br /&gt;
* [[IconSymbols|Symbols]] which can be used with ''d.vect, d.graph'', and ''ps.map''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/d.frame.quarter d.frame.quarter] is a shell script that will split the display into four quadrants using ''d.frame''. Individual frames are named ''uno, dos, tres, cuatro'', and ''full_screen''.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [ftp://gsca.nrcan.gc.ca/outgoing/Patton/Grass/d.hyperlink.tar.gz d.hyperlink] is an interactive shell script that allows the viewing of hyperlinked images from a vector's attribute table in an external image viewer. Queries can be made via SQL statements or interactive mouse-clicking. The attribute table must be pre-populated with a column containing the image to link the vector to; the user also specifies the image folder in the current MAPSET where the images are located. The script currently supports gimp, Eye of Gnome, gthumb, gpdf, and Inkscape image viewers. (Right-click and choose 'Save Link As')&amp;lt;BR&amp;gt;'''Author: '''Eric Patton&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/d.stations d.stations] is a shell script that quickly displays vector points (or sites for GRASS 5.4 and below).&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [http://bambi.otago.ac.nz/hamish/grass/d.varea d.varea] is a shell script that quickly displays vector areas.&amp;lt;BR&amp;gt;'''Author:''' Hamish Bowman&lt;br /&gt;
&lt;br /&gt;
===Postscript add-ons===&lt;br /&gt;
&lt;br /&gt;
* [http://les-ejk.cz/programs/grass/ps.atlas ps.atlas] is a shell script that makes more maps on current region according to input *.psmap file. General map can be stored as vector file. The resulting *.eps maps can be automatically converted to *.pdf files.&amp;lt;BR&amp;gt;'''Author:''' Jachym Cepicky&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[ps.map scripts|ps.map samples/templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== [[AreaFillPatterns]] ====&lt;br /&gt;
* Hatches for ps.map's vareas&lt;br /&gt;
&lt;br /&gt;
===GRASS and UMN Mapserver===&lt;br /&gt;
&lt;br /&gt;
* [http://www.mail-archive.com/mapserver-users@lists.umn.edu/msg00086.html See interesting posting]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Community]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>⚠️Rsb</name></author>
	</entry>
</feed>