| MATLAB Central > MATLAB Newsreader > River miles |
|
|
|
I have a file with data at lat/longs, and a file with River miles at lat/longs. How can I interpolate the River mile onto the data. I have tried using interp2, but that has been hugely unsuccessful. Please keep in mind that the river meanders and frequently doubles back on itself in both latitude and longitude. |
|
On Nov 18, 12:01 pm, "Travis" <sinuso...@hotmail.com> wrote: |
|
NZTideMan <mulgor@gmail.com> wrote in message <4521b8d9-2021-4ff0-b430-08822a0ce2bc@s9g2000prm.googlegroups.com>... |
|
On Nov 18, 6:43 pm, "Travis" <sinuso...@hotmail.com> wrote: |
|
I think you need to better specify what your data looks like. I assume you have a 3xn array with x and y coordinates and river length and a 2xn array with vertex coordinates of the river course. Am I right to assume so? |
|
On 18 Nov, 00:01, "Travis" <sinuso...@hotmail.com> wrote: |
|
Rune Allnor <allnor@tele.ntnu.no> wrote in message <90f017a9-906d-4c7d-8ac5-7167e15e0d8c@u18g2000pro.googlegroups.com>... |
|
On 18 Nov, 14:30, "John D'Errico" <woodch...@rochester.rr.com> wrote: |
|
Rune Allnor <allnor@tele.ntnu.no> wrote in message <6875d2af-8eb2-443a-a831-d4c1773c1180@c36g2000prc.googlegroups.com>... |
|
On 18 Nov, 16:13, "Travis" <sinuso...@hotmail.com> wrote: |
|
Rune Allnor <allnor@tele.ntnu.no> wrote in message <f36d9204-1e90-4b53-b6f2-6d1b6ecb1f4b@i18g2000prf.googlegroups.com>... |
|
On 19 Nov, 21:42, "Travis" <sinuso...@hotmail.com> wrote: |
|
Rune Allnor <allnor@tele.ntnu.no> wrote in message <01d3cdd8-c83e-47bc-9357-fb97949f0eff@r40g2000yqj.googlegroups.com>... |
|
In article <gg22tm$k2v$1@fred.mathworks.com>, sinusoid2@hotmail.com |
|
> What Rune meant, and should work, is to separately interpolate lat vs. |
|
The very simplest way would be to simply find the nearest node to your |
|
"Travis" <sinusoid2@hotmail.com> wrote in message <gg24kh$c5h$1@fred.mathworks.com>... |
|
On Nov 20, 9:37 pm, "Bjorn Gustavsson" <bj...@irf.se> wrote: |
|
On 20 Nov, 09:57, NZTideMan <mul...@gmail.com> wrote: |
|
In article <gg24kh$c5h$1@fred.mathworks.com>, sinusoid2@hotmail.com |
|
Loren Shure <loren@mathworks.com> wrote in message <MPG.238f225981c556229898f6@news.mathworks.com>... |
|
On 20 Nov, 16:39, "Travis" <sinuso...@hotmail.com> wrote: |
|
Rune Allnor <allnor@tele.ntnu.no> wrote in message <8f6d2252-4e3f-4a08-88b0-4cfd778c37bd@j38g2000yqa.googlegroups.com>... |
|
37.3097 -120.9301 |
|
... |
|
Why can't you just griddata? I copied the data you posted here, stored it in rivermiles.txt and rivermiles2.txt, then ran this: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| interpolation | Ned Gulley | 21 Nov, 2008 23:00:25 |
E-mail this page to a colleague
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Contact us at files@mathworks.com