[GRASS-user] i.spectral and gnuplot

Glynn Clements glynn at gclements.plus.com
Sat Jun 24 10:00:32 EDT 2006


Stuart Edwards wrote:

> I'm trying to run i.spectral which of course requires gnuplot.  I  
> have gnuplot 4 installed (via fink) but i.spectral can't see it and  
> asks for it to be installed.  I made GRASS_GNUPLOT = /sw/bin but that  
> didn't help.  I'm running 6.1cvs on OSX 10.4.6.  Any suggestions on  
> how to make gnuplot visible to i.spectral would be much appreciated.

There is a gratuitous check for whether gnuplot is in the path:

	#check if present
	if [ ! -x "`which gnuplot`" ] ; then
	    echo "$PROG: gnuplot required, please install first" 2>&1
	    exit 1
	fi

Remove that check from the i.spectral script. It actully uses
$GRASS_GNUPLOT to invoke it.

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




More information about the grass-user mailing list