|
|
Re: Error when finding nearest neighbour on longitude/latitude (irregular
Posted:
Mar 15, 2012 12:55 PM
|
|
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
|
|