g.version.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <h2>DESCRIPTION</h2>
  2. <em>g.version</em> prints to standard output the GRASS version number,
  3. date, the GRASS GIS copyright (<b>-c</b> flag), and GRASS build information
  4. (<b>-b</b> flag).
  5. <h2>NOTES</h2>
  6. This program requires no command line arguments; the user simply types
  7. <em>g.version</em> on the command line to see the version number and
  8. date of the GRASS GIS software currently being run by the user.
  9. <p>
  10. Information about GRASS GIS
  11. core <a href="https://grass.osgeo.org/programming8/gislib.html">GIS
  12. Library</a> can be printed by <b>-r</b> flag.
  13. <p>
  14. Version numbers of additional libraries
  15. like <a href="https://proj.org/">PROJ</a>, <a href="http://gdal.org/">GDAL/OGR</a>
  16. or <a href="http://trac.osgeo.org/geos">GEOS</a> are printed
  17. by <b>-e</b> flag.
  18. <p>
  19. See also function <tt>version()</tt>
  20. from <a href="https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library">Python
  21. Scripting Library</a>.
  22. <div class="code"><pre>
  23. import grass.script as gcore
  24. print gcore.version()
  25. </pre></div>
  26. <h2>EXAMPLES</h2>
  27. <h3>Basic info</h3>
  28. <div class="code"><pre>
  29. g.version
  30. GRASS 8.0.0alpha (2021)
  31. </pre></div>
  32. <h3>GIS Library info</h3>
  33. <div class="code"><pre>
  34. g.version -r
  35. GRASS 8.0.0alpha (2021)
  36. libgis revision: 1e0c11f52
  37. libgis date: 2021-05-19T09:38:49+00:00
  38. </pre></div>
  39. <h3>Full info in shell script style</h3>
  40. <div class="code"><pre>
  41. g.version -rge
  42. version=8.0.0alpha
  43. date=2021
  44. revision=d57f40906
  45. build_date=2021-05-23
  46. build_platform=x86_64-pc-linux-gnu
  47. build_off_t_size=8
  48. libgis_revision=1e0c11f52
  49. libgis_date=2021-05-19T09:38:49+00:00
  50. proj=6.3.2
  51. gdal=3.1.4
  52. geos=3.8.1
  53. sqlite=3.34.1
  54. </pre></div>
  55. Note: if <tt>revision=exported</tt> is reported instead of the git hash then the
  56. <tt>git</tt> program was not available during compilation of GRASS GIS and the
  57. source code did not contain the <tt>.git/</tt> subdirectory (requires e.g. to
  58. <tt>git clone</tt> the GRASS GIS <a href="https://github.com/OSGeo/grass/">software repository</a>.)
  59. <h2>Citing GRASS GIS</h2>
  60. The GRASS Development Team has invested significant time and effort
  61. in creating GRASS GIS, please cite it when using it for data analysis.
  62. The GRASS GIS <a href="https://grass.osgeo.org/download/software/">Web site</a>
  63. offers citations in different styles.
  64. <!-- TODO: g.version should offer this right away -->
  65. <h2>AUTHORS</h2>
  66. Michael Shapiro,
  67. U.S. Army Construction Engineering
  68. Research Laboratory<br>
  69. Extended info by Martin Landa, Czech Technical University in Prague, Czech Republic