Ignore:
Timestamp:
06/12/06 10:29:56 (18 years ago)
Author:
pinsard
Message:

start to modify headers of Interpolation *.pro files for better idldoc output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Interpolation/ll_narcs_distances.pro

    r59 r101  
    11;+ 
    2 ; NAME: 
    3 ;       LL_NARCS_DISTANCES 
    42; 
    5 ; PURPOSE: 
    6 ;       This function returns the longitude and latitude [lon, lat] of 
    7 ;       a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az), 
    8 ;       from a specified location Lon0, lat0. 
     3; @file_comments 
     4; This function returns the longitude and latitude [lon, lat] of 
     5;a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az), 
     6;from a specified location Lon0, lat0. 
    97;       Same as LL_ARC_DISTANCE but for n points without do loop. 
    108; 
    11 ; CATEGORY: 
    12 ;       Mapping, geography. 
     9; @categories Mapping, geography 
    1310; 
    14 ; CALLING SEQUENCE: 
    15 ;       Result = LL_NARCS_DISTANCES(Lon, lat0, Arc_Dist, Az) 
     11; @examples  
     12;Result = LL_NARCS_DISTANCES(Lon, lat0, Arc_Dist, Az) 
    1613; 
    17 ; INPUTS: 
    18 ;       Lon0: An array containing the longitude of the starting point. 
     14;    @param Lon0 {in}{required}  An array containing the longitude of the starting point. 
    1915;             Values are assumed to be in radians unless the keyword 
    2016;             DEGREES is set. 
    21 ;       Lat0: An array containing the latitude of the starting point. 
     17;    @param Lat0 {in}{required} An array containing the latitude of the starting point. 
    2218;             Values are assumed to be in radians unless the keyword 
    2319;             DEGREES is set. 
    24 ;       Arc_Dist: The arc distance from Lon_lat0. The value must be between 
    25 ;                -!PI and +!PI. To express distances in arc units, divide 
    26 ;                 by the radius of the globe expressed in the original units. 
    27 ;                 For example, if the radius of the earth is 6371 km, divide 
    28 ;                 the distance in km by 6371 to obtain the arc distance.     
    29 ;       Az:       The azimuth from Lon_lat0. The value is assumed to be in 
    30 ;                 radians unless the keyword DEGREES is set. 
     20;    @param Arc_Dist {in}{required} The arc distance from Lon_lat0. The value must be between 
     21; -!PI and +!PI. To express distances in arc units, divide 
     22;  by the radius of the globe expressed in the original units. 
     23;  For example, if the radius of the earth is 6371 km, divide 
     24;  the distance in km by 6371 to obtain the arc distance.     
     25;    @param Az {in}{required}   The azimuth from Lon_lat0. The value is assumed to be in 
     26;  radians unless the keyword DEGREES is set. 
    3127; 
    32 ; KEYWORD PARAMETERS: 
    33 ;       DEGREES:  Set this keyword to express all measurements and 
    34 ;                 results in degrees. 
     28; @keyword    DEGREES  Set this keyword to express all measurements and 
     29;  results in degrees. 
    3530; 
    36 ; OUTPUTS: 
    37 ;       This function returns a (2, n) array containing the  
     31; @returns 
     32; a (2, n) array containing the  
    3833;       longitude / latitude of the resultings points. Values are in radians 
    3934;       unless the keyword DEGREES is set. 
    4035; 
    41 ; PROCEDURE: 
    42 ;       Formula from Map Projections - a working manual.  USGS paper 
    43 ;       1395.  Equations (5-5) and (5-6). 
     36; @file_comments 
     37;Formula from Map Projections - a working manual.  USGS paper 
     38;1395.  Equations (5-5) and (5-6). 
    4439; 
    45 ; EXAMPLE: 
    46 ;       Lon_lat0 = [1.0, 2.0]           ; Initial point specified in radians     
    47 ;       Arc_Dist = 2.0                  ; Arc distance in radians 
    48 ;       Az = 1.0                        ; Azimuth in radians 
    49 ;       Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) 
    50 ;       PRINT, Result 
    51 ;         2.91415    -0.622234 
     40; @examples  
     41;Lon_lat0 = [1.0, 2.0]; Initial point specified in radians 
     42;Arc_Dist = 2.0; Arc distance in radians 
     43;Az = 1.0; Azimuth in radians 
     44;Result = LL_ARC_DISTANCE(Lon_lat0, Arc_Dist, Az) 
     45;PRINT, Result 
     46;       2.91415    -0.622234 
    5247; 
    53 ;       IDL> lon0 = [-10, 20, 100] 
    54 ;       IDL> lat0 = [0, -10, 45] 
    55 ;       IDL> lon1 = [10, 60, 280] 
    56 ;       IDL> lat1 = [0, 10, 45] 
    57 ;       IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) 
    58 ;       IDL> earthradius = 6378206.4d0 
    59 ;       IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees) 
    60 ;       IDL> print, reform(res[0, *]) 
    61 ;              10.000000       60.000000       280.00000 
    62 ;       IDL> print, reform(res[1, *]) 
     48;IDL> lon0 = [-10, 20, 100] 
     49;IDL> lat0 = [0, -10, 45] 
     50;IDL> lon1 = [10, 60, 280] 
     51;IDL> lat1 = [0, 10, 45] 
     52;IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) 
     53;IDL> earthradius = 6378206.4d0 
     54;IDL> res = ll_narcs_distances(lon0, lat0, dist/earthradius, azi, /degrees) 
     55;IDL> print, reform(res[0, *]) 
     56;       10.000000       60.000000       280.00000 
     57;IDL> print, reform(res[1, *]) 
    6358;          1.1999280e-15       10.000000       45.000000 
    6459; 
    65 ; MODIFICATION HISTORY: 
     60; @history 
    6661;       Based on the IDL function ll_arc_distance.pro,v 1.11 2003/02/03 
    67 ;       Sebastien Masson (smasson@lodyc.jussieu.fr) 
     62; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    6863;                  August 2005 
    6964;- 
    7065 
    71 ; Return the [lon, lat] of the point a given arc distance  
    72 ;       (-pi <= arc_dist <= pi), 
     66;+ 
     67; @file_comments Return the [lon, lat] of the point a given arc distance  
     68;(-pi <= arc_dist <= pi), 
    7369; and azimuth (az), from lon_lat0. 
     70;- 
    7471; 
    7572FUNCTION LL_NARCS_DISTANCES, lon0, lat0, arc_dist, az, DEGREES = degs 
Note: See TracChangeset for help on using the changeset viewer.