Skip to content

Python script that I used to impute GPS coordinates from relative distances

License

Notifications You must be signed in to change notification settings

BrianSanderson/trilateration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python trilateration

A script used to impute GPS coordinates from relative distances in my paper in Ecology & Evolution from 2016.

Trilateration of samples recorded as distances to each of three referenced GPS points. Input file format should be "name", "dist1", "dist2", "dist3", "long1", "lat1", "long2", "lat2", "long3", "lat3" where the distances are reported in meters, and the GPS coordinates are in decimal degrees. See example file 'headless_mv_spatial.csv'

Adapted from a comment on stackoverflow here: http://gis.stackexchange.com/questions/66/trilateration-using-3-latitude-and-longitude-points-and-3-distances/415#415

The wikipedia entry referenced in the comments is: http://en.wikipedia.org/wiki/Geodetic_system#geodetic_to.2Ffrom_ECEF_coordinates

Usage

python triat.py --input inputCsvFile.csv --output outputCsvFile

About

Python script that I used to impute GPS coordinates from relative distances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages