- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/map_npoints.html
r338 r402 277 277 278 278 <h3>Examples</h3><div class="preformat"> 279 IDL> print, $280 IDL> map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0])279 IDL> print, $ 280 IDL> map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0]) 281 281 7551369.3 5600334.8 282 282 12864354. 10921254. 283 283 14919237. 5455558.8 284 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> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi)290 IDL> help, dist, azi285 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> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi) 290 IDL> help, dist, azi 291 291 DIST DOUBLE = Array[3, 3] 292 292 AZI DOUBLE = Array[3, 3] 293 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)]293 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)] 294 294 2226414.0 4957944.5 10018863. 295 295 90.000000 64.494450 4.9615627e-15 296 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO)297 IDL> help, dist, azi296 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO) 297 IDL> help, dist, azi 298 298 DIST DOUBLE = Array[3] 299 299 AZI DOUBLE = Array[3] 300 IDL> print, dist, azi300 IDL> print, dist, azi 301 301 2226414.0 4957944.5 10018863. 302 302 90.000000 64.494450 4.9615627e-15 303 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0])303 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0]) 304 304 20.000000 90.000000 305 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi305 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi 306 306 20.000000 307 307 90.000000 308 308 309 IDL> lon0 = [-10, 20, 100]310 IDL> lat0 = [0, -10, 45]311 IDL> lon1 = [10, 60, 280]312 IDL> lat1 = [0, 10, 45]313 IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /MIDDLE, /TWO_BY_TWO)314 IDL> print, reform(mid[0,*]), reform(mid[1,*])309 IDL> lon0 = [-10, 20, 100] 310 IDL> lat0 = [0, -10, 45] 311 IDL> lon1 = [10, 60, 280] 312 IDL> lat1 = [0, 10, 45] 313 IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /MIDDLE, /TWO_BY_TWO) 314 IDL> print, reform(mid[0,*]), reform(mid[1,*]) 315 315 0.0000000 40.000000 190.00000 316 316 0.0000000 -1.5902773e-15 90.000000 317 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1]317 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1] 318 318 0.0000000 0.0000000 319 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1]319 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1] 320 320 40.000000 -1.5902773e-15 321 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1]321 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1] 322 322 190.00000 90.000000 323 323 </div> … … 325 325 326 326 <h4>Version</h4><div class="preformat"> 327 $Id: map_npoints.pro 3 27 2007-12-13 16:22:35Z pinsard $327 $Id: map_npoints.pro 371 2008-08-07 09:32:02Z pinsard $ 328 328 </div> 329 329 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.