I have a database of craters on Mars in decimal latitude and longitude. The latitude ranges from about -90 to 90 and the longitude from -180 to 180 which feels right to me.

Is there a formula to calculate the distance between two points using this system on Mars?

I am using data from: Robbins Crater Database Explanation of the fields can be found at: A new global database of Mars impact craters ≥1 km

  • The formulas are skeevy, unless you are using GIS software, then it's simple. Without specifying which GIS software, this Question is somewhat open-ended. – Vince Feb 4 at 21:49
  • What formulas have you found? – ycartwhelen Feb 4 at 21:55
  • I'm not using GIS software. [andrew.hedges.name/experiments/haversine/] which is supposed to be the Haversine formula, but taking the square root of negative numbers didn't go so well. Also here: [support.sisense.com/hc/en-us/articles/… – Douglas Marsh Feb 4 at 22:04
  • 2
    Can you post an example calculation, with the input values, the steps you performed and the values you arrive at? You say that you get negative numbers inside the square root, but this normally shouldn't happen. Are you using the correct angular units (degrees/radians)? Ofter times, the functions take radians as input, so you may have to convert your latitudes and longitudes to radians. – FSimardGIS Feb 4 at 23:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.