[GRASS-user] Re: script to generate georeferenced jpeg colored images from FCELL/CELL rasters

G. Allegri giohappy at gmail.com
Sun Jan 6 09:24:54 EST 2008


Thanks Glynn. I'm writing my first grass scripts...
About region settings do you mean to use something like this?:

g.region -u rast=$RAST save=region.tmp.$$
WIND_OVERRIDE=region.tmp.$$
export WIND_OVERRIDE
(my code)
g.remove region=region.tmp.$$

The exec command obviously was an error!

Giovanni

2008/1/6, Glynn Clements <glynn at gclements.plus.com>:
>
> G. Allegri wrote:
>
> > exec `g.region rast="$RAST"`
>
> This is bogus on two counts. First, g.region doesn't output a shell
> command, so the use of exec and backticks makes no sense. Second,
> shell scripts shouldn't change the current region; they should create
> a temporary region with "g.region ... save=..." and use WIND_OVERRIDE.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>


More information about the grass-user mailing list