|
Re: Bounding [message #17699 is a reply to message #9796] |
Tue, 09 November 1999 00:00  |
Ben Tupper
Messages: 186 Registered: August 1999
|
Senior Member |
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Brian wrote:
<blockquote TYPE=CITE>I am looking for some help with interpolating a surface
from ungridded
<br>data points. I have several thousand measurements in a river
with
<br>corresponding latitudes and longitudes for each of the points.
I would
<br>like to make a surface of these data, but have run into a small
<br>problem. I have been using a combination of TRIANGULATE and TRIGRID
to
<br>grid the data into a surface, however I end up with data being
<br>interpolated outside the bounds of the river. Is there any way
to bound
<br>the resulting grid to only include data within the river banks?</blockquote>
<p><br>I have bumped into the same problem with marine surveys around irregular
coastlines. I usually have difficulty with concavity in the
horizontal scatter of the data. If the data is scattered
in a convex hull pattern, use the boundary nodes (from boundary keyword
to triangulate ....
<p> "B An optional, named variable that, upon return,
contains a list of the indices of the boundary points in counterclockwise
order.")
<p> to limit the extrapolation. Unfortunately, river
bends will introduce a concavity into that outer hull. The best solution
I have come up with is to manually digitize a polygon shape around the
ROI that I want to keep and mask all points outside the polygon.
If the riverbanks are well mapped (vectorized), you maybe able to lift
the riverbank coordinates from your dataset and use those values.
It's a brute force solution but has worked well so far. I really
would like to solve this problem differently.
<blockquote TYPE=CITE>Also,is there any way to determine a variance associated
with the
<br>interpolation?
<br>
<br> </blockquote>
I'm not sure what you mean. You can interpolate the gridded
value for the original X, Y locations and then perform statistics on the
interpolated values vs. the original data values.
<p>Hope it helps,
<br>Ben
<pre>--
Ben Tupper
Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org
Pemaquid River Company
pemaquidriver@tidewater.net</pre>
</html>
|
|
|