NAME

r.to.gnuplot - outputs a raster map in GNUPLOT format
(GRASS Shell Script)

SYNOPSIS

r.to.gnuplot help
r.to.gnuplot name

DESCRIPTION

r.to.gnuplot is a Bourne shell script that converts a raster map into a format suitable for plotting with g.gnuplot.html and writes the results to standard output.

OPTIONS

This program runs non-interactively; the user must state all parameter values on the command line.

Parameter:

name
Name of a raster map layer.

EXAMPLE

Typing the following at the command line:
r.to.gnuplot elevation > elev.dat
will write the raster data to elev.dat. After staring the GRASS graphics monitor, the following dialogue:
g.gnuplot
gnuplot> set parametric
gnuplot> set contour base
gnuplot> set nosurface
gnuplot> set view 180,0
gnuplot> splot 'elev.dat' notitle with lines
will plot a contour map of elevation.

NOTES

Similar procedures may be used to plot wire-mesh surfaces.

g.gnuplot may be used to simultaneously plot surfaces and contours from multiple raster maps.

Output may be saved as PostScript, FrameMaker, TeX, etc (approximately 2 dozen output formats).

FILES

$GISBASE/scripts/r.to.gnuplot.

SEE ALSO

r.stats
v.to.gnuplot
g.gnuplot

AUTHOR

James Darrell McCauley, Agricultural Engineering, Purdue University