Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_html_output/Interpolation/map_npoints.html

    r338 r402  
    277277 
    278278          <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]) 
    281281 7551369.3 5600334.8 
    282282 12864354. 10921254. 
    283283 14919237. 5455558.8 
    284284 
    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, azi 
     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, azi 
    291291 DIST DOUBLE = Array[3, 3] 
    292292 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)] 
    294294 2226414.0 4957944.5 10018863. 
    295295 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, azi 
     296   IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO) 
     297   IDL> help, dist, azi 
    298298 DIST DOUBLE = Array[3] 
    299299 AZI DOUBLE = Array[3] 
    300  IDL> print, dist, azi 
     300   IDL> print, dist, azi 
    301301 2226414.0 4957944.5 10018863. 
    302302 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]) 
    304304 20.000000 90.000000 
    305  IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi 
     305   IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi 
    306306 20.000000 
    307307 90.000000 
    308308 
    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,*]) 
    315315 0.0000000 40.000000 190.00000 
    316316 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] 
    318318 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] 
    320320 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] 
    322322 190.00000 90.000000 
    323323</div> 
     
    325325           
    326326          <h4>Version</h4><div class="preformat"> 
    327  $Id: map_npoints.pro 327 2007-12-13 16:22:35Z pinsard $ 
     327 $Id: map_npoints.pro 371 2008-08-07 09:32:02Z pinsard $ 
    328328</div> 
    329329          <h4>History</h4><div class="preformat"> 
Note: See TracChangeset for help on using the changeset viewer.