1 | |
---|
2 | |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <head> |
---|
5 | <title>ll_narcs_distances.pro (SAXO Documentation Assistant)</title> |
---|
6 | </head> |
---|
7 | |
---|
8 | <body text="#000000" bgcolor="#FFFFFF"> |
---|
9 | |
---|
10 | |
---|
11 | <!-- Navbar template takes a structure with the following fields: |
---|
12 | overview_href : |
---|
13 | overview_selected : |
---|
14 | dir_overview_href : |
---|
15 | dir_overview_selected : |
---|
16 | categories_href : |
---|
17 | categories_selected : |
---|
18 | index_href : |
---|
19 | index_selected : |
---|
20 | search_href : |
---|
21 | search_selected : |
---|
22 | file_selected : |
---|
23 | source_href : |
---|
24 | source_selected : |
---|
25 | help_href : |
---|
26 | help_selected : |
---|
27 | etc_selected : |
---|
28 | |
---|
29 | prev_file_href : |
---|
30 | next_file_href : |
---|
31 | |
---|
32 | view_single_page_href : |
---|
33 | view_frames_href : |
---|
34 | |
---|
35 | summary_fields_href : |
---|
36 | summary_routine_href : |
---|
37 | details_routine_href : |
---|
38 | |
---|
39 | title : |
---|
40 | subtitle : |
---|
41 | user : |
---|
42 | --> |
---|
43 | |
---|
44 | |
---|
45 | <table border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="#F0F0FF" valign="bottom"> |
---|
46 | <tr> |
---|
47 | <td width="10%"> |
---|
48 | <a href="lbcorca.html"><img src="./../prev.gif" border="0" alt="Previous"></a></td> |
---|
49 | <td width="80%" align="center" valign="center"> |
---|
50 | <font size=-1><i>SAXO Documentation Assistant</i>: <a href="./../home.html">Overview</a></font></td> |
---|
51 | <td width="10%" align="right"> |
---|
52 | <a href="map_npoints.html"><img src="./../next.gif" border="0" alt="Next"></a></td> |
---|
53 | </tr> |
---|
54 | </table> |
---|
55 | |
---|
56 | |
---|
57 | <h1><font size="-2">Interpolation/</font></h1> |
---|
58 | <h2>ll_narcs_distances.pro</h2> |
---|
59 | |
---|
60 | <dl> |
---|
61 | </dl> |
---|
62 | |
---|
63 | |
---|
64 | This function returns the longitude and latitude [lon, lat] of |
---|
65 | a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az), |
---|
66 | from a specified location Lon0, Lat0. |
---|
67 | Same as <a href="/Applications/itt/idl64/help/online_help/LL_ARC_DISTANCE.html">LL_ARC_DISTANCE</a> but for n points without do loop. |
---|
68 | |
---|
69 | Formula from Map Projections - a working manual. USGS paper |
---|
70 | 1395. Equations (5-5) and (5-6). |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | <a name="#_ll_narcs_distances"></a> |
---|
77 | |
---|
78 | <h2>ll_narcs_distances <font size="-1" color="#006633"> |
---|
79 | Mapping, geography |
---|
80 | </font></h2> |
---|
81 | |
---|
82 | <p><font face="Courier"><i>result = </i>ll_narcs_distances(<i><a href="#_ll_narcs_distances_keyword_lon0">lon0</a>, <a href="#_ll_narcs_distances_keyword_lat0">lat0</a>, <a href="#_ll_narcs_distances_keyword_arc_dist">arc_dist</a>, <a href="#_ll_narcs_distances_keyword_az">az</a></i>, <a href="#_ll_narcs_distances_keyword_DEGREES">DEGREES</a>=<i>DEGREES</i>)</font></p> |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | |
---|
87 | <h3>Return value</h3> |
---|
88 | a (2,n) array containing the longitude/latitude of the resulting points. |
---|
89 | Values are in radians unless the keyword DEGREES is set. |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | <h3>Parameters</h3> |
---|
94 | |
---|
95 | |
---|
96 | <a name="#_ll_narcs_distances_keyword_lon0"></a> |
---|
97 | <h4>lon0 |
---|
98 | <font size="-1" color="#006633">in</font> |
---|
99 | |
---|
100 | |
---|
101 | <font size="-1" color="#006633">required</font> |
---|
102 | |
---|
103 | |
---|
104 | |
---|
105 | |
---|
106 | </h4> |
---|
107 | |
---|
108 | |
---|
109 | An array containing the longitude of the starting point. |
---|
110 | Values are assumed to be in radians unless the keyword DEGREES is set. |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | <a name="#_ll_narcs_distances_keyword_lat0"></a> |
---|
115 | <h4>lat0 |
---|
116 | <font size="-1" color="#006633">in</font> |
---|
117 | |
---|
118 | |
---|
119 | <font size="-1" color="#006633">required</font> |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | |
---|
124 | </h4> |
---|
125 | |
---|
126 | |
---|
127 | An array containing the latitude of the starting point. |
---|
128 | Values are assumed to be in radians unless the keyword DEGREES is set. |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | <a name="#_ll_narcs_distances_keyword_arc_dist"></a> |
---|
133 | <h4>arc_dist |
---|
134 | <font size="-1" color="#006633">in</font> |
---|
135 | |
---|
136 | |
---|
137 | <font size="-1" color="#006633">required</font> |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | </h4> |
---|
143 | |
---|
144 | |
---|
145 | The arc distance from Lon_lat0. The value must be between |
---|
146 | -!PI and +!PI. To express distances in arc units, divide |
---|
147 | by the radius of the globe expressed in the original units. |
---|
148 | For example, if the radius of the earth is 6371 km, divide |
---|
149 | the distance in km by 6371 to obtain the arc distance. |
---|
150 | |
---|
151 | |
---|
152 | |
---|
153 | <a name="#_ll_narcs_distances_keyword_az"></a> |
---|
154 | <h4>az |
---|
155 | <font size="-1" color="#006633">in</font> |
---|
156 | |
---|
157 | |
---|
158 | <font size="-1" color="#006633">required</font> |
---|
159 | |
---|
160 | |
---|
161 | |
---|
162 | |
---|
163 | </h4> |
---|
164 | |
---|
165 | |
---|
166 | The azimuth from Lon_lat0. The value is assumed to be in |
---|
167 | radians unless the keyword DEGREES is set. |
---|
168 | |
---|
169 | |
---|
170 | |
---|
171 | |
---|
172 | |
---|
173 | <h3>Keywords</h3> |
---|
174 | |
---|
175 | |
---|
176 | <a name="#_ll_narcs_distances_keyword_DEGREES"></a> |
---|
177 | <h4>DEGREES |
---|
178 | |
---|
179 | |
---|
180 | |
---|
181 | |
---|
182 | |
---|
183 | |
---|
184 | |
---|
185 | |
---|
186 | </h4> |
---|
187 | |
---|
188 | |
---|
189 | Set this keyword to express all measurements and results in degrees. |
---|
190 | |
---|
191 | |
---|
192 | |
---|
193 | |
---|
194 | <h3>Examples</h3><pre> |
---|
195 | IDL> Lon_lat0 = [1.0, 2.0]; Initial point specified in radians |
---|
196 | IDL> Arc_Dist = 2.0; Arc distance in radians |
---|
197 | IDL> Az = 1.0; Azimuth in radians |
---|
198 | IDL> Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) |
---|
199 | IDL> PRINT, Result |
---|
200 | 2.91415 -0.622234 |
---|
201 | |
---|
202 | IDL> lon0 = [-10, 20, 100] |
---|
203 | IDL> lat0 = [0, -10, 45] |
---|
204 | IDL> lon1 = [10, 60, 280] |
---|
205 | IDL> lat1 = [0, 10, 45] |
---|
206 | IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) |
---|
207 | IDL> earthradius = 6378206.4d0 |
---|
208 | IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees) |
---|
209 | IDL> print, reform(res[0, *]) |
---|
210 | 10.000000 60.000000 280.00000 |
---|
211 | IDL> print, reform(res[1, *]) |
---|
212 | 1.1999280e-15 10.000000 45.000000 |
---|
213 | |
---|
214 | </pre><h3>Version history</h3> |
---|
215 | |
---|
216 | <h4>Version</h4> |
---|
217 | $Id: ll_narcs_distances.pro 327 2007-12-13 16:22:35Z pinsard $ |
---|
218 | |
---|
219 | <h4>History</h4> |
---|
220 | Based on the IDL function ll_arc_distance.pro,v 1.11 2003/02/03 |
---|
221 | Sebastien Masson (smasson@lodyc.jussieu.fr) |
---|
222 | August 2005 |
---|
223 | |
---|
224 | |
---|
225 | |
---|
226 | |
---|
227 | |
---|
228 | |
---|
229 | |
---|
230 | |
---|
231 | |
---|
232 | |
---|
233 | |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | |
---|
238 | |
---|
239 | |
---|
240 | <font size="-3"><p> </p></font> |
---|
241 | <hr size="1" color="#CCCCCC"/> |
---|
242 | |
---|
243 | |
---|
244 | |
---|
245 | |
---|
246 | <p><font color="gray" size="-3"> Produced by IDLdoc 2.0.</font></p> |
---|
247 | |
---|
248 | </body> |
---|
249 | </html> |
---|