gnuplot/contours

This one line script generates surface data for gnuplot from
grass:

    r.stats -1x $1 | awk '$2 != row{print "";row=$2}{print}'

You will need to capture the output into a "file", tell gnuplot
to set contours, set parametric, set cntparam levels, set trange
to range of z values urange and vrange to range of columns and
rows. Then splot "file" with line.

Of course some scripts could be written to tell gnuplot all these
values automagically (except perhaps the contour level) based on
the data in "file"

-----------------------------------------------------------------
Michael Shapiro U.S. Army CERL
email: shapiro@zorro.cecer.army.mil Environmental Division
phone: (217) 352-6511 ext 526 P.O. Box 9005
fax: (217) 373-7222 Champaign, Ill. 61826-9005
-----------------------------------------------------------------