source: trunk/SRC/Documentation/idldoc_assistant_output/Interpolation/map_npoints.html @ 402

Last change on this file since 402 was 402, checked in by smasson, 15 years ago

update documentation

File size: 7.9 KB
Line 
1
2
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4  <head>
5    <title>map_npoints.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="ll_narcs_distances.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="neighbor.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>map_npoints.pro</h2>
59
60    <dl>
61    </dl>
62
63   
64 Return the distance in meter between all np0 points P0 and all
65 np1 points P1 on a sphere. If keyword /TWO_BY_TWO is given then
66 returns the distances between number n of P0 points and number
67 n of P1 points (in that case, np0 and np1 must be equal).
68 Same as <a href="/Applications/itt/idl64/help/online_help/MAP_2POINTS.html">MAP_2POINTS</a> with the meter parameter but for n
69 points without do loop.
70
71
72   
73
74     
75      <a name="#_map_npoints"></a>
76
77      <h2>map_npoints  <font size="-1" color="#006633">
78 Maps
79</font></h2>
80
81      <p><font face="Courier"><i>result = </i>map_npoints(<i><a href="#_map_npoints_keyword_lon0">lon0</a>, <a href="#_map_npoints_keyword_lat0">lat0</a>, <a href="#_map_npoints_keyword_lon1">lon1</a>, <a href="#_map_npoints_keyword_lat1">lat1</a></i>, <a href="#_map_npoints_keyword_AZIMUTH">AZIMUTH</a>=<i>AZIMUTH</i>, <a href="#_map_npoints_keyword_RADIANS">RADIANS</a>=<i>RADIANS</i>, <a href="#_map_npoints_keyword_RADIUS">RADIUS</a>=<i>RADIUS</i>, <a href="#_map_npoints_keyword_MIDDLE">MIDDLE</a>=<i>MIDDLE</i>, <a href="#_map_npoints_keyword_TWO_BY_TWO">TWO_BY_TWO</a>=<i>TWO_BY_TWO</i>)</font></p>
82
83   
84
85
86    <h3>Return value</h3>
87 An (np0,np1) array giving the distance in meter between np0
88 points P0 and np1 points P1. Element (i,j) of the output is the
89 distance between element P0[i] and P1[j].
90 If keyword /TWO_BY_TWO is given then <a href="..//Interpolation/map_npoints.html">map_npoints</a> returns
91 an np-elements vector giving the distance in meter between P0[i]
92 and P1[i] (in that case, we have np0 = np1 = np) ; if /MIDDLE see this keyword.
93
94   
95    <h3>Parameters</h3>
96   
97
98    <a name="#_map_npoints_keyword_lon0"></a>
99    <h4>lon0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
100      <font size="-1" color="#006633">in</font>
101     
102     
103      <font size="-1" color="#006633">required</font>
104     
105     
106     
107     
108    </h4>
109
110   
111   
112
113    <a name="#_map_npoints_keyword_lat0"></a>
114    <h4>lat0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
115      <font size="-1" color="#006633">in</font>
116     
117     
118      <font size="-1" color="#006633">required</font>
119     
120     
121     
122     
123    </h4>
124
125   
126 np0 elements vector. longitudes and latitudes of np0 points P0
127
128   
129
130    <a name="#_map_npoints_keyword_lon1"></a>
131    <h4>lon1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
132      <font size="-1" color="#006633">in</font>
133     
134     
135      <font size="-1" color="#006633">required</font>
136     
137     
138     
139     
140    </h4>
141
142   
143   
144
145    <a name="#_map_npoints_keyword_lat1"></a>
146    <h4>lat1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
147      <font size="-1" color="#006633">in</font>
148     
149     
150      <font size="-1" color="#006633">required</font>
151     
152     
153     
154     
155    </h4>
156
157   
158 np1 elements vector. longitude and latitude of np1 points P1
159
160   
161   
162
163   
164    <h3>Keywords</h3>
165
166   
167    <a name="#_map_npoints_keyword_AZIMUTH"></a>
168    <h4>AZIMUTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
169     
170     
171     
172     
173     
174     
175     
176     
177    </h4>
178
179   
180 A named variable that will receive the azimuth of the great
181 circle connecting the two points, P0 to P1
182
183   
184    <a name="#_map_npoints_keyword_RADIANS"></a>
185    <h4>RADIANS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
186     
187     
188     
189     
190     
191     
192     
193     
194    </h4>
195
196   
197 if set, inputs and angular outputs are in radians, otherwise degrees.
198
199   
200    <a name="#_map_npoints_keyword_RADIUS"></a>
201    <h4>RADIUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
202     
203     
204     
205     
206     
207     
208      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>6378206.4d0</i></font>
209     
210    </h4>
211
212   
213 If given, return the distance between the two points calculated using the
214 given radius.
215 Default value is the Earth radius.
216
217   
218    <a name="#_map_npoints_keyword_MIDDLE"></a>
219    <h4>MIDDLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
220     
221     
222     
223     
224     
225     
226     
227     
228    </h4>
229
230   
231 to get the longitude/latitude of the middle point between P0 and P1.
232
233   
234    <a name="#_map_npoints_keyword_TWO_BY_TWO"></a>
235    <h4>TWO_BY_TWO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
236     
237     
238     
239     
240     
241     
242     
243     
244    </h4>
245
246   
247 If given, then <a href="..//Interpolation/map_npoints.html">map_npoints</a> returns the distances between
248 number n of P0 points and number n of P1 pointsi.
249 In that case, np0 and np1 must be equal.
250
251   
252   
253
254    <h3>Examples</h3><pre>
255   IDL> print, $
256   IDL> map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0])
257 7551369.3 5600334.8
258 12864354. 10921254.
259 14919237. 5455558.8
260
261   IDL> lon0 = [-10, 20, 100]
262   IDL> lat0 = [0, -10, 45]
263   IDL> lon1 = [10, 60, 280]
264   IDL> lat1 = [0, 10, 45]
265   IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi)
266   IDL> help, dist, azi
267 DIST DOUBLE = Array[3, 3]
268 AZI DOUBLE = Array[3, 3]
269   IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)]
270 2226414.0 4957944.5 10018863.
271 90.000000 64.494450 4.9615627e-15
272   IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO)
273   IDL> help, dist, azi
274 DIST DOUBLE = Array[3]
275 AZI DOUBLE = Array[3]
276   IDL> print, dist, azi
277 2226414.0 4957944.5 10018863.
278 90.000000 64.494450 4.9615627e-15
279   IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0])
280 20.000000 90.000000
281   IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi
282 20.000000
283 90.000000
284
285   IDL> lon0 = [-10, 20, 100]
286   IDL> lat0 = [0, -10, 45]
287   IDL> lon1 = [10, 60, 280]
288   IDL> lat1 = [0, 10, 45]
289   IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /MIDDLE, /TWO_BY_TWO)
290   IDL> print, reform(mid[0,*]), reform(mid[1,*])
291 0.0000000 40.000000 190.00000
292 0.0000000 -1.5902773e-15 90.000000
293   IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1]
294 0.0000000 0.0000000
295   IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1]
296 40.000000 -1.5902773e-15
297   IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1]
298 190.00000 90.000000
299
300    </pre><h3>Version history</h3>
301   
302    <h4>Version</h4>
303 $Id: map_npoints.pro 371 2008-08-07 09:32:02Z pinsard $
304
305    <h4>History</h4>
306 Based on the IDL function map_2points.pro,v 1.6 2001/01/15
307 Sebastien Masson (smasson@lodyc.jussieu.fr)
308 October 2003
309
310   
311
312   
313   
314   
315   
316   
317
318   
319   
320   
321   
322   
323   
324   
325
326    <font size="-3"><p>&nbsp;</p></font>
327    <hr size="1" color="#CCCCCC"/>
328     
329
330   
331
332    <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0.</font></p>
333
334  </body>
335</html>
Note: See TracBrowser for help on using the repository browser.