Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
Devart SSIS Data Flow Components 1.10.1
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
The C# OCR Library 4.4.0
ODBC Driver for xBase 2.1
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Job Portal Script 1.3.2
The C# PDF Library 5.2
Top Code
Azizi search engine script PHP 4.1.10
Classy script, Classy Website Clone 2.0.4
DTMF Encoder/Decoder with GUI using FFT,goertzel,Filter Banks 1.0
MLM Unilevel Plan Script 1.0.4
College Management System Script 1.0.4
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Devart SSIS Data Flow Components 1.0
Newest MySQL manual in HTML Help (.chm) 4.1.1-alpha
CAD Import VCL 9.1
2D/3D CAD Import VCL
Database Workbench Pro 5.6.8
Auto2Fit Pro 3.0
Ticket Booking Software – PHP Scripts mall 1.0.2
The C# PDF Library 1.0
SW Test Automation Framework 32
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Compute the Great Circle Distance between two points 1.0
File ID: 81366






Compute the Great Circle Distance between two points 1.0
Download Compute the Great Circle Distance between two points 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 34
Submit Rating:
Compute the Great Circle Distance between two points 1.0 Description
Description: This function will compute the great circle distance between two points on a sphere of uniform radius using the Vincenty formula. At minimum, four inputs are required: lat1, long1, lat2, long2. Optionally, a fifth parameter (r) can be specified. If this parameter isn't specified it's assumed to be the mean radius of the earth in km.

INPUTS:
phi_s = latitude of the standpoint (base)
lambda_s = longitude of the standpoint (base)
phi_f = latitude of the forepoint (destination)
lambda_f = longitude of the forepoint (destination)
r = radius of the sphere [units determine units of d]

OUTPUT:
d = great circle distance from standpoint to forepoint

Note that the Vincenty equation requires the latitude and longitude to be specified in radians. This function will accept either radians, DMS or DM. If the input angles are scalar, they are assumed to be radians. If they are structures or they are not scalars, then they are assumed to be either DMS or DM and are converted to radians as needed.

See http://en.wikipedia.org/wiki/Great-circle_distance

License: Shareware

Related: Compute, Great, circle, Distance, points, Scripts

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 34



More Similar Code

This function computes the minimum euclidean distance between two polygons P1 & P2.

- for vertex-vertex case



I came across the mention of a formula labeled "The Great Circle Distance Formula" that purported to calculate the distance between any two points on the earth given their longitude and latitude points (the reference was in a Linux...



M-file to calculate the distance between two points on the earth surface, using different ellipsoid parameters.



Computes the shortest distance between two line segments given start and end points for each. Adapts the algorithm found on Dan Sunday's website (http://softsurfer.com/Archive/algorithm_01...ment_to_Segment
).

Usage: Input the...



This program calculates the distance between two locations (latitude and longitude) using the Haversine formula. The Haversine formula gives the shortest distance between two points over the earth's surface, ignoring elevation, hills, etc...



Computes the haversine (great circle) distance in metres between successive points on the surface of the Earth. These points are specified as vectors of latitudes and longitudes.



Simple gui widget to get the coordinate change between two points.

just type getdelta and a button with three fields will appear. click the button and then two points in a plot. The change in x, change in y, and slope will be...



A simple algorithm that returns the points (x and y values) for a line between two points (x1,y1) and (x2,y2).



Vincenty published an algorithm for calculating the distance between two latitudes and longitudes and another to find the destination latitude and longitude, given the start coordinate, bearing and distance



D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.

DISTMAT(X,Y,d) computes a specific d-norm distance. Default=2

User Review for Compute the Great Circle Distance between two points
- required fields
     

Please enter text on the image