cuda-friendly-vincenty-0.1.2
توضیحات
Function for geographical distances calculation that can run on GPU using CUDA.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cuda-friendly-vincenty-0.1.2 |
| نام | cuda-friendly-vincenty |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Serhii Hulko |
| ایمیل نویسنده | felytic@gmail.com |
| آدرس صفحه اصلی | https://github.com/felytic/cuda-friendly-vincenty |
| آدرس اینترنتی | https://pypi.org/project/cuda-friendly-vincenty/ |
| مجوز | Unlicense |
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 <https://github.com/maurycyp/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
--------------------------------------------------
.. code:: python
>>> from cuda_friendly_vincenty import vincenty
>>> boston = (-71.0693514, 42.3541165)
>>> newyork = (-73.9680804, 40.7791472)
>>> vincenty(*boston, *newyork)
298396.06
Installation
------------
.. code:: bash
$ pip install cuda-friendly-vincenty
References
----------
* https://en.wikipedia.org/wiki/Vincenty's_formulae
* https://en.wikipedia.org/wiki/World_Geodetic_System
نحوه نصب
نصب پکیج whl cuda-friendly-vincenty-0.1.2:
pip install cuda-friendly-vincenty-0.1.2.whl
نصب پکیج tar.gz cuda-friendly-vincenty-0.1.2:
pip install cuda-friendly-vincenty-0.1.2.tar.gz