[GRASS-dev] set null compression permanently

Hi,

I just tried to enable compression of null files, using within a session:

export GRASS_COMPRESS_NULLS=1

r.null -z map=mymap

This works fine, but how can I set this permanently. Can I for example use g.gisenv for that? Or do I need to set this every time when starting a new session?

Regards,

Paulo

Hi,

2017-01-10 17:55 GMT+01:00 Paulo van Breugel <p.vanbreugel@gmail.com>:

This works fine, but how can I set this permanently. Can I for example use
g.gisenv for that? Or do I need to set this every time when starting a new
session?

it's not GRASS variable. Environmental variables can be defined in
$HOME/.grass7/bashrc (or env.bat on Windows). In your case

export GRASS_COMPRESS_NULLS=1

put to bashrc/env.bat file. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Ah, ok, thanks!