NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
<html><div style='background-color:'><DIV> <P>Hello, All</P> <P>I need help for converting contour lines to grids.</P> <P>My original data are contour lines in an area of 1 mile by 1 mile. <BR>Each contour line consists of some points, each point has x, y, and z. There are about<BR>1000 points. My data file is something like the following:</P> <P>12.3 23.6 60<BR>17.6 47.9 60<BR>35.9 68.0 60<BR>.<BR>.<BR>.<BR>234 567 120<BR>250 345 120<BR>.<BR>.<BR>.</P> <P><BR>Each line is the x, y and z value of one point. Now I want to draw the topography surface.<BR>I did the following:</P> <P>1. Set the grid size (e.g., 10 m) <BR>2. Find the x and y of the grid points (e.g., (0,0), (10,0), ...)<BR>3. Interpolate these grid points to get their z values<BR>4. Draw the grid points to get the topography surface</P> <P>I tried methods of moving average (with help from Bill and Tom), weighted average, and nearest neighbor for interpolation. I am not satisfied with the results, because the surfaces between contour lines are actual planes. The surfaces do not like a real terrain visually because interpolation by moving average, weighted average and nearest neighbor do not consider factors such as curvature, convex, and concave.</P> <P>Recently I am reading the book "OpenGL SuperBible, Second Edition" by Richard S. Wright, Jr, and Michael Sweet. There is an example of Bezier curve in Chapter 13. Can we do the same thing in Java3d and VisAD? </P> <P>Any help will be highly appreciated.</P> <P>Gaoming Fu <BR> </P></DIV> <DIV></DIV></div><br clear=all><hr>Join the world?s largest e-mail service with MSN Hotmail. <a href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html>
visad
archives: