Changeset 371 for trunk/SRC/Interpolation/ll_narcs_distances.pro
- Timestamp:
- 08/07/08 11:32:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/ll_narcs_distances.pro
r327 r371 40 40 ; 41 41 ; @examples 42 ; IDL> Lon_lat0 = [1.0, 2.0]; Initial point specified in radians 43 ; IDL> Arc_Dist = 2.0; Arc distance in radians 44 ; IDL> Az = 1.0; Azimuth in radians 45 ; IDL> Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) 46 ; IDL> PRINT, Result 42 ; 43 ; IDL> Lon_lat0 = [1.0, 2.0]; Initial point specified in radians 44 ; IDL> Arc_Dist = 2.0; Arc distance in radians 45 ; IDL> Az = 1.0; Azimuth in radians 46 ; IDL> Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) 47 ; IDL> PRINT, Result 47 48 ; 2.91415 -0.622234 48 49 ; 49 ; IDL> lon0 = [-10, 20, 100]50 ; IDL> lat0 = [0, -10, 45]51 ; IDL> lon1 = [10, 60, 280]52 ; IDL> lat1 = [0, 10, 45]53 ; IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two)54 ; IDL> earthradius = 6378206.4d055 ; IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees)56 ; IDL> print, reform(res[0, *])50 ; IDL> lon0 = [-10, 20, 100] 51 ; IDL> lat0 = [0, -10, 45] 52 ; IDL> lon1 = [10, 60, 280] 53 ; IDL> lat1 = [0, 10, 45] 54 ; IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) 55 ; IDL> earthradius = 6378206.4d0 56 ; IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees) 57 ; IDL> print, reform(res[0, *]) 57 58 ; 10.000000 60.000000 280.00000 58 ; IDL> print, reform(res[1, *])59 ; IDL> print, reform(res[1, *]) 59 60 ; 1.1999280e-15 10.000000 45.000000 60 61 ;
Note: See TracChangeset
for help on using the changeset viewer.