variables.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. <!-- meta page description: GRASS variables and environment variables -->
  2. There are two types of variables:
  3. <ul>
  4. <li><a href="#setting-shell-environment-variables">shell
  5. environment</a> variables,</li>
  6. <li><a href="#setting-grass-gisenv-variables">GRASS gisenv</a>
  7. variables.</li>
  8. </ul>
  9. There are a number of <i>shell</i> environment variable groups:
  10. <ul>
  11. <li><a href="#list-of-selected-grass-environment-variables-for-rendering">variables
  12. for rendering</a></li>
  13. <li><a href="#list-of-selected-internal-grass-environment-variables">variables
  14. for internal use</a></li>
  15. </ul>
  16. <i>Note:</i> Any setting which needs to be modifiable by a GRASS module
  17. (e.g. MONITOR by <em><a href="d.mon.html">d.mon</a></em>) has to be a GRASS
  18. gisenv variable.
  19. <h2>Setting shell environment variables</h2>
  20. Setting shell environment variables depends on the shell being used:
  21. <br><br>
  22. Bash:
  23. <div class="code"><pre>
  24. export VARIABLE=value
  25. </pre></div>
  26. Csh:
  27. <div class="code"><pre>
  28. setenv VARIABLE value
  29. </pre></div>
  30. Cmd.exe (Windows):
  31. <div class="code"><pre>
  32. set VARIABLE=value
  33. </pre></div>
  34. To set up shell environment variables permanently:
  35. <ul>
  36. <li>
  37. To get personal BASH shell definitions (aliases, color listing option, ...)
  38. into GRASS, store them in:<br>
  39. <tt>$HOME/.grass.bashrc</tt></li>
  40. <li>
  41. To get personal CSH shell definitions (aliases, color listing option, ...)
  42. into GRASS, store them in:<br>
  43. <tt>$HOME/.grass.cshrc</tt></li>
  44. </ul>
  45. <h2>Setting GRASS gisenv variables</h2>
  46. Use <em><a href="g.gisenv.html">g.gisenv</a></em> within GRASS. This permanently
  47. predefines GRASS variables in the <tt>.grass7/rc</tt> file.
  48. <br><br>
  49. Usage:
  50. <div class="code"><pre>
  51. g.gisenv set="VARIABLE=VALUE"
  52. </pre></div>
  53. It looks unusual with two equals signs, but <em>g.gisenv</em> serves dual duty for
  54. getting and setting GRASS variables.
  55. <p>If the user just specifies a variable name, it defaults to <b>get</b> mode.
  56. For example:
  57. <div class="code"><pre>
  58. g.gisenv MAPSET
  59. PERMANENT
  60. </pre></div>
  61. <h2>List of selected (GRASS related) shell environment variables</h2>
  62. <blockquote>
  63. [ To be set from the terminal shell or startup scripts ]
  64. </blockquote>
  65. <dl>
  66. <dt>GISBASE</dt>
  67. <dd>directory where GRASS lives. This is set automatically by the
  68. startup script.</dd>
  69. <dt>GISRC</dt>
  70. <dd>name of <tt>.grass7/rc</tt> file. Defines the system wide value
  71. while in a GRASS session.</dd>
  72. <dt>GRASS_ADDON_PATH</dt>
  73. <dd>[grass startup script, g.extension]<br>
  74. specifies additional path(s) containing local and/or custom GRASS
  75. modules extra to the standard distribution.</dd>
  76. <dt>GRASS_ADDON_BASE</dt>
  77. <dd>[grass startup script]<br> allows specifying additional GISBASE
  78. for local GRASS modules (normally installed as GRASS Addons
  79. by <tt>g.extension</tt> module) extra to standard
  80. distribution. The default on GNU/Linux
  81. is <tt>$HOME/.grass7/addons</tt>, on MS
  82. Windows <tt>$APPDATA\GRASS7\addons</tt>.</dd>
  83. <dt>GRASS_ADDON_ETC</dt>
  84. <dd>[libgis, g.findetc]<br>
  85. specify paths where support files (etc/) may be found external to
  86. standard distribution.</dd>
  87. <dt>GRASS_BATCH_JOB</dt>
  88. <dd>defines the name (path) of a shell script to be processed as
  89. batch job.</dd>
  90. <dt>GRASS_DB_ENCODING</dt>
  91. <dd>[various modules, wxGUI]<br>
  92. encoding for vector attribute data (utf-8, ascii, iso8859-1, koi8-r)</dd>
  93. <dt>GIS_ERROR_LOG</dt>
  94. <dd>If set, GIS_ERROR_LOG should be the absolute path to the log
  95. file (a relative path will be interpreted relative to the process'
  96. cwd, not the cwd at the point the user set the variable). If not
  97. set, <tt>$HOME/GIS_ERROR_LOG</tt> is used instead. The file will
  98. only be used if it already exists.</dd>
  99. <dt>GRASS_ERROR_MAIL</dt>
  100. <dd>set to any value to send user mail on an error or warning that
  101. happens while stderr is being redirected.</dd>
  102. <dt>GRASS_FONT</dt>
  103. <dd>[display drivers]<br>
  104. specifies the font as either the name of a font from
  105. <tt>$GISBASE/etc/fontcap</tt> (or alternative fontcap file
  106. specified by GRASS_FONT_CAP), or alternatively the full path to a
  107. FreeType font file.</dd>
  108. <dt>GRASS_ENCODING</dt>
  109. <dd>[display drivers]<br>
  110. the encoding to be assumed for text which is drawn using a
  111. freetype font; may be any encoding know to <em>iconv</em>.</dd>
  112. <dt>GRASS_FONT_CAP</dt>
  113. <dd>[g.mkfontcap, d.font, display drivers]<br>
  114. specifies an alternative location (to <tt>$GISBASE/etc/fontcap</tt>) for
  115. the font configuration file.</dd>
  116. <dt>GRASS_FULL_OPTION_NAMES</dt>
  117. <dd>[parser]<br>
  118. Generates a warning if GRASS_FULL_OPTION_NAMES is set (to anything) and
  119. a found string is not an exact match for the given string.</dd>
  120. <dt>GRASS_GUI</dt>
  121. <dd>either <tt>text</tt> (text user interface), <tt>gtext</tt> (text
  122. user interface with GUI welcome screen), or <tt>gui</tt> (graphical
  123. user interface) to define non-/graphical startup. Can also specify
  124. the name of the GUI to use, e.g. <tt>wxpython</tt>
  125. (<em><a href="wxGUI.html">wxGUI</a></em>). Also exists as a GRASS
  126. gisenv variable (see below). If this shell variable exists at GRASS
  127. startup, it will determine the GUI used. If it is not defined
  128. startup will default to the last GUI used.</dd>
  129. <dt>GRASS_HTML_BROWSER</dt>
  130. <dd>[init.sh, wxgui]<br> defines name of HTML browser. For most
  131. platforms this should be an executable in your PATH, or the full
  132. path to an executable.<br> Mac OS X runs applications differently
  133. from the CLI. Therefore, GRASS_HTML_BROWSER should be the
  134. application's signature, which is a domain-like name, just
  135. reversed, i.e. com.apple.Safari. To find an application's
  136. signature, type the following in a Terminal (fill in the path to
  137. the application you are interested in, for example:
  138. /Applications/Safari.app):<br> &nbsp; &nbsp; <code>grep -A 1
  139. &quot;CFBundleIdentifier&quot;</code> <i>/path/to/application.app</i><code>/Contents/Info.plist</code><br>
  140. &nbsp; The signature is the &lt;string&gt; following the
  141. &lt;key&gt;, without the bracketing &lt;string&gt; tags.</dd>
  142. <dt>GRASS_INT_ZLIB</dt>
  143. <dd>[libraster]<br> if the environment variable GRASS_INT_ZLIB exists and has the value 0,
  144. new compressed <i>integer</i> (CELL type) raster maps will be compressed
  145. using RLE compression.
  146. <br><br>
  147. If the variable doesn't exist, or the value is non-zero, zlib compression
  148. will be used instead. Such rasters will have a <tt>compressed</tt>
  149. value of 2 in the cellhd file.
  150. <br><br>
  151. Obviously, decompression is controlled by the
  152. raster's <tt>compressed</tt> value, not the environment variable.</dd>
  153. <dt>GRASS_ZLIB_LEVEL</dt>
  154. <dd>[libgis]<br> if the environment variable GRASS_ZLIB_LEVEL exists and its value can
  155. be parsed as an integer, it determines the compression level used when new compressed
  156. raster maps are compressed using zlib compression. This applies to all
  157. raster map types (CELL, FCELL, DCELL).
  158. <br><br>
  159. If the variable doesn't exist, or the value cannot be parsed as an
  160. integer, zlib's default compression level will be used.</dd>
  161. <dt>GRASS_MESSAGE_FORMAT</dt>
  162. <dd>[various modules, wxGUI]<br>
  163. it may be set to either
  164. <ul>
  165. <li><tt>standard</tt> - sets percentage output and message
  166. formatting style to standard formatting,</li>
  167. <li><tt>gui</tt> - sets percentage output and message formatting
  168. style to GUI formatting,</li>
  169. <li><tt>silent</tt> - disables percentage output and error
  170. messages,</li>
  171. <li><tt>plain</tt> - sets percentage output and message
  172. formatting style to ASCII output without rewinding control
  173. characters.</li>
  174. </ul></dd>
  175. <dt>GRASS_MOUSE_BUTTON</dt>
  176. <dd>[various modules]<br> swaps mouse buttons for two-button or
  177. left-handed mice. Its value has three digits 1, 2, and 3, which
  178. represent default left, middle, and right buttons
  179. respectively. Setting to <tt>132</tt> will swap middle and right
  180. buttons. Note that this variable should be set before a display
  181. driver is initialized (e.g.,
  182. <tt>d.mon x0</tt>).</dd>
  183. <dt>GRASS_PAGER</dt>
  184. <dd>[various modules]<br>
  185. it may be set to either <tt>less</tt>, <tt>more</tt>, or <tt>cat</tt>.</dd>
  186. <dt>GRASS_PERL</dt>
  187. <dd>[used during install process for generating man pages]<br>
  188. set Perl with path.</dd>
  189. <dt>GRASS_SKIP_MAPSET_OWNER_CHECK</dt>
  190. <dd>By default it is not possible to work with MAPSETs that are
  191. not owned by current user. Setting this variable to any non-empty value
  192. allows the check to be skipped.</dd>
  193. <dt>GRASS_SH</dt>
  194. <dd>[shell scripts on Windows]<br>
  195. path to bourne shell interpreter used to run shell scripts.</dd>
  196. <dt>GRASS_SIGSEGV_ON_ERROR</dt>
  197. <dd>Raise SIGSEGV if an error occures]<br>
  198. This variable can be set for debugging purpose. The call
  199. of G_fatal_error() will end in a segmentation violation. GDB can be used
  200. to trace the source of the error.</dd>
  201. <dt>GRASS_PYTHON</dt>
  202. <dd>[wxGUI, Python Ctypes]<br>
  203. set to override Python executable.<br>
  204. On Mac OS X this should be the <tt>pythonw</tt> executable for the
  205. wxGUI to work.</dd>
  206. <dt>GRASS_VECTOR_LOWMEM</dt>
  207. <dd>[vectorlib]<br>
  208. If the environment variable GRASS_VECTOR_LOWMEM exists, memory
  209. consumption will be reduced when building vector topology
  210. support structures. Recommended for creating large vectors.</dd>
  211. <dt>GRASS_VECTOR_OGR</dt>
  212. <dd>[vectorlib, v.external.out]<br> If the environment variable
  213. GRASS_VECTOR_OGR exists and vector output format defined
  214. by <em><a href="v.external.out.html">v.external.out</a></em> is
  215. PostgreSQL, vector data is written by OGR data provider even
  216. the native PostGIS data provider is available.</dd>
  217. <dt>GRASS_VECTOR_EXTERNAL_IMMEDIATE</dt>
  218. <dd>[vectorlib, v.external.out]<br> If the environment variable
  219. GRASS_VECTOR_EXTERNAL_IMMEDIATE exists and vector output format
  220. defined
  221. by <em><a href="v.external.out.html">v.external.out</a></em> is
  222. non-native, vector features are written to output external
  223. datasource immediately. By default, the vector library writes
  224. output data to a temporary vector map in native format and when
  225. closing the map, the features are transferred to output external
  226. datasource. Note: if output vector format is topological PostGIS
  227. format, then the vector library writes features immediately to output
  228. database (in this case GRASS_VECTOR_EXTERNAL_IMMEDIATE is ignored).</dd>
  229. <dt>GRASS_VECTOR_EXTERNAL_IGNORE</dt>
  230. <dd>[vectorlib]<br> If the environment variable
  231. GRASS_VECTOR_EXTERNAL_IGNORE exists, output vector format defined
  232. by <em><a href="v.external.out.html">v.external.out</a></em> is
  233. ignored. The format is always native.</dd>
  234. <dt>GRASS_VECTOR_TEMPORARY</dt>
  235. <dd>[vectorlib]<br> If the environment variable
  236. GRASS_VECTOR_TEMPORARY exists, GRASS vector library will operate
  237. on temporary vector maps. New vector maps will be created in
  238. temporary directory (see GRASS_TMPDIR_MAPSET variable), existing
  239. vector maps will be read (if found) also from this directory. It
  240. may be set to either:
  241. <ul>
  242. <li><tt>keep</tt> - the temporary vector map is not deleted when
  243. closing the map.
  244. <li><tt>move</tt> - the temporary vector map is moved to the
  245. current mapset when closing the map.</li>
  246. <li><tt>delete</tt> - the temporary vector map is deleted when
  247. closing the map.
  248. </li>
  249. </ul>
  250. Default value is <tt>keep</tt>.
  251. Note that temporary vector maps are not visible to the user
  252. via <em><a href="g.list.html">g.list</a></em>
  253. or <em><a href="wxGUI.html">wxGUI</a></em>. They are used
  254. internally by the GRASS modules and deleted automatically when
  255. GRASS session is quited.</dd>
  256. <dt>GRASS_VECTOR_TOPO_DEBUG</dt>
  257. <dd>[vectorlib, v.generalize]<br> If the environment variable
  258. GRASS_VECTOR_TOPO_DEBUG
  259. exists, <em><a href="v.generalize.html">v.generalize</a></em> runs
  260. in extremely slow debug mode.</dd>
  261. <dt>GRASS_WXBUNDLED</dt>
  262. <dd>[wxGUI]<br>
  263. set to tell wxGUI that a bundled wxPython will be used.<br>
  264. When set, the wxGUI will not check the wxPython version, as this
  265. function is incompatible with a bundled wxPython. It is up to the
  266. packager to make sure that a compatible wxPython version is bundled.</dd>
  267. <dt>GRASS_WXVERSION</dt>
  268. <dd>[wxGUI]<br>
  269. set to tell wxGUI which version of wxPython to use.<br>
  270. When set, the wxGUI will select the given wxPython version. It's
  271. useful when multiple versions of wxPython are installed and the
  272. user wants to run wxGUI with non-default wxPython version.</dd>
  273. <dt>GRASS_XTERM</dt>
  274. <dd>[lib/init/grass-xterm-wrapper, lib/init/grass-xterm-mac]<br>
  275. set to any value (e.g. rxvt, aterm, gnome-terminal, konsole) to
  276. substitute 'x-terminal-emulator' or 'xterm'. The Mac OS X app
  277. startup defaults to an internal '$GISBASE/etc/grass-xterm-mac',
  278. which emulates the necessary xterm functionality in
  279. Terminal.app.</dd>
  280. <dt>GRASS_UI_TERM</dt>
  281. <dd>set to any value to use the terminal based parser.</dd>
  282. <dt>GRASS_VERSION</dt>
  283. <dd>reports the current version number (used by R-stats interface etc);
  284. should not be changed by user.</dd>
  285. <dt>GRASS_NO_GLX_PBUFFERS</dt>
  286. <dd>[nviz]<br>
  287. set to any value to disable the use of GLX Pbuffers.</dd>
  288. <dt>GRASS_NO_GLX_PIXMAPS</dt>
  289. <dd>[nviz]<br>
  290. Set to any value to disable the use of GLX Pixmaps.</dd>
  291. <dt>OMP_NUM_THREADS</dt>
  292. <dd>[OpenMP]<br>
  293. If OpenMP support is enabled this limits the number of threads.
  294. The default is set to the number of CPUs on the system.
  295. Setting to '1' effectively disables parallel processing.</dd>
  296. <dt>GRASS_TMPDIR_MAPSET</dt>
  297. <dd> By default GRASS temporary directory is located in
  298. <tt>$LOCATION/$MAPSET/.tmp/$HOSTNAME</tt>. If GRASS_TMPDIR_MAPSET is
  299. set to '0', the temporary directory is located in TMPDIR
  300. (environmental variable defined by the user or GRASS initialization
  301. script if not given).</dd>
  302. <dt>TMPDIR, TEMP, TMP</dt>
  303. <dd>[Various GRASS GIS commands and wxGUI]<br>
  304. <!-- what about Windows %TEMP% and http://trac.osgeo.org/grass/ticket/560#comment:21 ? -->
  305. The default wxGUI temporary directory is chosen from a
  306. platform-dependent list, but the user can control the selection of
  307. this directory by setting one of the TMPDIR, TEMP or TMP
  308. environment variables Hence the wxGUI uses $TMPDIR if it is set,
  309. then $TEMP, otherwise /tmp.</dd>
  310. </dl>
  311. <h3>List of selected GRASS environment variables for rendering</h3>
  312. <blockquote>
  313. [ In addition to those which are understood by
  314. specific <em><a href="displaydrivers.html">GRASS display
  315. drivers</a></em>, the following variables affect rendering. ]
  316. </blockquote>
  317. <dl>
  318. <dt>GRASS_RENDER_IMMEDIATE</dt>
  319. <dd>tells the display library which driver to use; possible
  320. values: <em><a href="cairodriver.html">cairo</a></em>, <em><a href="pngdriver.html">png</a></em>, <em><a href="psdriver.html">ps</a></em>,
  321. <em><a href="htmldriver.html">html</a></em>
  322. or <em>default</em><br>Default display driver
  323. is <em><a href="cairodriver.html">cairo</a></em> (if available)
  324. otherwise <em><a href="pngdriver.html">png</a></em>.
  325. </dd>
  326. <dt>GRASS_RENDER_WIDTH</dt>
  327. <dd>defines the width of output image (default is 640).</dd>
  328. <dt>GRASS_RENDER_HEIGHT</dt>
  329. <dd>defines the height of output image (default is 480).</dd>
  330. <dt>GRASS_RENDER_FILE</dt>
  331. <dd>the name of the resulting image file.</dd>
  332. <dt>GRASS_RENDER_FRAME</dt>
  333. <dd>contains 4 coordinates, <em>top,bottom,left,right</em> (pixel
  334. values) with respect to the top left corner of the output image,
  335. defining the initial frame.</dd>
  336. <dt>GRASS_RENDER_LINE_WIDTH</dt>
  337. <dd>defines default line width.</dd>
  338. <dt>GRASS_RENDER_TEXT_SIZE</dt>
  339. <dd>defines default text size.</dd>
  340. <dt>GRASS_RENDER_COMMAND</dt>
  341. <dd>external command called by display library to render data (see
  342. example in <em><a href="displaydrivers.html">display
  343. drivers</a></em> page for details).<br>Currently only Python scripts
  344. are supported.</dd>
  345. </dl>
  346. For specific driver-related variables see:
  347. <ul>
  348. <li><em><a href="cairodriver.html">Cairo display driver</a></em></li>
  349. <li><em><a href="pngdriver.html">PNG display driver</a></em></li>
  350. <li><em><a href="psdriver.html">PS (Postscript) display driver</a></em></li>
  351. <li><em><a href="htmldriver.html">HTML display driver</a></em></li>
  352. </ul>
  353. <h3>List of selected internal GRASS environment variables</h3>
  354. <blockquote>
  355. [ These variables are intended <b>for internal use only</b> by the GRASS
  356. software to facilitate communication between the GIS engine, GRASS scripts,
  357. and the GUI.
  358. The user should not set these in a GRASS session. They are meant to be set
  359. locally for specific commands. ]
  360. </blockquote>
  361. <dl>
  362. <dt>GRASS_OVERWRITE</dt>
  363. <dd>[all modules]<br>
  364. toggles map overwrite.
  365. <ul>
  366. <li>0 - maps are protected (default),</li>
  367. <li>1 - maps with identical names will be overwritten.</li>
  368. </ul>
  369. This variable is automatically created
  370. by <em><a href="g.parser.html">g.parser</a></em> so that the
  371. <tt>--overwrite</tt> option will
  372. be inherited by dependent modules as the script runs. Setting either the
  373. GRASS_OVERWRITE environment variable or the OVERWRITE gisenv variable detailed
  374. below will cause maps with identical names to be overwritten.</dd>
  375. <dt>GRASS_VERBOSE</dt>
  376. <dd>[all modules]<br>
  377. toggles verbosity level
  378. <ul>
  379. <li>-1 - complete silence (also errors and warnings are discarded)</li>
  380. <li>0 - only errors and warnings are printed</li>
  381. <li>1 - progress and important messages are printed (percent complete)</li>
  382. <li>2 - all module messages are printed</li>
  383. <li>3 - additional verbose messages are printed</li>
  384. </ul>
  385. This variable is automatically created by <em><a href="g.parser.html">g.parser</a></em>
  386. so that the <tt>--verbose</tt> or <tt>--quiet</tt> flags will be inherited
  387. by dependent modules as the script runs.</dd>
  388. <dt>GRASS_REGION</dt>
  389. <dd>[libgis]<br>
  390. override region settings, separate parameters with a ";". Format
  391. is the same as in the WIND region settings file. Otherwise use is the same as
  392. WIND_OVERRIDE.</dd>
  393. <dt>WIND_OVERRIDE</dt>
  394. <dd>[libgis]<br>
  395. it causes programs to use the specified named region (created with
  396. e.g. <tt>g.region save=...</tt>) to be used as the current region, instead of
  397. the region from the WIND file.<br><br>
  398. This allows programs such as the GUI to run external commands on an
  399. alternate region without having to modify the WIND file then change it
  400. back afterwards.</dd>
  401. </dl>
  402. <h2>List of selected GRASS gisenv variables</h2>
  403. <blockquote>
  404. [ Use <em><a href="g.gisenv.html">g.gisenv</a></em> to get/set/unset/change them ]
  405. </blockquote>
  406. <dl>
  407. <dt>DEBUG</dt>
  408. <dd>[entire GRASS]<br>
  409. sets level of debug message output (0: no debug messages)
  410. <div class="code"><pre>
  411. g.gisenv set=DEBUG=0
  412. </pre></div>
  413. <dt>WX_DEBUG</dt>
  414. <dd>[wxGUI]<br>
  415. sets level of debug message output for <em><a href="wxGUI.html">wxGUI</a></em> (0: no debug messages, 1-5 debug levels)
  416. <dt>GISDBASE</dt>
  417. <dd>initial database</dd>
  418. <dt>GIS_LOCK</dt>
  419. <dd>lock ID to prevent parallel GRASS use,
  420. <br>process id of the start-up shell script</dd>
  421. <dt>GUI</dt>
  422. <dd>See <tt>GRASS_GUI</tt> environmental variable for details.</dd>
  423. <dt>LOCATION</dt>
  424. <dd>full path to location directory</dd>
  425. <dt>LOCATION_NAME</dt>
  426. <dd>initial location name</dd>
  427. <dt>MAPSET</dt>
  428. <dd>initial mapset</dd>
  429. <dt>OVERWRITE</dt>
  430. <dd>[all modules]<br>
  431. toggles map overwrite.
  432. <ul>
  433. <li>0 - maps are protected (default),</li>
  434. <li>1 - maps with identical names will be overwritten.</li>
  435. </ul>
  436. This variable is automatically created
  437. by <em><a href="g.parser.html">g.parser</a></em> so that the
  438. <tt>--overwrite</tt> option will
  439. be inherited by dependent modules as the script runs. Setting either the
  440. GRASS_OVERWRITE environment variable or the OVERWRITE gisenv variable detailed
  441. below will cause maps with identical names to be overwritten.</dd>
  442. </dl>
  443. <h2>GRASS-related Files</h2>
  444. <dl>
  445. <dt><tt>$HOME/.grass7/rc</tt></dt>
  446. <dd>stores the GRASS gisenv variables (not shell environment variables)</dd>
  447. <dt><tt>$HOME/.grass7/bashrc</tt></dt>
  448. <dd>stores the shell environment variables (Bash only)</dd>
  449. <dt><tt>$HOME/.grass7/env.bat</tt></dt>
  450. <dd>stores the shell environment variables (MS Windows only)</dd>
  451. <dt><tt>$HOME/.grass7/login</tt></dt>
  452. <dd>stores the DBMI passwords in this hidden file.
  453. Only the file owner can access this file.</dd>
  454. <dt><tt>$HOME/GIS_ERROR_LOG</tt></dt>
  455. <dd>if this file exists then all GRASS error and warning messages are
  456. logged here. Applies to current user. To generate the file, use:
  457. <tt>touch $HOME/GIS_ERROR_LOG</tt><br>
  458. See also GIS_ERROR_LOG variable.</dd>
  459. </dl>
  460. Note: On MS Windows the files are stored in <tt>%APPDATA%</tt>.
  461. <h2>SEE ALSO</h2>
  462. <em>
  463. <a href="g.gisenv.html">g.gisenv</a>,
  464. <a href="g.parser.html">g.parser</a>
  465. </em>
  466. <p>
  467. <i>Last changed: $Date$</i>