1 | |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
4 | |
---|
5 | <!-- Generated by IDLdoc 2.0 --> |
---|
6 | |
---|
7 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
8 | <head> |
---|
9 | <title>ll_narcs_distances.pro (IDLdoc API documentation)</title> |
---|
10 | |
---|
11 | |
---|
12 | <link rel="stylesheet" type="text/css" media="all" href="./../main_files.css" /> |
---|
13 | <link rel="stylesheet" type="text/css" media="print" href="./../main_files_print.css" /> |
---|
14 | |
---|
15 | |
---|
16 | <script type="text/javascript"> |
---|
17 | function setTitle() { |
---|
18 | parent.document.title="ll_narcs_distances.pro (IDLdoc API documentation)"; |
---|
19 | } |
---|
20 | </script> |
---|
21 | </head> |
---|
22 | |
---|
23 | <body onload="setTitle();"> |
---|
24 | |
---|
25 | <div id="navbar_title"> |
---|
26 | <h1>IDLdoc API documentation</h1> |
---|
27 | </div> |
---|
28 | |
---|
29 | |
---|
30 | <div id="main_navbar"> |
---|
31 | |
---|
32 | <table cellspacing="0"> |
---|
33 | <tr> |
---|
34 | |
---|
35 | <td><a href="./../overview.html?format=raw" title="Overview of library">Overview</a></td> |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | <td >Directory</td> |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | <td><a href="./../idldoc-categories.html?format=raw" title="Browse library by category">Categories</a></td> |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | <td><a href="./../idldoc-index.html?format=raw" title="Index of files, routines, and parameters">Index</a></td> |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | <td><a href="./../search-page.html?format=raw" title="Search library">Search</a></td> |
---|
52 | |
---|
53 | |
---|
54 | <td id="selected">File</td> |
---|
55 | |
---|
56 | |
---|
57 | <td >Source</td> |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | <td><a href="./../idldoc-help.html?format=raw" title="Help on IDLdoc">Help</a></td> |
---|
62 | |
---|
63 | |
---|
64 | <td >Etc</td> |
---|
65 | |
---|
66 | <td id="flexible">Developer documentation</td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | |
---|
70 | </div> |
---|
71 | |
---|
72 | <div id="secondary_navbar"> |
---|
73 | |
---|
74 | <a href="inrecgrid.html"><<prev file</a> | <a href="map_npoints.html">next file >></a> <a href="ll_narcs_distances.html" target="_TOP">view single page</a> | <a href="./../index.html?format=raw" target="_TOP">view frames</a> summary: fields | routine details: <a href="#routine_details">routine</a> |
---|
75 | |
---|
76 | </div> |
---|
77 | |
---|
78 | |
---|
79 | <div id="container"> |
---|
80 | |
---|
81 | <h1 class="directory"><a href="directory-overview.html?format=raw">Interpolation/</a></h1> |
---|
82 | <h2 class="pro_file">ll_narcs_distances.pro</h2> |
---|
83 | |
---|
84 | <div id="file_attr"> |
---|
85 | <dl> |
---|
86 | </dl> |
---|
87 | </div> |
---|
88 | |
---|
89 | <div id="file_comments"></div> |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | |
---|
98 | |
---|
99 | <div id="routine_details"> |
---|
100 | |
---|
101 | |
---|
102 | <div class="routine_details" id="_LL_NARCS_DISTANCES"> |
---|
103 | |
---|
104 | <h2><a class="top" href="#container">top</a>LL_NARCS_DISTANCES </h2> |
---|
105 | |
---|
106 | <p class="header"> |
---|
107 | <span class="result">result = </span>LL_NARCS_DISTANCES(<span class="result"><a href="#_LL_NARCS_DISTANCES_param_lon0">lon0</a>, <a href="#_LL_NARCS_DISTANCES_param_lat0">lat0</a>, <a href="#_LL_NARCS_DISTANCES_param_arc_dist">arc_dist</a>, <a href="#_LL_NARCS_DISTANCES_param_az">az</a></span>, <a href="#_LL_NARCS_DISTANCES_keyword_DEGREES">DEGREES</a>=<span class="result">DEGREES</span>)</p> |
---|
108 | |
---|
109 | <div class="comments"> |
---|
110 | NAME: |
---|
111 | LL_NARCS_DISTANCES |
---|
112 | |
---|
113 | PURPOSE: |
---|
114 | This function returns the longitude and latitude [lon, lat] of |
---|
115 | a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az), |
---|
116 | from a specified location Lon0, lat0. |
---|
117 | Same as LL_ARC_DISTANCE but for n points without do loop. |
---|
118 | |
---|
119 | CATEGORY: |
---|
120 | Mapping, geography. |
---|
121 | |
---|
122 | CALLING SEQUENCE: |
---|
123 | Result = LL_NARCS_DISTANCES(Lon, lat0, Arc_Dist, Az) |
---|
124 | |
---|
125 | INPUTS: |
---|
126 | Lon0: An array containing the longitude of the starting point. |
---|
127 | Values are assumed to be in radians unless the keyword |
---|
128 | DEGREES is set. |
---|
129 | Lat0: An array containing the latitude of the starting point. |
---|
130 | Values are assumed to be in radians unless the keyword |
---|
131 | DEGREES is set. |
---|
132 | Arc_Dist: The arc distance from Lon_lat0. The value must be between |
---|
133 | -!PI and +!PI. To express distances in arc units, divide |
---|
134 | by the radius of the globe expressed in the original units. |
---|
135 | For example, if the radius of the earth is 6371 km, divide |
---|
136 | the distance in km by 6371 to obtain the arc distance. |
---|
137 | Az: The azimuth from Lon_lat0. The value is assumed to be in |
---|
138 | radians unless the keyword DEGREES is set. |
---|
139 | |
---|
140 | KEYWORD PARAMETERS: |
---|
141 | DEGREES: Set this keyword to express all measurements and |
---|
142 | results in degrees. |
---|
143 | |
---|
144 | OUTPUTS: |
---|
145 | This function returns a (2, n) array containing the |
---|
146 | longitude / latitude of the resultings points. Values are in radians |
---|
147 | unless the keyword DEGREES is set. |
---|
148 | |
---|
149 | PROCEDURE: |
---|
150 | Formula from Map Projections - a working manual. USGS paper |
---|
151 | 1395. Equations (5-5) and (5-6). |
---|
152 | |
---|
153 | EXAMPLE: |
---|
154 | Lon_lat0 = [1.0, 2.0] ; Initial point specified in radians |
---|
155 | Arc_Dist = 2.0 ; Arc distance in radians |
---|
156 | Az = 1.0 ; Azimuth in radians |
---|
157 | Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) |
---|
158 | PRINT, Result |
---|
159 | 2.91415 -0.622234 |
---|
160 | |
---|
161 | IDL> lon0 = [-10, 20, 100] |
---|
162 | IDL> lat0 = [0, -10, 45] |
---|
163 | IDL> lon1 = [10, 60, 280] |
---|
164 | IDL> lat1 = [0, 10, 45] |
---|
165 | IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) |
---|
166 | IDL> earthradius = 6378206.4d0 |
---|
167 | IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees) |
---|
168 | IDL> print, reform(res[0, *]) |
---|
169 | 10.000000 60.000000 280.00000 |
---|
170 | IDL> print, reform(res[1, *]) |
---|
171 | 1.1999280e-15 10.000000 45.000000 |
---|
172 | |
---|
173 | MODIFICATION HISTORY: |
---|
174 | Based on the IDL function ll_arc_distance.pro,v 1.11 2003/02/03</div> |
---|
175 | |
---|
176 | |
---|
177 | |
---|
178 | |
---|
179 | <h3>Parameters</h3> |
---|
180 | |
---|
181 | |
---|
182 | <h4 id="_LL_NARCS_DISTANCES_param_lon0">lon0 |
---|
183 | |
---|
184 | |
---|
185 | |
---|
186 | |
---|
187 | |
---|
188 | |
---|
189 | |
---|
190 | |
---|
191 | </h4> |
---|
192 | |
---|
193 | <div class="comments"></div> |
---|
194 | |
---|
195 | <h4 id="_LL_NARCS_DISTANCES_param_lat0">lat0 |
---|
196 | |
---|
197 | |
---|
198 | |
---|
199 | |
---|
200 | |
---|
201 | |
---|
202 | |
---|
203 | |
---|
204 | </h4> |
---|
205 | |
---|
206 | <div class="comments"></div> |
---|
207 | |
---|
208 | <h4 id="_LL_NARCS_DISTANCES_param_arc_dist">arc_dist |
---|
209 | |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | |
---|
214 | |
---|
215 | |
---|
216 | |
---|
217 | </h4> |
---|
218 | |
---|
219 | <div class="comments"></div> |
---|
220 | |
---|
221 | <h4 id="_LL_NARCS_DISTANCES_param_az">az |
---|
222 | |
---|
223 | |
---|
224 | |
---|
225 | |
---|
226 | |
---|
227 | |
---|
228 | |
---|
229 | |
---|
230 | </h4> |
---|
231 | |
---|
232 | <div class="comments"></div> |
---|
233 | |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | |
---|
238 | |
---|
239 | <h3>Keywords</h3> |
---|
240 | |
---|
241 | <h4 id="_LL_NARCS_DISTANCES_keyword_DEGREES">DEGREES |
---|
242 | |
---|
243 | |
---|
244 | |
---|
245 | |
---|
246 | |
---|
247 | |
---|
248 | |
---|
249 | |
---|
250 | </h4> |
---|
251 | |
---|
252 | <div class="comments"></div> |
---|
253 | |
---|
254 | |
---|
255 | |
---|
256 | |
---|
257 | |
---|
258 | |
---|
259 | |
---|
260 | |
---|
261 | |
---|
262 | |
---|
263 | |
---|
264 | |
---|
265 | |
---|
266 | |
---|
267 | |
---|
268 | |
---|
269 | |
---|
270 | |
---|
271 | |
---|
272 | |
---|
273 | |
---|
274 | |
---|
275 | |
---|
276 | |
---|
277 | |
---|
278 | |
---|
279 | </div> |
---|
280 | |
---|
281 | </div> |
---|
282 | |
---|
283 | |
---|
284 | |
---|
285 | <div id="tagline">Produced by IDLdoc 2.0.</div> |
---|
286 | |
---|
287 | </div> |
---|
288 | |
---|
289 | </body> |
---|
290 | </html> |
---|