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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f145c2a98b2ccd40a5911091fdd77fa0b820cab8a04c1ab106deb069b1aed1 |
|
MD5 | f5fe2edd67c728023d435ae7db610dc8 |
|
BLAKE2b-256 | ac7cb07956314ba161081198497d5f804d77a7850b81988e58cf9c7091265f6f |
Hashes for cuda_friendly_vincenty-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70c305d17efbd773f149fef68777ac0dbe493e9ce9115e2b308555f2d2995c1a |
|
MD5 | b6b9ea099a06b52e8ccb1edd9341a3e7 |
|
BLAKE2b-256 | 4bc6b3b61f41778176a42d55ce25a2ee54a4a6ef2d6191a0a9b24a0a88b8c8d8 |