- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/Interpolation/map_npoints.html
r338 r402 253 253 254 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])255 IDL> print, $ 256 IDL> map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0]) 257 257 7551369.3 5600334.8 258 258 12864354. 10921254. 259 259 14919237. 5455558.8 260 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, azi261 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 267 DIST DOUBLE = Array[3, 3] 268 268 AZI DOUBLE = Array[3, 3] 269 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)]269 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)] 270 270 2226414.0 4957944.5 10018863. 271 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, azi272 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, AZIMUTH = azi, /TWO_BY_TWO) 273 IDL> help, dist, azi 274 274 DIST DOUBLE = Array[3] 275 275 AZI DOUBLE = Array[3] 276 IDL> print, dist, azi276 IDL> print, dist, azi 277 277 2226414.0 4957944.5 10018863. 278 278 90.000000 64.494450 4.9615627e-15 279 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0])279 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0]) 280 280 20.000000 90.000000 281 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi281 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], AZIMUTH=azi)/6378206.4d0 / !dtor, azi 282 282 20.000000 283 283 90.000000 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> mid = map_npoints(lon0, lat0, lon1, lat1, /MIDDLE, /TWO_BY_TWO)290 IDL> print, reform(mid[0,*]), reform(mid[1,*])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 291 0.0000000 40.000000 190.00000 292 292 0.0000000 -1.5902773e-15 90.000000 293 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1]293 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1] 294 294 0.0000000 0.0000000 295 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1]295 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1] 296 296 40.000000 -1.5902773e-15 297 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1]297 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1] 298 298 190.00000 90.000000 299 299 … … 301 301 302 302 <h4>Version</h4> 303 $Id: map_npoints.pro 3 27 2007-12-13 16:22:35Z pinsard $303 $Id: map_npoints.pro 371 2008-08-07 09:32:02Z pinsard $ 304 304 305 305 <h4>History</h4>
Note: See TracChangeset
for help on using the changeset viewer.