Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Geographic distance calculated using Pythagorean theorem #7

Copy link
Copy link
@claraqin

Description

@claraqin
Issue body actions

Dear Fitzpatrick Lab,

I noticed that the geographic distance between two lat-lon points is calculated using the Pythagorean theorem (e.g. v <- sqrt((data[,3]-data[,5])^2 + (data[,4]-data[,6])^2)) rather than a formula that takes into account the spherical(-ish) shape of the Earth. This causes the calculated distances to become more distorted the farther samples are from the equator. May I recommend using something like the haversine formula to calculate geographic distance as an alternative?

Cheers,
Clara

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.