1 | ;;;;;*************************************** FOLDER |
---|
2 | folder = '/home/aslmd/ALTIERI/ALTIERI_1HELLAS/' |
---|
3 | coord2d = 'true' ;; for non-regular projections ;;CHANGER windowx and windowy |
---|
4 | filename = folder + 'wrfout_d01_2024-07-02_06:00:00_zabg' |
---|
5 | ini_utc = 6 ;; cf. name of file |
---|
6 | freq = 1 ;; cf. 1 output per ... hour |
---|
7 | save_ps = 'hellas' |
---|
8 | |
---|
9 | ;;;;;*************************************** LVL & FLD & TIME |
---|
10 | nlevel = 0 |
---|
11 | use_lt = 02. ;-3 ;12 ;14 ;99 ;12 ;; cf. what user wants (99 pour tous, negatif pour indice) |
---|
12 | ;field1 = 'UTSM' ;; comment to trace horizontal velocity |
---|
13 | ;field2 = 'XLAT' ;; contour |
---|
14 | no3d = 'true' |
---|
15 | ;overvector_x = 0 ;; comment out to get rid of vectors |
---|
16 | ;overvector_y = 0 ;; comment out to get rid of vectors |
---|
17 | |
---|
18 | ;;;;;*************************************** TWEAK VAR |
---|
19 | ;what_I_plot = - what_I_plot |
---|
20 | ;print, max(what_I_plot), min(what_I_plot) |
---|
21 | |
---|
22 | ;;;;;*************************************** PLOT TITLES |
---|
23 | title_user = 'Horizontal wind (m s!U-1!N) 10m AGL' |
---|
24 | ;title_user = 'Horizontal wind vectors 20m AGL' |
---|
25 | ;title_user = 'Horizontal wind (m s!U-1!N) 20km AMR' |
---|
26 | ;title_user = 'Surface temperature (K)' |
---|
27 | ;title_user = 'Downward sensible heat flux at the surface (W m!U-2!N)' |
---|
28 | subtitle_user = 'LMD_MM' |
---|
29 | subtitle_user = subtitle_user + ' / LT = '+string(use_lt,'(I0)')+'h' |
---|
30 | ;subtitle_user = subtitle_user + ' / UTC!D0!N = 06:00am' ;; pour les series |
---|
31 | subtitle_user = subtitle_user + ' / Ls = 180!Uo!N' |
---|
32 | subtitle_user = subtitle_user + ' / dx = 30km [S]' |
---|
33 | |
---|
34 | ;;;;;*************************************** COLOR TABLES |
---|
35 | ;flag_cb = 'false' |
---|
36 | poscb = 0.80 |
---|
37 | format = '(I0)' |
---|
38 | ;format = '(F4.1)' |
---|
39 | ;colors = 128 |
---|
40 | colors = 32 |
---|
41 | pal = 22 ;; GOOD: 4, 18, 22, 16, 37, 33, 39, 6, 11, 19, 0 |
---|
42 | |
---|
43 | ;;;;;*************************************** FILL LIMITS |
---|
44 | minfield_init = 0. |
---|
45 | maxfield_init = 20. |
---|
46 | |
---|
47 | ;;;;;*************************************** LIMIT TRICKS |
---|
48 | ;;;;;********************* must always follow FILL LIMITS |
---|
49 | missing_value=1.e30 |
---|
50 | lim_max = maxfield_init & w=where((what_I_plot ge lim_max) and (what_I_plot le 1e9)) & if (w[0] ne -1) then what_I_plot[w]=lim_max |
---|
51 | lim_min = minfield_init & w=where(what_I_plot le lim_min) & if (w[0] ne -1) then what_I_plot[w]=lim_min |
---|
52 | ;lim_blank = 2. & w=where(abs(what_I_plot) le lim_blank) & if (w[0] ne -1) then what_I_plot[w]=missing_value |
---|
53 | |
---|
54 | ;;;;;*************************************** WINDS |
---|
55 | windex = 20. ;; DEF: 20. |
---|
56 | ;windex = 20. ;; DEF: 20. |
---|
57 | ;stride = 1. ;; DEF: 5. |
---|
58 | ;stride = 2. ;; DEF: 5. |
---|
59 | stride = 3. ;; DEF: 5. |
---|
60 | |
---|
61 | ;;;;;*************************************** CONTOUR |
---|
62 | overcontour = overcontour/1000. |
---|
63 | ;lev = 50. + 50.*findgen(20) |
---|
64 | ;lev = -10. + 0.2*findgen(20) |
---|
65 | lev = -10. + 0.5*findgen(50) |
---|
66 | ;lev = -10. + 1.*findgen(40) |
---|
67 | ;lev = -10. + 0.5*findgen(50) |
---|
68 | |
---|
69 | ;;;;;*************************************** AXIS |
---|
70 | ;;isotropic = 'true' ;; DEF: 'true' |
---|
71 | intervalx = 5.0 |
---|
72 | intervaly = intervalx |
---|
73 | |
---|
74 | ;;;;;*************************************** MAP LIMITS |
---|
75 | windowx = [ 40., 90.] |
---|
76 | windowy = [-65.,-25.] |
---|
77 | |
---|
78 | |
---|
79 | ;;;;;***************************************;;;;; |
---|
80 | ;;;;;***************************************;;;;; |
---|
81 | ;;;;;***************************************;;;;; |
---|
82 | ;;;;;***************************************;;;;; |
---|
83 | |
---|
84 | |
---|
85 | ;;;;;*************************************** SETTING TIME (do not modify) |
---|
86 | utc_to_lt = mean(windowx) / 15. ;; cf. longitude -- LT = UTC + utc_to_lt |
---|
87 | use_utc = use_lt - utc_to_lt |
---|
88 | zentime = floor(((24 + use_utc - ini_utc) MOD 24)/freq) ;; TRUE IDL SUBSCRIPT... ajouter un modulo... |
---|
89 | if (use_lt ne 99) then ntime = zentime else ntime = 99 ;; ou commenter pour avoir tous les pas de temps |
---|
90 | if (use_lt lt 0) then ntime = -use_lt |
---|
91 | |
---|
92 | ;;;;;***************************************;;;;; |
---|
93 | ;;;;;***************************************;;;;; |
---|
94 | ;;;;;***************************************;;;;; |
---|
95 | ;;;;;***************************************;;;;; |
---|
96 | |
---|
97 | |
---|
98 | ;;; |
---|
99 | ;;; VERTICAL SECTION LIMITS |
---|
100 | ;;; |
---|
101 | ;minalt=-5. ;; grepSEC |
---|
102 | ;maxalt=40. ;; grepSEC |
---|
103 | ;minspace=0.0 ;; grepSEC |
---|
104 | ;maxspace=35.0 ;; grepSEC |
---|
105 | |
---|
106 | ;;; |
---|
107 | ;;; METRIC UNITS FOR VERTICAL SECTION |
---|
108 | ;;; |
---|
109 | ;factor=10. ;; grepSEC |
---|
110 | ;space=space*60. & spacekm='true' ;; grepSEC |
---|
111 | ;minspace=minspace*60./factor ;; grepSEC |
---|
112 | ;maxspace=maxspace*60./factor ;; grepSEC |
---|
113 | ;intervalx=round(intervalx*60./factor) ;; grepSEC |
---|
114 | |
---|
115 | |
---|
116 | ;;; |
---|
117 | ;;; TRICKS |
---|
118 | ;;; |
---|
119 | |
---|
120 | ;; pour tracer juste les vecteurs sur un fond uni ou vide |
---|
121 | ;pal=0 ;; 1/4 grepMAP |
---|
122 | ;what_I_plot(*,*)=what_I_plot(*,*)*0.+0.2 ;; 2/4 grepMAP |
---|
123 | ;what_I_plot(0,0)=0. ;; 3/4 grepMAP |
---|
124 | ;flag_cb='false' ;; 4/4 grepMAP |
---|
125 | |
---|
126 | ;;; truc pour tracer juste les contours et une zone grisee de topo |
---|
127 | ;pal=0 ;; 1/9 grepALL |
---|
128 | ;w=where(abs(what_I_plot) lt missing_value) ;; 2/9 grepALL |
---|
129 | ;what_I_plot[w]=0. ;; 3/9 grepALL |
---|
130 | ;w=where(abs(what_I_plot) gt missing_value) ;; 4/9 grepALL |
---|
131 | ;what_I_plot[w]=0.75 ;; 5/9 grepALL |
---|
132 | ;w=where(what_I_plot eq 0.) ;; 6/9 grepALL |
---|
133 | ;what_I_plot[w]=missing_value ;; 7/9 grepALL |
---|
134 | ;what_I_plot(0,0)=1. & what_I_plot(1,0)=0. ;; 8/9 grepALL |
---|
135 | ;flag_cb='false' ;; 9/9 grepALL |
---|
136 | |
---|