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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cuda-friendly-vincenty-0.1.2.tar.gz.
File metadata
- Download URL: cuda-friendly-vincenty-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c4fa686b9e4694db7c58ac239755c3ad7b19ad56cdffe14e8b361c0a7acd697
|
|
| MD5 |
dbb856d0d11c42e4d7d23ef0b976c5da
|
|
| BLAKE2b-256 |
826664175f126148ecc5518fc3b34f32d311b7cf5f237eac4d313e6109684828
|
File details
Details for the file cuda_friendly_vincenty-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cuda_friendly_vincenty-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f588a34deef886e84c731194850df4616f255507e6301d93f41623d4a62a67b
|
|
| MD5 |
0c63280c88dccb8747742390b9a566dd
|
|
| BLAKE2b-256 |
c76b5f40c6ede1ec86e4bfbf5ceba286979943b52c784a08ad351ddeca638d0e
|