Changeset 101 for trunk/SRC/Interpolation/cutpar.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/cutpar.pro
r59 r101 1 1 ;+ 2 ; NAME: cutpar3 2 ; 4 ; PURPOSE:cut p parallelogram(s) into p*n^2 parallelograms3 ; @file_comments cut p parallelogram(s) into p*n^2 parallelograms 5 4 ; 6 ; CATEGORY:basic work5 ; @categories basic work 7 6 ; 8 ; CALLING SEQUENCE:res = cutpar(x0, y0, x1, y1, x2, y2, x3, y3, n) 7 ; @examples 8 ; res = cutpar(x0, y0, x1, y1, x2, y2, x3, y3, n) 9 9 ; 10 ; INPUTS: 11 ; x0,y0 1d arrays of p elements, giving the edge positions. The 10 ; @param x0,y0 {in}{required} 1d arrays of p elements, giving the edge positions. The 12 11 ; edges must be given as in plot to traw the parallelogram. (see 13 12 ; example). 14 ; n:each parallelogram will be cutted in n^2 pieces13 ; @param n {in}{required} each parallelogram will be cutted in n^2 pieces 15 14 ; 16 ; KEYWORD PARAMETERS:15 ; @keyword /endpoints see outputs 17 16 ; 18 ; /endpoints: see outputs 19 ; 20 ; /onsphere: to specify that the points are located on a 17 ; @keyword /onsphere to specify that the points are located on a 21 18 ; sphere. In this case, x and y corresponds to longitude and 22 19 ; latitude in degrees. 23 20 ; 24 ; OUTPUTS:21 ; @returns 25 22 ; -defaut: 3d array(2,n^2,p) giving the center position of each 26 23 ; piece of the parallelograms … … 28 25 ; of each piece of the parallelograms 29 26 ; 30 ; COMMON BLOCKS: no27 ; @uses cutsegment.pro 31 28 ; 32 ; SIDE EFFECTS: need cutsegment.pro 33 ; 34 ; RESTRICTIONS: ? 35 ; 36 ; EXAMPLE: 29 ; @examples 37 30 ; 38 31 ; x0 = [2,6,2] … … 50 43 ; for i=0,2 do oplot, [res[0,*,i]], [res[1,*,i]], color = 20+10*i, psym = 1, thick = 3 51 44 ; 52 ; MODIFICATION HISTORY:53 ; S. Masson (smasson @lodyc.jussieu.fr)45 ; @history 46 ; S. Masson (smasson\@lodyc.jussieu.fr) 54 47 ; July 5th, 2002 55 48 ;-
Note: See TracChangeset
for help on using the changeset viewer.