Changeset 101 for trunk/SRC/Interpolation/cutsegment.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/cutsegment.pro
r59 r101 1 1 ;+ 2 ; NAME: cutsegment3 2 ; 4 ; PURPOSE:cut p segments into p*n equal parts3 ; @file_comments cut p segments into p*n equal parts 5 4 ; 6 ; CATEGORY:basic work5 ; @categories basic work 7 6 ; 8 ; CALLING SEQUENCE: res = cutsegment(x0, y0, x1, y1, n) 7 ; @examples 8 ; res = cutsegment(x0, y0, x1, y1, n) 9 9 ; 10 ; INPUTS: 11 ; x0,y0 and x1,y1, 1d arrays of p elements, the coordinates of 10 ; @param x0,y0 and x1,y1 {in}{required} 1d arrays of p elements, the coordinates of 12 11 ; the endpoints of the p segmements 13 ; n:the number of pieces we want to cut each segment12 ; @param n {in}{required} the number of pieces we want to cut each segment 14 13 ; 15 ; KEYWORD PARAMETERS:16 14 ; 17 ; /endpoints:see ouputs15 ; @keyword /endpoints see ouputs 18 16 ; 19 ; /onsphere:to specify that the points are located on a17 ; @keyword /onsphere to specify that the points are located on a 20 18 ; sphere. In this case, x and y corresponds to longitude and 21 19 ; latitude in degrees. 22 20 ; 23 ; OUTPUTS:21 ; @returns 24 22 ; defaut: a 3d array (2,n,p) that gives the coordinates of the 25 23 ; middle of the cutted segments. … … 27 25 ; coordinates of the endpoints of the cutted segments. 28 26 ; 29 ; COMMON BLOCKS: no 30 ; 31 ; SIDE EFFECTS: no 32 ; 33 ; RESTRICTIONS: ? 34 ; 35 ; EXAMPLE: 27 ; @examples 36 28 ; 37 29 ; IDL> x0=[2,5] … … 46 38 ; IDL> oplot, [res[0,*,1]], [res[1,*,1]], color = 40, psym = 1, thick = 3 47 39 ; 48 ; MODIFICATION HISTORY:49 ; S. Masson (smasson @lodyc.jussieu.fr)40 ; @history 41 ; S. Masson (smasson\@lodyc.jussieu.fr) 50 42 ; July 5th, 2002 51 43 ;-
Note: See TracChangeset
for help on using the changeset viewer.