[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repeats and Triangulation



Hi,

I have tinkered with TRIGRID operating on XYZ data sets where there are a few
repeated values of x and y with differing z values.

It looks like TRIGRID ignores repeated values... taking the value of the first z
value only.

Ben

Craig Markwardt wrote:

> Ben Tupper <pemaquidriver@tidewater.net> writes:
>
> > Thanks Craig,
> >
> > I think I'll pursue you final suggestion.  The tricky part there is that it is
> > possible to have indices repeated not only within column 1 but also apprearing
> > in column 2.
> >
> > Ben
>
> Yeah, but I think I handled that case.  For example if REP contains
> the following entries:
>
>   [2,  3]
>   [3,  4]
>
> Then it is clear that entries 2, 3, and 4 are all identical poins.  We
> want to keep one point at least.  Thus, I used the DELMASK to delete
> the points indexed by the second column, REP(1,*).  Deleting 3 and 4
> leaves only 2.
>
> By the way, I wanted to emphasize that the snippet of code I posted
> worked exactly as you wanted.  You don't need to go beyond that if you
> don't want.
>
> Craig
>
> --
> --------------------------------------------------------------------------
> Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> --------------------------------------------------------------------------

--
Ben Tupper
248 Lower Round Pond Road
POB 106
Bristol, ME 04539

Tel: (207) 563-1048
Email: PemaquidRiver@tidewater.net