I'm working on a project that involves using linear interpolation to fit lines to lat/lng points. I'm pretty new at scientific programming related stuff, and I was wondering if people could steer me in the right direction.What is a good tutorial for linear interpolation in Python, preferably using GIS data?

  • 2
    Could you clarify what you mean by fitting lines to lat/long points? What values are you trying to predict, and are you trying to estimate values between measured locations, or just account for the geographic locations? Commented Nov 16, 2013 at 23:16
  • A decent library can interpolate and extrapolate with the same API. Commented May 19, 2022 at 20:59

1 Answer 1


While it doesn't mention GIS data specifically, you might try reading "Python for Data Analysis" by Wes McKinney. This is a good introduction to the premiere tools for (generic) data analysis in Python: NumPy and Pandas.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.