source: trunk/SRC/Documentation/idldoc_html_output/Interpolation/ll_narcs_distances.html @ 101

Last change on this file since 101 was 101, checked in by pinsard, 18 years ago

start to modify headers of Interpolation *.pro files for better idldoc output

File size: 6.8 KB
Line 
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&nbsp;documentation</td>
67    </tr>
68  </table>
69
70</div>
71
72<div id="secondary_navbar">
73
74<a href="inrecgrid.html">&lt;&lt;prev file</a> | <a href="map_npoints.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="ll_narcs_distances.html" target="_TOP">view single page</a> | <a href="./../index.html?format=raw" target="_TOP">view frames</a>&nbsp;&nbsp;&nbsp;&nbsp;summary: fields | routine&nbsp;&nbsp;&nbsp;&nbsp;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">
90 This function returns the longitude and latitude [lon, lat] of
91a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az),
92from a specified location Lon0, lat0.
93       Same as LL_ARC_DISTANCE but for n points without do loop.
94
95
96Formula from Map Projections - a working manual.  USGS paper
971395.  Equations (5-5) and (5-6).
98</div>
99
100     
101
102     
103
104     
105
106     
107
108      <div id="routine_details">
109       
110
111        <div class="routine_details" id="_LL_NARCS_DISTANCES">
112
113          <h2><a class="top" href="#container">top</a>LL_NARCS_DISTANCES <span class="categories"> Mapping, geography
114</span></h2>
115       
116          <p class="header">
117            <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>
118       
119          <div class="comments">
120</div>
121
122          <h3>Return value</h3><div class="value">
123 a (2, n) array containing the
124       longitude / latitude of the resultings points. Values are in radians
125       unless the keyword DEGREES is set.
126</div>
127
128         
129            <h3>Parameters</h3>
130       
131           
132            <h4 id="_LL_NARCS_DISTANCES_param_lon0">lon0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
133              <span class="attr">in</span>
134             
135             
136              <span class="attr">required</span>
137             
138             
139             
140             
141            </h4>
142       
143          <div class="comments">  An array containing the longitude of the starting point.
144             Values are assumed to be in radians unless the keyword
145             DEGREES is set.</div>
146           
147            <h4 id="_LL_NARCS_DISTANCES_param_lat0">lat0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
148              <span class="attr">in</span>
149             
150             
151              <span class="attr">required</span>
152             
153             
154             
155             
156            </h4>
157       
158          <div class="comments">  An array containing the latitude of the starting point.
159             Values are assumed to be in radians unless the keyword
160             DEGREES is set.</div>
161           
162            <h4 id="_LL_NARCS_DISTANCES_param_arc_dist">arc_dist&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
163              <span class="attr">in</span>
164             
165             
166              <span class="attr">required</span>
167             
168             
169             
170             
171            </h4>
172       
173          <div class="comments">  The arc distance from Lon_lat0. The value must be between
174 -!PI and +!PI. To express distances in arc units, divide
175  by the radius of the globe expressed in the original units.
176  For example, if the radius of the earth is 6371 km, divide
177  the distance in km by 6371 to obtain the arc distance.    </div>
178           
179            <h4 id="_LL_NARCS_DISTANCES_param_az">az&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
180              <span class="attr">in</span>
181             
182             
183              <span class="attr">required</span>
184             
185             
186             
187             
188            </h4>
189       
190          <div class="comments">   The azimuth from Lon_lat0. The value is assumed to be in
191  radians unless the keyword DEGREES is set.
192</div>
193           
194
195         
196
197         
198
199            <h3>Keywords</h3>
200           
201            <h4 id="_LL_NARCS_DISTANCES_keyword_DEGREES">DEGREES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
202             
203             
204             
205             
206             
207             
208             
209             
210            </h4>
211       
212            <div class="comments">  Set this keyword to express all measurements and
213  results in degrees.
214</div>
215           
216         
217
218          <h3>Examples</h3><div class="value"> 
219Result = LL_NARCS_DISTANCES(Lon, lat0, Arc_Dist, Az)
220
221 
222Lon_lat0 = [1.0, 2.0]; Initial point specified in radians
223Arc_Dist = 2.0; Arc distance in radians
224Az = 1.0; Azimuth in radians
225Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az)
226PRINT, Result
227       2.91415    -0.622234
228
229IDL> lon0 = [-10, 20, 100]
230IDL> lat0 = [0, -10, 45]
231IDL> lon1 = [10, 60, 280]
232IDL> lat1 = [0, 10, 45]
233IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two)
234IDL> earthradius = 6378206.4d0
235IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees)
236IDL> print, reform(res[0, *])
237       10.000000       60.000000       280.00000
238IDL> print, reform(res[1, *])
239          1.1999280e-15       10.000000       45.000000
240</div>
241          <h3>Version history</h3>
242         
243         
244          <h4>History</h4><div class="value">
245       Based on the IDL function ll_arc_distance.pro,v 1.11 2003/02/03
246 Sebastien Masson (smasson@lodyc.jussieu.fr)
247                  August 2005</div>
248         
249         
250         
251         
252         
253         
254         
255       
256         
257         
258         
259         
260         
261         
262         
263       
264         
265       
266        </div>
267       
268      </div>
269
270     
271
272      <div id="tagline">Produced by IDLdoc 2.0.</div>
273
274    </div>
275
276  </body>
277</html>
Note: See TracBrowser for help on using the repository browser.