Ignore:
Timestamp:
06/27/06 17:47:06 (18 years ago)
Author:
pinsard
Message:

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

File:
1 edited

Legend:

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

    • Property svn:keywords set to Id
    r114 r118  
    88; res = cutpar(x0, y0, x1, y1, x2, y2, x3, y3, n) 
    99; 
    10 ;       @param x0,y0  {in}{required} 1d arrays of p elements, giving the edge positions. The 
     10; @param x0 {in}{required} 
     11; @param y0 {in}{required}  
     12; @param x1 {in}{required} 
     13; @param y1 {in}{required}  
     14; @param x2 {in}{required} 
     15; @param y2 {in}{required}  
     16; @param x3 {in}{required} 
     17; @param y3 {in}{required}  
     18; 1d arrays of p elements, giving the edge positions. The 
    1119;       edges must be given as in plot to traw the parallelogram. (see 
    1220;       example). 
    13 ;       @param n {in}{required} each parallelogram will be cutted in n^2 pieces 
    1421; 
    15 ; @keyword         /endpoints see outputs 
     22; @param n {in}{required} each parallelogram will be cutted in n^2 pieces 
    1623; 
    17 ; @keyword         /onsphere to specify that the points are located on a 
     24; @keyword /endpoints see outputs 
     25; 
     26; @keyword /onsphere to specify that the points are located on a 
    1827;         sphere. In this case, x and y corresponds to longitude and 
    1928;         latitude in degrees. 
    2029; 
    2130; @returns 
    22 ;        -defaut: 3d array(2,n^2,p) giving the center position of each 
     31;        - defaut: 3d array(2,n^2,p) giving the center position of each 
    2332;        piece of the parallelograms 
    24 ;        -/endpoints: 3d array(2,(n+1)^2,p) giving the edge positions 
     33;        - /endpoints: 3d array(2,(n+1)^2,p) giving the edge positions 
    2534;        of each piece of the parallelograms 
    2635; 
     
    2938; @examples  
    3039; 
    31 ; x0 = [2,6,2] 
    32 ; y0 = [0,2,6] 
    33 ; x1 = [3,8,4] 
    34 ; y1 = [4,4,6] 
    35 ; x2 = [1,6,4] 
    36 ; y2 = [5,6,8] 
    37 ; x3 = [0,4,2] 
    38 ; y3 = [1,4,8] 
    39 ; n = 4 
    40 ; splot, [0,10], [0,10], xstyle = 1, ystyle = 1,/nodata 
    41 ; for i=0,2 do oplot, [x0[i],x1[i],x2[i],x3[i],x0[i]],[y0[i],y1[i],y2[i],y3[i],y0[i]] 
    42 ; res=cutpar(x0, y0, x1, y1, x2, y2, x3, y3, n) 
    43 ; for i=0,2 do oplot, [res[0,*,i]], [res[1,*,i]], color = 20+10*i, psym = 1, thick = 3 
     40; IDL> x0 = [2,6,2] 
     41; IDL> y0 = [0,2,6] 
     42; IDL> x1 = [3,8,4] 
     43; IDL> y1 = [4,4,6] 
     44; IDL> x2 = [1,6,4] 
     45; IDL> y2 = [5,6,8] 
     46; IDL> x3 = [0,4,2] 
     47; IDL> y3 = [1,4,8] 
     48; IDL> n = 4 
     49; IDL> splot, [0,10], [0,10], xstyle = 1, ystyle = 1,/nodata 
     50; IDL> for i=0,2 do oplot, [x0[i],x1[i],x2[i],x3[i],x0[i]],[y0[i],y1[i],y2[i],y3[i],y0[i]] 
     51; IDL> res=cutpar(x0, y0, x1, y1, x2, y2, x3, y3, n) 
     52; IDL> for i=0,2 do oplot, [res[0,*,i]], [res[1,*,i]], color = 20+10*i, psym = 1, thick = 3 
    4453; 
    4554; @history 
    4655;           S. Masson (smasson\@lodyc.jussieu.fr) 
    4756;           July 5th, 2002 
     57; 
     58; @version $Id$ 
     59; 
    4860;- 
    4961FUNCTION cutpar, x0, y0, x1, y1, x2, y2, x3, y3, n, endpoints = endpoints, onsphere = onsphere 
Note: See TracChangeset for help on using the changeset viewer.