1 # Created by Octave 3.6.1, Tue Apr 03 20:39:46 2012 UTC <root@t61>
13 # name: <cell-element>
17 -- Function File: AZ = azimuth(LAT1,LON1,LAT2,LON2)
18 -- Function File: AZ = azimuth(LAT1,LON1,LAT2,LON2,UNITS)
19 -- Function File: AZ = azimuth(PT1, PT2)
20 -- Function File: AZ = azimuth(PT1, PT2,UNITS)
21 Calculates the great circle azimuth from a point 1 to a point 2.
22 The latitude and longitude of these two points can either be given
23 independently or as columns of the matrices PT1 and PT2 in the
24 form [latitude longitude].
26 The units for the input coordinates and output angles can be
27 "degrees" (the default) or "radians".
29 >> azimuth([10,10], [10,40])
31 >> azimuth([0,10], [0,40])
33 >> azimuth(pi/4,0,pi/4,-pi/2,"radians")
36 See also: elevation, distance
42 # name: <cell-element>
46 Calculates the great circle azimuth from a point 1 to a point 2.
50 # name: <cell-element>
57 # name: <cell-element>
61 -- Function File: ANGLOUT = deg2rad(ANGLIN)
62 Converts angles input in degrees to the equivalent in radians.
67 # name: <cell-element>
71 Converts angles input in degrees to the equivalent in radians.
75 # name: <cell-element>
82 # name: <cell-element>
86 -- Function File: DIST = distance(PT1, PT2)
87 Calculates the distance (in degrees) between PT1 and PT2.
89 PT1 and PT2 are two-column matrices of the form [latitude
92 >> distance([37,-76], [37,-9])
94 >> distance([37,-76], [67,-76])
97 See also: azimuth, elevation
103 # name: <cell-element>
107 Calculates the distance (in degrees) between PT1 and PT2.
111 # name: <cell-element>
118 # name: <cell-element>
122 -- Function File: A = km2deg(X)
123 Convert a distance along a great circle of the Earth from km to
124 degrees. A radius of 6371 km is assumed.
129 # name: <cell-element>
133 Convert a distance along a great circle of the Earth from km to
138 # name: <cell-element>
145 # name: <cell-element>
149 -- Function File: ANGLOUT = rad2deg(ANGLIN)
150 Converts angles input in radians to the equivalent in degrees.
155 # name: <cell-element>
159 Converts angles input in radians to the equivalent in degrees.
163 # name: <cell-element>
170 # name: <cell-element>
174 -- Function File: [LATO,LONO] = reckon(LAT,LON,RANGE,AZIMUTH)
175 -- Function File: [LATO,LONO] = reckon(LAT,LON,RANGE,AZIMUTH,UNITS)
176 Compute the coordinates of the end-point of a displacement on a
177 sphere. LAT,LON are the coordinates of the starting point, RANGE
178 is the covered distance of the displacements along a great circle
179 and AZIMUTH is the direction of the displacement relative to the
180 North. The units of all input and output parameters can be either
181 'degrees' (default) or 'radians'.
183 This function can also be used to define a spherical coordinate
184 system with rotated poles.
189 # name: <cell-element>
193 Compute the coordinates of the end-point of a displacement on a sphere.