Changeset 231 for trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/velovect.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/velovect.pro
r163 r231 1 ; 2 ;+ 1 ;+ 3 2 ; 4 3 ; @file_comments 5 4 ; Produce a two-dimensional velocity field plot. 6 5 ; 7 ; A directed arrow is drawn at each point showing the direction and 6 ; A directed arrow is drawn at each point showing the direction and 8 7 ; magnitude of the field. 9 ; 8 ; 10 9 ; @categories 11 10 ; Plotting, two-dimensional. 12 11 ; 13 ;14 12 ; @param U {in}{required} 15 ; The X component of the two-dimensional field. 13 ; The X component of the two-dimensional field. 16 14 ; U must be a two-dimensional array. 17 15 ; 18 16 ; @param V {in}{required} 19 17 ; The Y component of the two dimensional field. Y must have 20 ; the same dimensions as X. The vector at point [i,j] has a 18 ; the same dimensions as X. The vector at point [i,j] has a 21 19 ; magnitude of: 22 20 ; … … 28 26 ; 29 27 ; @param X {in}{optional}{type=vector} 30 ; Optional abscissa values. X must be a vector with a length 28 ; Optional abscissa values. X must be a vector with a length 31 29 ; equal to the first dimension of U and V. 32 30 ; … … 39 37 ; 40 38 ; @keyword DOTS 41 ; Set this keyword to 1 to place a dot at each missing point. 39 ; Set this keyword to 1 to place a dot at each missing point. 42 40 ; Set this keyword to 0 or omit it to draw nothing for missing 43 41 ; points. Has effect only if MISSING is specified. … … 55 53 ; current graphics screen is not erased, no axes are drawn, and 56 54 ; the previously established scaling remains in effect. 57 ; 55 ; 58 56 ; @keyword CLIP 59 ; 57 ; 60 58 ; @keyword NOCLIP 61 59 ; 62 60 ; @keyword _EXTRA 63 ; Used to pass your keywords.61 ; Used to pass keywords 64 62 ; 65 ; @restrictions 63 ; @restrictions 66 64 ; Plotting on the selected device is performed. System 67 65 ; variables concerning plotting are changed. 68 66 ; Note: All other keywords are passed directly to the PLOT procedure 69 ; and may be used to set option such as TITLE, POSITION, 67 ; and may be used to set option such as TITLE, POSITION, 70 68 ; NOERASE, etc. 71 69 ; … … 83 81 ; June, 1995, MWR. Removed _EXTRA inheritance for PLOTS and changed 84 82 ; OPLOT to PLOTS. 85 ; September, 1996, GGS. Changed denominator of x_step and y_step vars. 83 ; September, 1996, GGS. Changed denominator of x_step and y_step vars. 86 84 ; February, 1998, DLD. Add support for CLIP and NO_CLIP keywords. 87 85 ; June, 1998, DLD. Add support for OVERPLOT keyword. … … 103 101 s = size(u) 104 102 t = size(v) 105 if s[0] ne 2 then begin 103 if s[0] ne 2 then begin 106 104 baduv: message, 'U and V parameters must be 2D and same size.' 107 105 endif … … 122 120 nbad = 0 ;# of missing points 123 121 if n_elements(missing) gt 0 then begin 124 good = where(mag lt missing) 122 good = where(mag lt missing) 125 123 if keyword_set(dots) then bad = where(mag ge missing, nbad) 126 124 endif else begin
Note: See TracChangeset
for help on using the changeset viewer.