source: trunk/SRC/Documentation/idldoc_html_output/Interpolation/map_npoints.html @ 191

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

remove format=raw in all html files 2+ : correction for all_plots; suppression of css and correction of Source links in idldoc html output

File size: 9.1 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>map_npoints.pro (SAXO 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="map_npoints.pro (SAXO Documentation)";
19      }
20    </script>
21  </head>
22
23  <body onload="setTitle();">
24
25    <div id="navbar_title">
26  <h1>SAXO 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" title="Overview of library">Overview</a></td>
36     
37
38     
39      <td >Directory</td>
40     
41
42     
43      <td><a href="./../idldoc-categories.html" title="Browse library by category">Categories</a></td>
44     
45
46     
47      <td><a href="./../idldoc-index.html" title="Index of files, routines, and parameters">Index</a></td>
48     
49
50     
51      <td><a href="./../search-page.html" title="Search library">Search</a></td>
52     
53
54      <td id="selected">File</td>
55
56     
57      <td><a href="../../../Interpolation//map_npoints.pro" title="Source code of a file">Source</a></td>
58     
59
60     
61      <td><a href="./../idldoc-help.html" 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="ll_narcs_distances.html">&lt;&lt;prev file</a> | <a href="neighbor.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="map_npoints.html" target="_TOP">view single page</a> | <a href="./../index.html" 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">Interpolation/</a></h1>
82      <h2 class="pro_file">map_npoints.pro</h2>
83
84      <div id="file_attr">
85        <dl>
86        </dl>
87      </div>
88
89      <div id="file_comments">
90 Return the distance in meter between all np0 points P0 and all
91 np1 points P1 on a sphere. If keyword /TWO_BY_TWO is given then
92 returns the distances between number n of P0 points and number
93 n of P1 points (in that case, np0 and np1 must be equal).
94 Same as map_2points with the meter parameter but for n points
95 without do loop.
96</div>
97
98     
99
100     
101
102     
103
104     
105
106      <div id="routine_details">
107       
108
109        <div class="routine_details" id="_map_npoints">
110
111          <h2><a class="top" href="#container">top</a>map_npoints <span class="categories"> Maps
112</span></h2>
113       
114          <p class="header">
115            <span class="result">result = </span>map_npoints(<span class="result"><a href="#_map_npoints_param_lon0">lon0</a>, <a href="#_map_npoints_param_lat0">lat0</a>, <a href="#_map_npoints_param_lon1">lon1</a>, <a href="#_map_npoints_param_lat1">lat1</a></span>, <a href="#_map_npoints_keyword_AZIMUTH">AZIMUTH</a>=<span class="result">AZIMUTH</span>, <a href="#_map_npoints_keyword_RADIANS">RADIANS</a>=<span class="result">RADIANS</span>, <a href="#_map_npoints_keyword_RADIUS">RADIUS</a>=<span class="result">RADIUS</span>, <a href="#_map_npoints_keyword_MIDDLE">MIDDLE</a>=<span class="result">MIDDLE</span>, <a href="#_map_npoints_keyword_TWO_BY_TWO">TWO_BY_TWO</a>=<span class="result">TWO_BY_TWO</span>)</p>
116       
117          <div class="comments">
118</div>
119
120          <h3>Return value</h3><div class="preformat">
121 An (np0,np1) array giving the distance in meter between np0
122 points P0 and np1 points P1. Element (i,j) of the output is the
123 distance between element P0[i] and P1[j].
124 If keyword /TWO_BY_TWO is given then Map_nPoints returns
125 an np-element vector giving the distance in meter between P0[i]
126 and P1[i] (in that case, we have np0 = np1 = np) ; if /MIDDLE see this keyword.</div>
127
128         
129            <h3>Parameters</h3>
130       
131           
132            <h4 id="_map_npoints_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"></div>
144           
145            <h4 id="_map_npoints_param_lat0">lat0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
146              <span class="attr">in</span>
147             
148             
149              <span class="attr">required</span>
150             
151             
152             
153             
154            </h4>
155       
156          <div class="comments">
157 np0 elements vector. longitudes and latitudes of np0 points P0
158</div>
159           
160            <h4 id="_map_npoints_param_lon1">lon1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
161              <span class="attr">in</span>
162             
163             
164              <span class="attr">required</span>
165             
166             
167             
168             
169            </h4>
170       
171          <div class="comments"></div>
172           
173            <h4 id="_map_npoints_param_lat1">lat1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
174              <span class="attr">in</span>
175             
176             
177              <span class="attr">required</span>
178             
179             
180             
181             
182            </h4>
183       
184          <div class="comments">
185 np1 elements vector. longitude and latitude of np1 points P1
186</div>
187           
188
189         
190
191         
192
193            <h3>Keywords</h3>
194           
195            <h4 id="_map_npoints_keyword_AZIMUTH">AZIMUTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
196             
197             
198             
199             
200             
201             
202             
203             
204            </h4>
205       
206            <div class="comments">
207 A named variable that will receive the azimuth of the great
208 circle connecting the two points, P0 to P1
209</div>
210           
211            <h4 id="_map_npoints_keyword_RADIANS">RADIANS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
212             
213             
214             
215             
216             
217             
218             
219             
220            </h4>
221       
222            <div class="comments">
223 if set, inputs and angular outputs are in radians, otherwise degrees.
224</div>
225           
226            <h4 id="_map_npoints_keyword_RADIUS">RADIUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
227             
228             
229             
230             
231             
232             
233              <span class="attr">default:</span> <span class="value">6378206.4d0</span>
234             
235            </h4>
236       
237            <div class="comments">
238 If given, return the distance between the two points calculated using the
239 given radius.
240 Default value is the Earth radius.
241</div>
242           
243            <h4 id="_map_npoints_keyword_MIDDLE">MIDDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
244             
245             
246             
247             
248             
249             
250             
251             
252            </h4>
253       
254            <div class="comments">
255 to get the longitude/latitude of the middle point between P0 and P1.
256</div>
257           
258            <h4 id="_map_npoints_keyword_TWO_BY_TWO">TWO_BY_TWO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
259             
260             
261             
262             
263             
264             
265             
266             
267            </h4>
268       
269            <div class="comments">
270 If given,then Map_nPoints returns the distances between number n of
271 P0 points and number n of P1 points
272 In that case, np0 and np1 must be equal.
273</div>
274           
275         
276
277          <h3>Examples</h3><div class="preformat">
278 IDL> print, $
279 IDL> map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0])
280 7551369.3 5600334.8
281 12864354. 10921254.
282 14919237. 5455558.8
283
284 IDL> lon0 = [-10, 20, 100]
285 IDL> lat0 = [0, -10, 45]
286 IDL> lon1 = [10, 60, 280]
287 IDL> lat1 = [0, 10, 45]
288 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi)
289 IDL> help, dist, azi
290 DIST DOUBLE = Array[3, 3]
291 AZI DOUBLE = Array[3, 3]
292 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)]
293 2226414.0 4957944.5 10018863.
294 90.000000 64.494450 4.9615627e-15
295 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO)
296 IDL> help, dist, azi
297 DIST DOUBLE = Array[3]
298 AZI DOUBLE = Array[3]
299 IDL> print, dist, azi
300 2226414.0 4957944.5 10018863.
301 90.000000 64.494450 4.9615627e-15
302 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0])
303 20.000000 90.000000
304 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi
305 20.000000
306 90.000000
307
308 IDL> lon0 = [-10, 20, 100]
309 IDL> lat0 = [0, -10, 45]
310 IDL> lon1 = [10, 60, 280]
311 IDL> lat1 = [0, 10, 45]
312 IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /MIDDLE, /TWO_BY_TWO)
313 IDL> print, reform(mid[0,*]), reform(mid[1,*])
314 0.0000000 40.000000 190.00000
315 0.0000000 -1.5902773e-15 90.000000
316 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1]
317 0.0000000 0.0000000
318 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1]
319 40.000000 -1.5902773e-15
320 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1]
321 190.00000 90.000000
322</div>
323          <h3>Version history</h3>
324         
325          <h4>Version</h4><div class="preformat"> $Id: map_npoints.pro 163 2006-08-29 12:59:46Z navarro $
326</div>
327          <h4>History</h4><div class="preformat">
328 Based on the IDL function map_2points.pro,v 1.6 2001/01/15
329 Sebastien Masson (smasson@lodyc.jussieu.fr)
330 October 2003
331</div>
332         
333         
334         
335         
336         
337         
338         
339       
340         
341         
342         
343         
344         
345         
346         
347       
348          <h3>Statistics</h3>
349          <table class="statistics">
350            <tr><td>McCabe cyclic</td><td>          16</td></tr>
351            <tr><td>McCabe essential</td><td>           1</td></tr>
352            <tr><td>McCabe modular design</td><td>           1</td></tr>
353          </table>
354         
355       
356        </div>
357       
358      </div>
359
360     
361
362      <div id="tagline">Produced by IDLdoc 2.0.</div>
363
364    </div>
365
366  </body>
367</html>
Note: See TracBrowser for help on using the repository browser.