DESCRIPTION

g.version prints to standard output the GRASS version number, date, the GRASS GIS copyright (-c flag), and GRASS build information (-b flag).

NOTES

This program requires no command line arguments; the user simply types g.version on the command line to see the version number and date of the GRASS GIS software currently being run by the user.

Information about GRASS GIS core GIS Library can be printed by -r flag.

Version numbers of additional libraries like PROJ.4, GDAL/OGR or GEOS are printed by -e flag.

See also function version() from Python Scripting Library.

import grass.script as gcore

print gcore.version()

EXAMPLES

Basic info

g.version 

GRASS 7.0.0svn (2014)

GIS Library info

g.version -r

GRASS 7.0.0svn (2014)
libgis Revision: 63222 
libgis Date: 2014-11-28 10:04:17 +0100 (Fri, 28 Nov 2014) 

Full info in shell script style

g.version -rge

version=7.0.0svn
date=2014
revision=63285M
build_date=2014-12-03
build_platform=x86_64-unknown-linux-gnu
libgis_revision=63222 
libgis_date="2014-11-28 10:04:17 +0100 (Fri, 28 Nov 2014) "
proj4=4.8.0
gdal=1.10.1
geos=3.4.2
sqlite=3.8.7

AUTHORS

Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
Extended info by Martin Landa, Czech Technical University in Prague, Czech Republic

Last changed: $Date: 2014-12-09 18:31:29 +0100 (Tue, 09 Dec 2014) $