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/inquad.pro

    r59 r101  
    11;+ 
    2 ; NAME:inquad 
    3 ; 
    4 ; PURPOSE: to find if an (x,y) point is in a quadrilateral (x1,x2,x3,x4) 
    5 ; 
    6 ; CATEGORY:grid manipulation 
    7 ; 
    8 ; CALLING SEQUENCE: 
     2; @file_comments to find if an (x,y) point is in a quadrilateral (x1,x2,x3,x4) 
     3; 
     4; @categories grid manipulation 
     5; 
     6; @examples  
    97; 
    108;     res = inquad(x, y, x1, y1, x2, y2, x3, y3, x4, y4) 
    119; 
    12 ; INPUTS: 
    13 ; 
    14 ;     x,y: the coordinates of the point we want to know where it 
     10;     @param x y {in}{required}  the coordinates of the point we want to know where it 
    1511;     is. Must be a scalar if /onsphere activated else can be scalar 
    1612;     or array.  
    1713; 
    18 ;     x1, y1, x2, y2, x3, y3, x4, y4: the coordinates of the 
     14;     @param x1 y1 x2 y2 x3 y3 x4 y4 {in}{required} the coordinates of the 
    1915;     quadrilateral given in the CLOCKWISE order. Scalar or array. 
    2016; 
    21 ; KEYWORD PARAMETERS: 
    22 ; 
    23 ;    /DOUBLE: use double precision to perform the computation  
    24 ; 
    25 ;    /ONSPHERE: to specify that the quadilateral are on a sphere and 
     17; 
     18; @keyword    /DOUBLE use double precision to perform the computation  
     19; 
     20; @keyword    /ONSPHERE to specify that the quadilateral are on a sphere and 
    2621;    that teir coordinates are longitude-latitude coordinates. In this 
    2722;    case, est-west periodicity, poles singularity and other pbs 
     
    2924;    automatically.  
    3025; 
    31 ;    ZOOMRADIUS:the zoom (circle centred on the (x,y) with a radius of 
     26; @keyword    ZOOMRADIUS :the zoom (circle centred on the (x,y) with a radius of 
    3227;    zoomradius degree where we look for the the quadrilateral which;    contains the (x,y) point) used for the satellite projection 
    3328;    when /onsphere is activated. Default is 4 and seems to be the 
     
    3530;    larger than 5 degrees. 
    3631;    
    37 ;    /NOPRINT: to suppress the print messages. 
    38 ; 
    39 ; OUTPUTS: 
    40 ; 
    41 ;    res, a n element vector. Where n is the number of elements of 
     32; @keyword    /NOPRINT to suppress the print messages. 
     33; 
     34; @returns 
     35;    a n element vector. Where n is the number of elements of 
    4236;    x. res[i]=j means that the point number i is located in the 
    4337;    quadrilateral number j with (0 <= j <= n_elements(x0)-1) 
    4438; 
    45 ; COMMON BLOCKS:none 
    46 ; 
    47 ; SIDE EFFECTS: 
    48 ; 
    49 ; RESTRICTIONS: I think degenerated quadrilateral (e.g. flat of 
     39; @restrictions I think degenerated quadrilateral (e.g. flat of 
    5040; twisted) is not work. This has to be tested. 
    5141; 
    52 ; EXAMPLE: 
     42; @examples  
    5343; 
    5444;       x = 1.*[1, 2, 6, 7, 3] 
     
    6959;      On a sphere see clickincell.pro... 
    7060; 
    71 ; MODIFICATION HISTORY: 
    72 ;      Sebastien Masson (smasson@lodyc.jussieu.fr) 
     61; @history 
     62;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    7363;      August 2003 
    7464;      Based on Convert_clic_ij.pro written by Gurvan Madec  
     
    192182; the point is inside the quadilateral if test eq 1 
    193183; with test equal to: 
    194 ;     test = ((x-x1)*(y2-y1) GE (x2-x1)*(y-y1)) $        
     184;     test = ((x-x1)*(y2-y1) GE (x2-x1)*(y-y1)) $ 
    195185;       *((x-x2)*(y3-y2) GT (x3-x2)*(y-y2)) $ 
    196186;       *((x-x3)*(y4-y3) GT (x4-x3)*(y-y3)) $ 
Note: See TracChangeset for help on using the changeset viewer.