Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error when finding nearest neighbour on longitude/latitude (irregular
grid) using DelauneyTri - other ways?

Replies: 10   Last Post: Mar 15, 2012 12:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
charliebishop@gmail.com

Posts: 48
Registered: 5/8/06
Re: Error when finding nearest neighbour on longitude/latitude (irregular
Posted: Mar 15, 2012 12:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Thursday, 15 March 2012 13:36:22 UTC-2:30, Bruno Luong wrote:
> Charlie <charliebishop@gmail.com> wrote in message <23384004.1311.1331821232168.JavaMail.geo-discussion-forums@vbmf37>...
>

> >
> > I then have a bunch of a lat,lon,depth values not on this grid (its scattered data), that I want to interpolate to so I can compare my model to these observations... DelauneyTri seems to handle my 2d case ok, but not the 3d case.
> >

>
> Formatting your data, just duplicate the z data with REPMAT before calling DelaunayTri.
>
> Bruno


Thanks, I was kind of thinking this was the way to go.. and I had never seen that repmat command before, looks interesting.

I guess I'm not really sure what size I actually need to make my matrix?

Nav_lon is 257x357, the same for nav_lat, and depths is just 1 column vector.. I tried reproducing that depth column vector to be 357 column vectors of the same depths, but that didnt work either... should it be 257x357x50 perhaps? with each vertical column being my 50 depths? ... hmmmm




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.