Download Distance Calculator. Find the distance between two points that you enter into the app. Delta-E is a single number representing the 'distance' between two colors. It's tempting to simply compare the euclidean distance difference between the red, green and blue aspects of an rgb. Unfortunately for us rgb was intended for convienient use with electronic systems, however it doesn't align with how we actually perceive color. The 7.3.0.50 version of Distance is available as a free download on our website. Distance is compatible with Windows XP/Vista/7/8/10 environment, 32-bit version. Our built-in antivirus scanned this download and rated it as 100% safe. This free PC software can deal with the following extension: '.dst'. Each download we provide is subject to periodical scanning, but we strongly recommend you to check the package for viruses on your side before running the installation. The version of Netpas Distance you are about to download is 4.0. Download this app from Microsoft Store for Windows 10, Windows 8.1. See screenshots, read the latest customer reviews, and compare ratings for Map Distance.
This is a collection of equations and formulas that I've been using across my many projects to compute variousdistances using great circle calculations. The formulas here were adapted into python fromhere and here.
Because I've been using these equations across several projects, I decided to upload this to PyPI for ease ofkeeping updated and distribution. Feel free to clone, fork, or modify the code as needed. I believe there aremore robust packages out there. One example is geodesy.
But I figured I could use the python practice.
Any questions, feel free to get in touch.
How to install
Clone/download the package to your project or use pip install great-circle-calculator
(PyPI)
How to use
Mountain duck 2 6 7. Here is an outline of the functions available to you.
Library great_circle_calculator
Depending on my needs, I will either import this library as
or
where * can be a specific function (or left as * for all the functions)
The functions are distance_between_points, bearing_at_p1, bearing_at_p2, midpoint, intermediate_point, point_given_start_and_bearing
Function distance_between_points()
Function distance_between_points(p1, p2, unit='meters', haversine=True)
computes the distance between two points in the unit given in the unit parameter. It will calculate the distance using the law of cosines unless the user specifies haversine
to be true
. p1
and p2
are points (i.e. tuples, lists of length 2) in the form of (lon, lat) in decimal degrees. unit
is a unit of measurement that can be accessed by great_circle_calculator.constants.eligible_units
, default is 'meters'
. haversine=True
uses the haversine formula, which is consideered superior for short distances (which is my often use case). Changing it to haversine=False
yeilds the law of cosines which, typically, will have a quicker computational time.
Function bearing_at_p1()
Function bearing_at_p1(p1, p2)
computes the bearing (i.e. course) at p1 given a destination of p2. Use in conjunction with midpoint()
and intermediate_point()
to find the course along the route. Use bearing_at_p2()
to find the bearing at the endpoint, p2
. p1
and p2
are points (i.e. tuples, lists of length 2) in the form of (lon, lat) in decimal degrees.
Example to find a course enroute:
Function bearing_at_p2
Function bearing_at_p2(p1, p2)
computes the bearing (i.e. course) at p2 given a start of p1. Use in conjunction with midpoint()
and intermediate_point()
to find the course along the route. Use bearing_at_p1()
to find the bearing at the starting point, p1
. p1
and p2
are points (i.e. tuples, lists of length 2) in the form of (lon, lat) in decimal degrees.
Function midpoint()
Function midpoint(p1, p2)
is the half-way point along a great circle path between the two points. p1
and p2
are points (i.e. tuples, lists of length 2) in the form of (lon, lat) in decimal degrees. For example, say p3 = midpoint(p1, p2)
, distance_between_points(p1, p3) distance_between_points(p2, p3)
Function intermediate_point()
Function intermediate_point(p1, p2, fraction=0.5) an intermediate point along the course laid out by p1
to p2
given the fractional distance. fraction
is the fraction of the distance between p1
and p2
, where 0 is p1
, 0.5 is equivalent to midpoint()
, and 1 is p2
.
Function point_given_start_and_bearing()
Function point_given_start_and_bearing(p1, course, distance, unit='meters') is given a start point p1
, initial bearing course
, and distance distance
, this will calculate the destination point bearing travelling along a (shortest distance) great circle arc. unit
is a unit of measurement that can be accessed by great_circle_calculator.constants.eligible_units
, default is 'meters'
.
Library compass
This libaray was created to let me call, say Compass.east
so I can get 90deg. I thought it helped with code readabilityat first, kept it because it might be useful..
It has two classes called CompassSimple
and CompassComplex
. CompassComplex
is still in the todo list but it contains more information about each compass point.
To see the eligble points, see here. Simply use the terms in 'Compass point', use lower case and underscores where there are spaces or dashes. Alternatively you may use the 'Abbreviation' with the appropriate case to call the same value.
To use CompassSimple
:
Library _constants
Artsacoustic reverb vst. This was created for two purposes:
To easily store the radius of the earth in various units
To simplify the code in the program so I don't have to call
math.*
each time I want sin, cos, etc.
To see the available units, call _constants.eligible_units
and a list of the units that are available will be given.
eligible_units
To see the available units, call _constants.eligible_units
and a list of the units that are available will be given.
Distance 1 0 Download Free Download
Libraries __conversion
and __error_checking
Private libraries that convert (__conversion.py
) values between radians and degrees as the default optionfor python's math package is radians.
Distance 1 0 download free. full
The error checking library (__error_checking.py
) is something I want to work on. I use regular cartesian conventionwhen passing points, i.e. (lon, lat) or (x, y). So if you try to pass a point which is in (lat, lon) and it doesn'tpass the sanity check, such as lat > 90 and lon <= 90, it will, right now, swap the coordinates. Not sure if that'sthe best for everyone, but I am mostly working on projects where the lon is (approximately) > 90
And finally..
Distance 1 0 Download Free
Package last updated Jan 14, 2019. Readme last updated Jan 17, 2019.
Change Log
- 1.1.0 - Changed
haversine=True
as the default fordistance_between_points
as it more accurately reflects the small distance calculation I am using in my projects. - 1.0.2 - squished an error in the intermediate function. The number of errors has been embarrassing. I hope you won't judge me too harshly.
- 1.0.1.post1 - includes a domain checker for
asin()
andacos()
because rounding errors can cause the function to be out of range. - 1.0.post1 - I screwed up the numbering order, still new at this.. please ignore.
- 1.0.1 - Fixed an error in the (
point_given_start_and_bearing
)[#point_given_start_and_bearing] - 1.0.0 - First Edition, inital commit, etc.