Changeset 114 for trunk/SRC/ToBeReviewed/PLOTS
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/PLOTS
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/bar_plot.pro
r97 r114 131 131 outline=outline,overplot=overplot,background=background, $ 132 132 rotate=rotate, _EXTRA = ex 133 ; 134 compile_opt idl2, strictarrsubs 135 ; 133 136 if (n_params(d) eq 0) then begin ;Print call & return if no parameters 134 137 print,'bar_test,values,baselines=baselines,colors=colors,barnames=barnames,$' -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/plt.pro
r67 r114 304 304 ;--------------------------------------------------------- 305 305 ; include common 306 ; 307 compile_opt idl2, strictarrsubs 308 ; 306 309 @cm_4mesh 307 310 @cm_4data -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/plt1d.pro
r74 r114 160 160 ;--------------------------------------------------------- 161 161 ; include common 162 ; 163 compile_opt idl2, strictarrsubs 164 ; 162 165 @cm_4mesh 163 166 @cm_4data … … 239 242 notanum = where(finite(z1d) EQ 0) 240 243 z1d[notanum] = 0 241 mask (where(z1d LT valmask/10))= 1244 mask[where(z1d LT valmask/10)] = 1 242 245 z1d[notanum] = !values.f_nan 243 ENDIF ELSE mask (where(z1d LT valmask/10))= 1246 ENDIF ELSE mask[where(z1d LT valmask/10)] = 1 244 247 ;----------------------------------------------------------------------------- 245 248 ; determination du min et du max apres la moyenne -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltbase.pro
r67 r114 135 135 , _EXTRA = ex 136 136 ;--------------------------------------------------------- 137 ; 138 compile_opt idl2, strictarrsubs 139 ; 137 140 @cm_4mesh 138 141 IF NOT keyword_set(key_forgetold) THEN BEGIN … … 215 218 ; ds le cas on unsur2 est active on reduit levels 216 219 if NOT keyword_set(nocontour) then begin 217 IF keyword_set(unsur2) THEN levels = levels (where(zeroun(n_elements(levels) ) eq 1))220 IF keyword_set(unsur2) THEN levels = levels[where(zeroun(n_elements(levels) ) eq 1)] 218 221 ; unlabsur est active? C_LABEL est passe via _EXTRA? 219 222 if keyword_set(unlabsur) THEN IF chkstru(ex, 'C_LABELS') THEN $ -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltsc.pro
r35 r114 3 3 ; 4 4 ; scatter plot (inspired from plt1d) 5 ; 6 ; 7 compile_opt idl2, strictarrsubs 5 8 ; 6 9 -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltt.pro
r74 r114 306 306 ;--------------------------------------------------------- 307 307 ; include common 308 ; 309 compile_opt idl2, strictarrsubs 310 ; 308 311 @cm_4mesh 309 312 @cm_4data -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltz.pro
r35 r114 266 266 ;--------------------------------------------------------- 267 267 ; include common 268 ; 269 compile_opt idl2, strictarrsubs 270 ; 268 271 @cm_4mesh 269 272 @cm_4data -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/sbar_plot.pro
r69 r114 51 51 52 52 PRO sbar_plot, Values, COLORS = colors, NOREINITPLT = noreinitplt, _extra = ex 53 ; 54 compile_opt idl2, strictarrsubs 55 ; 53 56 @common 54 57 ; 1) je reinitialise l''environnememt graphique (les variables !x, !y et !p): -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/scontour.pro
r35 r114 41 41 ;------------------------------------------------------------ 42 42 PRO scontour, x, y, z, NOREINITPLT = noreinitplt, _EXTRA = ex 43 ; 44 compile_opt idl2, strictarrsubs 45 ; 43 46 @common 44 47 ; 1) je reinitialise l''environnememt graphique (les variables !x, !y et !p): -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/splot.pro
r67 r114 46 46 ;------------------------------------------------------------ 47 47 PRO splot, x, y, NOREINITPLT = noreinitplt, _EXTRA = ex 48 ; 49 compile_opt idl2, strictarrsubs 50 ; 48 51 @common 49 52 ; 1) je reinitialise l''environnememt graphique (les variables !x, !y et !p): -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro
r69 r114 86 86 , MIN = min, MAX = max, MASK = mask, OFFSET = offset, NOUSEINFOS = NOUSEINFOS $ 87 87 , NCOLORS = ncolors, NOINTERP = nointerp, _EXTRA = ex 88 ; 89 ; 90 compile_opt idl2, strictarrsubs 88 91 ; 89 92 IF n_elements(z2d) EQ 0 THEN return … … 136 139 if abs(mask) LT 1e6 then BEGIN 137 140 masked = where(arr EQ mask) 138 if masked[0] NE -1 then arr (masked) = min(arr(where(arr NE mask)))141 if masked[0] NE -1 then arr[masked] = min(arr[where(arr NE mask)]) 139 142 ENDIF ELSE BEGIN 140 143 masked = where(abs(arr) GE abs(mask)/10.) 141 if masked[0] NE -1 then arr (masked) = min(arr(where(abs(arr) LT abs(mask)/10.)))144 if masked[0] NE -1 then arr[masked] = min(arr[where(abs(arr) LT abs(mask)/10.)]) 142 145 ENDELSE 143 146 ENDIF ELSE masked = -1 -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/addaxe.pro
r37 r114 37 37 ;------------------------------------------------------------ 38 38 PRO addaxe, endpoints, type, posfenetre, _EXTRA = ex 39 ; 40 compile_opt idl2, strictarrsubs 41 ; 39 42 @common 40 43 ;--------------------------------------- -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/autoscale.pro
r37 r114 42 42 ; ce CI est un multiple de l'unite en unite log de 10. 43 43 ; 44 ; 45 compile_opt idl2, strictarrsubs 46 ; 44 47 ci = (max-min)/20. 45 48 ci = 10.^floor(alog10(ci)) -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro
r74 r114 41 41 ; 42 42 ; include common 43 ; 44 compile_opt idl2, strictarrsubs 45 ; 43 46 @cm_4mesh 44 47 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/barrecouleur.pro
r37 r114 25 25 , CB_SUBTITLE = cb_subtitle, POST = post, _extra = ex 26 26 ;------------------------------------------------------------ 27 ; 28 compile_opt idl2, strictarrsubs 29 ; 27 30 @cm_general 28 31 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/checkfield.pro
r69 r114 40 40 ;------------------------------------------------------------ 41 41 FUNCTION err_1d, type, n1, name, n2 42 ; 43 compile_opt idl2, strictarrsubs 44 ; 42 45 return, report(['Error in "' + type + '" type plot with a 1D input array:' $ 43 46 , 'the number of elements of the input vector ('+strtrim(n1, 1)+') ' $ … … 46 49 ; 47 50 FUNCTION err_2d, type, sz, nx, ny, nz 51 ; 52 compile_opt idl2, strictarrsubs 53 ; 48 54 @cm_4mesh 49 55 @cm_4cal … … 59 65 ; 60 66 FUNCTION err_3d, type, sz, nx, ny, nz 67 ; 68 compile_opt idl2, strictarrsubs 69 ; 61 70 @cm_4mesh 62 71 @cm_4cal … … 74 83 FUNCTION checkfield, field, procedure, TYPE = type, BOXZOOM = boxzoom, DIREC = direc, NOQUESTION = noquestion, VECTEUR = vecteur, WDEPTH = wdepth, _EXTRA = ex 75 84 ;-------------------------------------------------------------- 85 ; 86 compile_opt idl2, strictarrsubs 87 ; 76 88 ; include commons 77 89 @cm_4mesh -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/checktypeminmax.pro
r37 r114 36 36 , XINDEX = xindex, YINDEX = yindex $ 37 37 , ENDPOINTS = endpoints, _extra = ex 38 ; 39 ; 40 compile_opt idl2, strictarrsubs 38 41 ; 39 42 @common -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/determineminmax.pro
r37 r114 44 44 ;------------------------------------------------------------ 45 45 PRO determineminmax, tab, mask, vraimin, vraimax, glam, gphi, MAXIN = maxin, MININ = minin, INTERVALLE = intervalle, usetri = usetri, ZEROMIDDLE = zeromiddle, _extra = ex 46 ; 47 compile_opt idl2, strictarrsubs 48 ; 46 49 @common 47 50 ;----------------------------------------------------------------------------- … … 71 74 endif 72 75 ; ma et mi : max et min sur les points mer 73 vraimax = max(tab (mer), min = vraimin, _extra = ex)76 vraimax = max(tab[mer], min = vraimin, _extra = ex) 74 77 sameminmax = testvar(var = minin) EQ testvar(var = maxin) 75 78 if n_elements(maxin) EQ 0 OR sameminmax then maxin = vraimax -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/givewindowsize.pro
r37 r114 3 3 ;------------------------------------------------------------ 4 4 ; include commons 5 ; 6 compile_opt idl2, strictarrsubs 7 ; 5 8 @cm_4ps 6 9 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/meridienparallele.pro
r37 r114 23 23 ;------------------------------------------------------------ 24 24 PRO meridienparallele, coupe 25 ; 26 compile_opt idl2, strictarrsubs 27 ; 25 28 @common 26 29 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placecolor.pro
r37 r114 42 42 ;------------------------------------------------------------ 43 43 ; include commons 44 ; 45 compile_opt idl2, strictarrsubs 46 ; 44 47 @cm_4ps 45 48 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placedessin.pro
r69 r114 56 56 ;--------------------------------------------------------- 57 57 ; include common 58 ; 59 compile_opt idl2, strictarrsubs 60 ; 58 61 @cm_4ps 59 62 @cm_4mesh -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/projsegment.pro
r37 r114 50 50 FUNCTION projsegment, vecteur, bornes, MP = mp 51 51 ;-------------------------------------------------------------- 52 ; 53 compile_opt idl2, strictarrsubs 54 ; 52 55 a1 = float(vecteur[0]) 53 56 b1 = float(vecteur[n_elements(vecteur)-1]) -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/restoreatt.pro
r37 r114 29 29 ;------------------------------------------------------------ 30 30 PRO restoreatt, struct 31 ; 32 compile_opt idl2, strictarrsubs 33 ; 31 34 @common 32 35 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/rotation.pro
r37 r114 28 28 29 29 PRO ROTATION,X,Y,DEG,NX,NY 30 ; 31 compile_opt idl2, strictarrsubs 32 ; 30 33 ang=deg*!dtor 31 34 … … 35 38 ;get angle in for loop so that zero radii will be left as zero angle 36 39 for i = 0,n_elements(r)-1 do $ 37 if r (i) ne 0 then theta(i) = atan(y(i),x(i)) ;range from -pi to +pi40 if r[i] ne 0 then theta[i] = atan(y[i],x[i]) ;range from -pi to +pi 38 41 ; 39 42 ;add rotation angle -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/saveatt.pro
r37 r114 26 26 ;------------------------------------------------------------ 27 27 FUNCTION saveatt 28 ; 29 compile_opt idl2, strictarrsubs 30 ; 28 31 @common 29 32 return, {n:varname,g:vargrid,d:vardate,e:varexp,u:varunit,m:valmask} -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/terminedessin.pro
r37 r114 34 34 PRO terminedessin, POST = post, SMALL = small, _extra = ex 35 35 ;--------------------------------------------------------- 36 ; 37 compile_opt idl2, strictarrsubs 38 ; 36 39 @cm_4ps 37 40 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label.pro
r39 r114 50 50 pro label, cas, min, max, ncontour, level_z2d, colnumb, NLEVEL = nlevel $ 51 51 ,INTERVALLE=intervalle, STRICTFILL = strictfill 52 ; 53 compile_opt idl2, strictarrsubs 54 ; 52 55 @common 53 56 if !d.name EQ 'PS' OR !d.name EQ 'Z' then BEGIN … … 83 86 level_z2d = min + intervalle*findgen(Ncontour) 84 87 colnumb = ncoul*(findgen(Ncontour))/Ncontour+ncoul/(2*ncontour) 85 max=level_z2d (Ncontour-1)+intervalle88 max=level_z2d[Ncontour-1]+intervalle 86 89 end 87 90 ; label pour faire les memes sss que dessier -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_date.pro
r97 r114 99 99 FUNCTION LABEL_DATE, axis, index, x, DATE_FORMAT = format, MONTHS = months, $ 100 100 OFFSET= offs, _EXTRA = ex 101 ; 102 compile_opt idl2, strictarrsubs 103 ; 101 104 COMMON label_date_com, fmt, month_chr, offset 102 105 -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_gmt.pro
r39 r114 3 3 ; 4 4 PRO label_gmt, min, max, intervalle, ncoul, ncontour, level_z2d, coul 5 ; 6 compile_opt idl2, strictarrsubs 7 ; 5 8 @common 6 9 @com_eg … … 22 25 ncontour = fix((max-min)/intervalle) 23 26 level_z2d = min + intervalle*findgen(Ncontour) 24 max=level_z2d (Ncontour-1)+intervalle27 max=level_z2d[Ncontour-1]+intervalle 25 28 26 29 print, ' Number of contour intervals, plotting min & max ', ncontour, min, max … … 40 43 ; difference plot : lighter below first negative interval 41 44 red[51:98] = long((100.-float(grey_shade_2))/100.*255.) 42 red (1:48)= long((100.-float(grey_shade))/100.*255.)45 red[1:48] = long((100.-float(grey_shade))/100.*255.) 43 46 red[50] = 255 44 47 -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/lataxe.pro
r39 r114 38 38 ;------------------------------------------------------------ 39 39 ; on ramenne value ds le segment [0,180] 40 ; 41 compile_opt idl2, strictarrsubs 42 ; 40 43 lat=value mod 360 41 44 if lat lt 0 then lat=lat+360 -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/lonaxe.pro
r39 r114 38 38 ;------------------------------------------------------------ 39 39 ; on ramenne value ds le segment [0,360[ 40 ; 41 compile_opt idl2, strictarrsubs 42 ; 40 43 lon=value mod 360 41 44 if lon lt 0 then lon=lon+360 -
trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/ajoutvect.pro
r41 r114 54 54 ;------------------------------------------------------------ 55 55 pro ajoutvect,vecteur, vectlegende, UNVECTSUR=unvectsur,VECTMIN=vectmin, VECTMAX=vectmax, _EXTRA = ex 56 ; 57 compile_opt idl2, strictarrsubs 58 ; 56 59 @common 57 60 tempsun = systime(1) ; pour key_performance … … 128 131 ; construction de u et v aux pts T 129 132 ;----------------------------------------------------------- 130 a=u (0,*)133 a=u[0,*] 131 134 u=(u+shift(u,1,0))/2. 132 if NOT keyword_set(key_periodic) OR nx NE jpi then u (0,*)=a133 a=v (*,0)135 if NOT keyword_set(key_periodic) OR nx NE jpi then u[0,*]=a 136 a=v[*,0] 134 137 v=(v+shift(v,0,1))/2. 135 if NOT keyword_set(key_periodic) OR nx NE jpi then v (*,0)=a138 if NOT keyword_set(key_periodic) OR nx NE jpi then v[*,0]=a 136 139 ;---------------------------------------------------------------------------- 137 140 ; attribution du mask et des tableau de longitude et latitude … … 191 194 if interpolle then t2 = msku*shift(msku,1,0)*mskv*shift(mskv,0,1) $ 192 195 ELSE t2 = tmask[firstxt:lastxt,firstyt:lastyt,firstzt] 193 if NOT keyword_set(key_periodic) OR nx NE jpi then t2 (0, *)=0.194 t2 (*,0)=0.196 if NOT keyword_set(key_periodic) OR nx NE jpi then t2[0, *]=0. 197 t2[*,0]=0. 195 198 terre=where(t2 eq 0) 196 199 if terre[0] ne -1 then begin 197 u (terre)=1e5198 v (terre)=1e5200 u[terre]=1e5 201 v[terre]=1e5 199 202 ENDIF 200 203 ;----------------------------------------------------------- -
trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/vecteur.pro
r41 r114 81 81 ; angle peut etre un tableau. 82 82 ; 83 ; 84 compile_opt idl2, strictarrsubs 85 ; 83 86 @common 84 87 ; quelle est la longeur en coordonnees normales d''un trait qui fera 1 … … 103 106 ; normalise le vecteur 104 107 ; 108 ; 109 compile_opt idl2, strictarrsubs 110 ; 105 111 IF n_elements(w) NE 0 THEN BEGIN 106 112 norme = sqrt(u^2.+v^2.+w^2.) 107 113 ind = where(norme NE 0) 108 u (ind) = u(ind)/norme[ind]109 v (ind) = v(ind)/norme[ind]110 w (ind) = w(ind)/norme[ind]114 u[ind] = u[ind]/norme[ind] 115 v[ind] = v[ind]/norme[ind] 116 w[ind] = w[ind]/norme[ind] 111 117 ENDIF ELSE BEGIN 112 118 norme = sqrt(u^2.+v^2.) 113 119 ind = where(norme NE 0) 114 u (ind) = u(ind)/norme[ind]115 v (ind) = v(ind)/norme[ind]120 u[ind] = u[ind]/norme[ind] 121 v[ind] = v[ind]/norme[ind] 116 122 ENDELSE 117 123 END … … 120 126 , VECTCOLOR = vectcolor, VECTTHICK = vectthick, VECTREFPOS = vectrefpos $ 121 127 , VECTREFFORMAT = vectrefformat, NOVECTREF = novectref, _extra = extra 128 ; 129 compile_opt idl2, strictarrsubs 130 ; 122 131 @common 123 132 tempsun = systime(1) ; pour key_performance … … 202 211 r = cv_coord(from_sphere=coord_sphe,/to_rect,/degrees) 203 212 ; 204 x0 = reform(r (0, *), nx, ny)205 y0 = reform(r (1, *), nx, ny)206 z0 = reform(r (2, *), nx, ny)213 x0 = reform(r[0, *], nx, ny) 214 y0 = reform(r[1, *], nx, ny) 215 z0 = reform(r[2, *], nx, ny) 207 216 ; 208 217 ; etape 1, b) 209 218 ; 210 219 ; Construction du vecteur nu (resp. nv), vecteur norme porte par 211 ; l''axe des points u (i,j) et u(i-1,j) (resp v(i,j) et v(i,j-1))220 ; l''axe des points u[i,j] et u[i-1,j] (resp v[i,j] et v[i,j-1]) 212 221 ; qui definissent pour chaque point sur la shere les directions locales 213 222 ; associee a u et v. ces vecteurs definissent un repere orthonorme … … 219 228 radius = replicate(1,nxgd*nygd) 220 229 IF finite(glamu[0]*gphiu[0]) NE 0 THEN $ 221 coord_sphe = transpose([ [(glamu[indice2d])[*]], [(gphiu[indice2d])[*]], [radius (*)] ]) $222 ELSE coord_sphe = transpose([ [(glamf[indice2d])[*]], [(gphit[indice2d])[*]], [radius (*)] ])230 coord_sphe = transpose([ [(glamu[indice2d])[*]], [(gphiu[indice2d])[*]], [radius[*]] ]) $ 231 ELSE coord_sphe = transpose([ [(glamf[indice2d])[*]], [(gphit[indice2d])[*]], [radius[*]] ]) 223 232 r = cv_coord(from_sphere=coord_sphe,/to_rect,/degrees) 224 233 ; coordonnes de points de la grille u en cartesien 225 ux = reform(r (0, *), nxgd, nygd)226 uy = reform(r (1, *), nxgd, nygd)227 uz = reform(r (2, *), nxgd, nygd)234 ux = reform(r[0, *], nxgd, nygd) 235 uy = reform(r[1, *], nxgd, nygd) 236 uz = reform(r[2, *], nxgd, nygd) 228 237 ; calcul de nu 229 238 nux = ux-shift(ux, 1, 0) … … 242 251 ; definition de nv 243 252 IF finite(glamv[0]*gphiv[0]) NE 0 THEN $ 244 coord_sphe = transpose([ [(glamv[indice2d])[*]], [(gphiv[indice2d])[*]], [radius (*)] ]) $245 ELSE coord_sphe = transpose([ [(glamt[indice2d])[*]], [(gphif[indice2d])[*]], [radius (*)] ])253 coord_sphe = transpose([ [(glamv[indice2d])[*]], [(gphiv[indice2d])[*]], [radius[*]] ]) $ 254 ELSE coord_sphe = transpose([ [(glamt[indice2d])[*]], [(gphif[indice2d])[*]], [radius[*]] ]) 246 255 r = cv_coord(from_sphere=coord_sphe,/to_rect,/degrees) 247 256 ; coordonnes de points de la grille v en cartesien 248 vx = reform(r (0, *), nxgd, nygd)249 vy = reform(r (1, *), nxgd, nygd)250 vz = reform(r (2, *), nxgd, nygd)257 vx = reform(r[0, *], nxgd, nygd) 258 vy = reform(r[1, *], nxgd, nygd) 259 vz = reform(r[2, *], nxgd, nygd) 251 260 ; calcul de nv 252 261 nvx = vx-shift(vx, 0, 1) … … 290 299 ; coordonnees de la pointe en spherique 291 300 292 coord_rect = transpose([ [x1 (*)], [y1(*)], [z1(*)] ])301 coord_rect = transpose([ [x1[*]], [y1[*]], [z1[*]] ]) 293 302 r = cv_coord(from_rect=coord_rect,/to_sphere,/degrees) 294 glam1 = reform(r (0, *), nx, ny)295 gphi1 = reform(r (1, *), nx, ny)303 glam1 = reform(r[0, *], nx, ny) 304 gphi1 = reform(r[1, *], nx, ny) 296 305 297 306 ; … … 303 312 ; 304 313 ind = where(glam1 LT !x.range[0] AND glam1+360. LE !x.range[1]) 305 if ind[0] NE -1 then glam1 (ind) = glam1(ind)+360.314 if ind[0] NE -1 then glam1[ind] = glam1[ind]+360. 306 315 ind = where(glam1 GT !x.range[1] AND glam1-360. GE !x.range[0]) 307 if ind[0] NE -1 then glam1 (ind) = glam1(ind)-360.316 if ind[0] NE -1 then glam1[ind] = glam1[ind]-360. 308 317 309 318 ind = where(glam LT !x.range[0] AND glam+360. LE !x.range[1]) 310 if ind[0] NE -1 then glam (ind) = glam(ind)+360.319 if ind[0] NE -1 then glam[ind] = glam[ind]+360. 311 320 ind = where(glam GT !x.range[1] AND glam-360. GE !x.range[0]) 312 if ind[0] NE -1 then glam (ind) = glam(ind)-360.321 if ind[0] NE -1 then glam[ind] = glam[ind]-360. 313 322 ; 314 323 ; … … 316 325 ; 317 326 r = convert_coord(glam,gphi,/data,/to_normal) 318 x0 = r (0, *); coordonnes normales du debut de la fleche319 y0 = r (1, *);327 x0 = r[0, *] ; coordonnes normales du debut de la fleche 328 y0 = r[1, *] ; 320 329 321 330 r = convert_coord(glam1,gphi1,/data,/to_normal) 322 x1 = r (0, *); coordonnes normales de la fin de la fleche (avant scaling)323 y1 = r (1, *);331 x1 = r[0, *] ; coordonnes normales de la fin de la fleche (avant scaling) 332 y1 = r[1, *] ; 324 333 ; 325 334 ; tests pour eviter que des fleches soient dessineees hors du domaine … … 384 393 ; 385 394 r = cv_coord(from_polar = transpose([ [dirpol[*]], [norme[*]] ]), /to_rect) 386 composantex = r (0, *)387 composantey = r (1, *)395 composantex = r[0, *] 396 composantey = r[1, *] 388 397 ; 389 398 x1 = x0+composantex … … 395 404 396 405 points = where(msk EQ 1) 397 IF points[0] NE -1 THEN arrow, x0 (points), y0(points), x1(points), y1(points), /norm $406 IF points[0] NE -1 THEN arrow, x0[points], y0[points], x1[points], y1[points], /norm $ 398 407 , hsize = -.2, COLOR = vectcolor, THICK = vectthick 399 408 ; -
trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/velovect.pro
r97 r114 100 100 PRO VELOVECT,U,V,X,Y, Missing = Missing, Length = length, Dots = dots, $ 101 101 Color=color, CLIP=clip, NOCLIP=noclip, OVERPLOT=overplot, _EXTRA=extra 102 ; 103 compile_opt idl2, strictarrsubs 104 ; 102 105 on_error,2 ;Return to caller if an error occurs 103 106 s = size(u) -
trunk/SRC/ToBeReviewed/PLOTS/axe.pro
r42 r114 50 50 ;------------------------------------------------------------ 51 51 PRO axe, coupe,tempsmin,tempsmax, REVERSE_X = reverse_x, REVERSE_Y = reverse_y, SIN = sin, SEPDATE = sepdate, DIGITSYEAR = digitsyear, _EXTRA = ex 52 ; 53 compile_opt idl2, strictarrsubs 54 ; 52 55 @common 53 56 tempsun = systime(1) ; pour key_performance -
trunk/SRC/ToBeReviewed/PLOTS/legende.pro
r42 r114 47 47 , INTERVALLE = intervalle, TYPE_YZ = type_yz, VARNAME2 = varname2 $ 48 48 , NPTS = npts, _EXTRA = ex 49 ; 50 compile_opt idl2, strictarrsubs 51 ; 49 52 @common 50 53 tempsun = systime(1) ; pour key_performance -
trunk/SRC/ToBeReviewed/PLOTS/plotsym.pro
r97 r114 32 32 angle=angle, box=box, line=line, scale=scale, $ 33 33 _extra=extra 34 ; 35 compile_opt idl2, strictarrsubs 36 ; 34 37 if not keyword_set(scale) then scale=1.0 35 38 if not keyword_set(angle) then angle=0.0 -
trunk/SRC/ToBeReviewed/PLOTS/reinitplt.pro
r42 r114 41 41 pro reinitplt, all=all,x=x,y=y,z=z,p=p, invert=invert 42 42 ;------------------------------------------------------------ 43 ; 44 compile_opt idl2, strictarrsubs 45 ; 43 46 clearx = 0 44 47 cleary = 0 -
trunk/SRC/ToBeReviewed/PLOTS/style.pro
r42 r114 44 44 ;------------------------------------------------------------ 45 45 pro style,labstyle,level_z2d,linestyle,thick 46 ; 47 compile_opt idl2, strictarrsubs 48 ; 46 49 case labstyle of 47 50 0: begin … … 75 78 a=replicate(0,n_elements(level_z2d)-n) 76 79 c=replicate(2,n) 77 if seuil eq level_z2d (n)then begin80 if seuil eq level_z2d[n] then begin 78 81 thick=[replicate(1,n),2,replicate(1,n_elements(level_z2d)-1-n)] 79 82 linestyle=[c,a] … … 86 89 3: begin 87 90 n = n_elements(level_z2d) 88 seuil = level_z2d (1+n/2)91 seuil = level_z2d[1+n/2] 89 92 90 93 thick = intarr(n) 91 thick (indgen((n)/4)*4)= 192 thick (indgen((n)/4)*4+1)= 193 thick (indgen((n)/4)*4+2)= 294 thick (indgen((n)/4)*4+3)= 194 thick[indgen(n/4)*4] = 1 95 thick[indgen(n/4)*4+1] = 1 96 thick[indgen(n/4)*4+2] = 2 97 thick[indgen(n/4)*4+3] = 1 95 98 96 99 linestyle = intarr(n) 97 linestyle (indgen((n)/4)*4)= 398 linestyle (indgen((n)/4)*4+1)= 099 linestyle (indgen((n)/4)*4+2)= 0100 linestyle (indgen((n)/4)*4+3)= 0100 linestyle[indgen(n/4)*4] = 3 101 linestyle[indgen(n/4)*4+1] = 0 102 linestyle[indgen(n/4)*4+2] = 0 103 linestyle[indgen(n/4)*4+3] = 0 101 104 102 105 labels = intarr(n) 103 labels (indgen((n)/2)*2)= 1104 labels (n/2)= 0106 labels[indgen(n/2)*2] = 1 107 labels[n/2] = 0 105 108 106 109 return -
trunk/SRC/ToBeReviewed/PLOTS/symbols.pro
r42 r114 50 50 ;- 51 51 pro symbols,nsym,scale,color=col 52 ; 53 compile_opt idl2, strictarrsubs 54 ; 52 55 on_error,2 53 56 fill = 0 … … 65 68 xarr = fltarr(5) 66 69 yarr = xarr 67 xarr (1)= 10.68 xarr (2)= 6.69 yarr (2)= 2.70 xarr[1] = 10. 71 xarr[2] = 6. 72 yarr[2] = 2. 70 73 ;nsyms greater than 10 should be filled arrows 71 74 if nsym gt 10 then begin 72 xarr (3)= 6.73 xarr (4)= 10.74 yarr (3)= -2.75 xarr[3] = 6. 76 xarr[4] = 10. 77 yarr[3] = -2. 75 78 fill = 1 76 79 endif else begin 77 xarr (3)= 10.78 xarr (4)= 6.79 yarr (4)= -2.80 xarr[3] = 10. 81 xarr[4] = 6. 82 yarr[4] = -2. 80 83 endelse 81 84 case 1 of … … 85 88 xarr = extrac(xarr,0,11) 86 89 yarr = extrac(yarr,0,11) 87 yarr (6)= 0.588 xarr (7)= 689 yarr (7)= 0.590 xarr (8)= 691 yarr (8)= -0.592 yarr (9)= -0.590 yarr[6] = 0.5 91 xarr[7] = 6 92 yarr[7] = 0.5 93 xarr[8] = 6 94 yarr[8] = -0.5 95 yarr[9] = -0.5 93 96 if nsym eq 12 then begin 94 97 rotation,xarr,yarr,180,nx,ny … … 124 127 xarr = fltarr(5) + 3 125 128 yarr = xarr 126 xarr (1)= -3.127 xarr (2)= -3.128 yarr (2)= -3.129 yarr (3)= -3.129 xarr[1] = -3. 130 xarr[2] = -3. 131 yarr[2] = -3. 132 yarr[3] = -3. 130 133 if (nsym eq 21)+(nsym eq 31) then begin 131 134 rotation,xarr,yarr,45,nx,ny … … 139 142 yarr = fltarr(4) - 6./4. 140 143 xarr = fltarr(4) - 6./2. 141 xarr (1)= 6./2.142 xarr (2)= 0.143 yarr (2)= 6.*sqrt(3.)/2. - 6./4.144 xarr[1] = 6./2. 145 xarr[2] = 0. 146 yarr[2] = 6.*sqrt(3.)/2. - 6./4. 144 147 if nsym eq 32 then fill = 1 145 148 end … … 147 150 xarr = fltarr(2) + 1 148 151 yarr = xarr * 0. 149 xarr (1)= -1.152 xarr[1] = -1. 150 153 end 151 154 endcase
Note: See TracChangeset
for help on using the changeset viewer.