[GRASS-dev] Re: windows binaries

Glynn Clements glynn at gclements.plus.com
Mon Nov 13 03:28:04 EST 2006


Moritz Lennert wrote:

> >> 3. At the end of the script:
> >>
> >> if [ $GRASS_RENDER_IMMEDIATE = TRUE ] ; then
> >>   if [ $GRASS_TRANSPARENT = TRUE ] ; then
> >>     g.pnmcomp \
> >> 	output=$imgbase.ppm \
> >> 	width=$GRASS_WIDTH \
> >> 	height=$GRASS_HEIGHT \
> >> 	input=$imgbase.1.ppm,$imgbase.2.ppm \
> >> 	mask=$imgbase.1.pgm,$imgbase.2.pgm
> >>   else
> >>     g.pnmcomp \
> >> 	output=$imgbase.ppm \
> >> 	width=$GRASS_WIDTH \
> >> 	height=$GRASS_HEIGHT \
> >> 	input=$imgbase.1.ppm,$imgbase.2.ppm
> >>   fi
> >> fi
> >
> > This overlays the intermediate files, with the result going to
> > $GRASS_PNGFILE.
> 
> I imagine the fact that this is limited to two intermediate files is only
> for example purposes.

Correct.

> As you cannot predict how many intermediate files
> you will have, you would probably have to create the list of intermediate
> files before and then do something like:
> 
> input=ListOfPPM
> mask=ListOfPGM

Correct.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list