[GRASS-dev] v.cellstats script

Maciej Sieczka tutey at o2.pl
Fri Nov 17 13:35:02 EST 2006

Markus Neteler wrote:
> Martin Wegmann wrote on 11/17/2006 02:34 PM:

> two quick observations:
> This is a bash-ism AFAIK (still needs to be eliminated in some scripts):
>    export LC_NUMERIC=C
> Before doing that the current region should be saved. In an older mail
> from Glynn it was described how to solve it in an elegant way:
>    #set to current input map region
>    g.region rast=$GIS_OPT_raster

You mustn't change the current region. Use

# set the region to a raster but don't touch the WIND
g.region raster=$GIS_OPT_raster save=$region -a -u 	# mind the -u !



More information about the grass-dev mailing list