Changeset 231 for trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltsc.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltsc.pro
r163 r231 2 2 ; @file_comments 3 3 ; 4 ;5 4 ; @categories 6 ;7 5 ; 8 6 ; @param TAB1 9 7 ; 10 ;11 8 ; @param TAB2 12 ;13 9 ; 14 10 ; @param MIN1 15 11 ; 16 ;17 12 ; @param MAX1 18 ;19 13 ; 20 14 ; @param MIN2 21 15 ; 22 ;23 16 ; @param MAX2 24 ;25 17 ; 26 18 ; @param VARNAME2 27 19 ; 28 ;29 20 ; @keyword BOXZOOM 30 ; Vector indicating the geographic zone on which we want to cut the map. 21 ; Vector indicating the geographic zone on which we want to cut the map. 31 22 ; If BOXZOOM has : 32 23 ; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] … … 38 29 ; @keyword COL1D 39 30 ; 40 ;41 31 ; @keyword STY1D 42 ;43 32 ; 44 33 ; @keyword OV1D 45 34 ; 46 ;47 35 ; @keyword _EXTRA 48 ; Used to pass yourkeywords36 ; Used to pass keywords 49 37 ; 50 38 ; @returns 51 39 ; 52 ;53 40 ; @uses 54 ;55 41 ; 56 42 ; @restrictions 57 43 ; 58 ;59 44 ; @examples 60 45 ; 61 ;62 46 ; @history 63 ;64 47 ; 65 48 ; @version … … 74 57 ; scatter plot (inspired from plt1d) 75 58 ; 76 ;77 59 compile_opt idl2, strictarrsubs 78 60 ; 79 80 ;---------------------------------------------------------81 ; include common82 61 @cm_4mesh 83 62 @cm_4data … … 86 65 @updatekwd 87 66 ENDIF 88 ;--------------------------------------------------------------89 67 90 68 ; Comment: We do not reinitializate when we call back pltsc … … 92 70 ;; reduce data xyzt domain 93 71 94 if keyword_set(boxzoom) then BEGIN 72 if keyword_set(boxzoom) then BEGIN 95 73 Case 1 Of 96 74 N_Elements(Boxzoom) Eq 1:bte = [lon1, lon2, lat1, lat2, 0., boxzoom[0]] … … 100 78 N_Elements(Boxzoom) Eq 6:bte = Boxzoom 101 79 Else: Begin 102 ras = report('Wrong Definition of Boxzoom') 80 ras = report('Wrong Definition of Boxzoom') 103 81 return 104 82 End … … 122 100 IF finite(min2) EQ 0 THEN min2 = min(tab2) 123 101 IF finite(max2) EQ 0 THEN max2 = max(tab2) 124 102 125 103 126 104 ; init plot if not overlay 127 105 128 106 IF NOT keyword_set(ov1d) THEN placedessin, 'yfx', posfenetre, posbar, $ 129 107 contour = contour, _extra = ex … … 137 115 IF (NOT keyword_set(sty1d)) THEN sty1d = 0 138 116 IF (NOT keyword_set(col1d)) THEN col1d = 0 139 IF NOT keyword_set(ov1d) THEN BEGIN 140 legende, min1, max1, 'yfx', VARNAME2 = varname2, NPTS = npts, _EXTRA = ex 117 IF NOT keyword_set(ov1d) THEN BEGIN 118 legende, min1, max1, 'yfx', VARNAME2 = varname2, NPTS = npts, _EXTRA = ex 141 119 ; 142 120 plot,xx,yy, background = 255, psym = sty1d+1, color=col1d, thick=2 $ 143 121 , title = '', subtitle = '',_extra = ex 144 122 145 if n_elements(ex) NE 0 then BEGIN 123 if n_elements(ex) NE 0 then BEGIN 146 124 ; To have a 0 colored frame and trace a line at y=0 147 125 if (where(tag_names(ex) EQ 'COLOR'))[0] NE -1 then ex.COLOR = 0 … … 162 140 ;------------------------------------------------------------ 163 141 if n_elements(key_performance) NE 0 then $ 164 IF key_performance EQ 1 THEN print, 'temps plt1d', systime(1)-tempsun 142 IF key_performance EQ 1 THEN print, 'temps plt1d', systime(1)-tempsun 165 143 ;------------------------------------------------------------ 166 144 ;------------------------------------------------------------ … … 168 146 return 169 147 end 170 171
Note: See TracChangeset
for help on using the changeset viewer.