Function for geographical distances calculation that can run on GPU using CUDA.
Project description
Vincenty
Calculate the geographical distance (in kilometers or miles) between 2 points with extreme accuracy.
This library implements Vincenty’s solution to the inverse geodetic problem. It is based on the WGS 84 reference ellipsoid and is accurate to within 1 mm (!) or better.
This formula is widely used in geographic information systems (GIS) and is much more accurate than methods for computing the great-circle distance (which assume a spherical Earth).
CUDA-friendly
This repo is modification of vincenty package. Since CUDA has some limitations (it doesn’t understand try…except, for example) original code can’t run on GPU.
Example: distance between Boston and New York City
>>> from cuda_friendly_vincenty import vincenty
>>> boston = (-71.0693514, 42.3541165)
>>> newyork = (-73.9680804, 40.7791472)
>>> vincenty(*boston, *newyork)
298396.06
Installation
$ pip install cuda-friendly-vincenty
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cuda-friendly-vincenty-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7628852fdf9d85704b30dbbefc0e866f45a87d90871dbb6da520bea5229ada |
|
MD5 | 27ac40672647f5cb9da91308219d2b3b |
|
BLAKE2b-256 | 3e232b14a7a82f35c771f04576c6c1b72d3bf0781111d4dfcb5e4a6dfc9fa1b8 |
Hashes for cuda_friendly_vincenty-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e2fdce999bb3f2a07abfcfcc53a175a73f7dd94028cc2c68524e3935d698d6 |
|
MD5 | 976d44aeb7971c6403bae837f50c16ae |
|
BLAKE2b-256 | 24d24dc7ccb4de05931e8e1a3716a54de5f46c2bae317de2753bf2b28614e6ad |