Forum menu
excel help - interp...
 

[Closed] excel help - interpolating between values?

Posts: 12522
Full Member
Topic starter
 

Chuesday Challenge:

I have 47 long/lat c-ordinates along a 200km stretch of road that I'd like to be more like 250 long lat co-ordinates along the same stretch.

They're in excel, which seems like a reasonable place to start.

Any hints, tips, or answers?

Cheers loads,

Ed

edit: the road is wiggly.


 
Posted : 22/03/2011 6:33 pm
Posts: 10944
Full Member
 

What sort of interpolation do you want? Linear's a POP, other forms get more complex.


 
Posted : 22/03/2011 6:35 pm
Posts: 0
Free Member
 

Unless the road is straight, or there are consistent features, you are going to be on a hiding to nothing.
Why do you want to interpolate them? And could you not derive additional coordinates from a mapping program? Or even better use a GIS with a line feature?


 
Posted : 22/03/2011 6:37 pm
Posts: 0
Free Member
 

Linear would not be any use if you want 250 from 47. you need to fit a curve really. Though fitting 4 points between every 2 seems a bit of a stretch


 
Posted : 22/03/2011 6:38 pm
Posts: 0
Free Member
 

edit: the road is wiggly.

This makes interpolation pointless


 
Posted : 22/03/2011 6:40 pm
Posts: 0
Free Member
 

This makes interpolation pointless

๐Ÿ˜†


 
Posted : 22/03/2011 6:41 pm
Posts: 10944
Full Member
 

As charlie says - if it's wiggly then no amount of clever maths is going to predict where those wiggles go. If you had orientation of the road at each point as well as the positions then you could have a go at fitting something to the data but there's no guarantee it'd be even close.


 
Posted : 22/03/2011 6:43 pm
Posts: 12522
Full Member
Topic starter
 

"Interpolate" makes it sound a bit mathsier that it probably needs to be.

I'd settle for 185: a mid point between each of my points as they are, and then mid points between the resulting list of 93.

I'll give that a bash. it'll be ugly and manual, as most of my excel tends to be, but I've give it a go...


 
Posted : 22/03/2011 6:45 pm
Posts: 0
Free Member
 

If you want to do that, then fit a curve to the coordinates using the graphing tool and then use the resultant equation to calculate the additional points.


 
Posted : 22/03/2011 6:48 pm
Posts: 0
Free Member
 

in that case just bisect the lines.

for x1.5 = ((x2-x1)/2)+x1 and the same for y1.5


 
Posted : 22/03/2011 6:51 pm
Posts: 12522
Full Member
Topic starter
 

geoffj, Sounds good! How easy is that? Can you explain how to do it in 50 words?


 
Posted : 22/03/2011 6:52 pm
Posts: 0
Free Member
 

Charlies answer is better - and I'm not in front of a computer with excel on it.


 
Posted : 22/03/2011 6:53 pm
Posts: 12522
Full Member
Topic starter
 

ended up with taking the average between each long and lat, interspersing the two pairs of columns (labelling odd + even numbers then sorting numerically) then doing the same again.

I think that's effectively the same as the same as charlie's answer?

Hope I haven't wasted too much time of anybody who didn't want it wasting!

Bonus question, for fun only: how do I plot 185 long/lat values from excel into a mapping program, to see how spectacularly cock-eyed my "interpolation" is?


 
Posted : 22/03/2011 7:06 pm
Posts: 12522
Full Member
Topic starter
 

and thank you. speedy answers very much aprreciated. ๐Ÿ™‚


 
Posted : 22/03/2011 7:13 pm
Posts: 0
Full Member
 

Convert the excel/CSV into GPX?

http://www.topografix.com/GPX/1/1/


 
Posted : 22/03/2011 7:16 pm
Posts: 0
Free Member
 

Have a loom at gps utility to convert from a dbf file to kml for viewing in google earth
Edit portlyone has it


 
Posted : 22/03/2011 7:17 pm