1 | ;;;;;*************************************** FOLDER |
---|
2 | folder = '../INTERCOMP/lmd/' |
---|
3 | ;coord2d = 'false' ;; for non-regular projections ;;CHANGER windowx and windowy |
---|
4 | filename = folder + 'wrfout_d03_2024-05-59_06:00:00_zabg' |
---|
5 | ini_utc = 6 ;; cf. name of file |
---|
6 | freq = 1 ;; cf. 1 output per ... hour |
---|
7 | save_ps = 'lmd_winds' |
---|
8 | |
---|
9 | ;;;;;*************************************** LVL & FLD & TIME |
---|
10 | nlevel = 0 ;1 ;0 |
---|
11 | use_lt = 12 ;; cf. what user wants |
---|
12 | ;field1 = 'TSURF' ;; 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 * 100. |
---|
20 | ;print, max(what_I_plot), min(what_I_plot) |
---|
21 | |
---|
22 | ;;;;;*************************************** PLOT TITLES |
---|
23 | title_user = 'Horizontal wind (m s!U-1!N) 20m AGL' |
---|
24 | ;title_user = 'Horizontal wind (m s!U-1!N) 6km AMR' |
---|
25 | ;title_user = 'Horizontal wind (m s!U-1!N) 20km AMR' |
---|
26 | subtitle_user = 'LMD_MM' |
---|
27 | filename = '../INTERCOMP/mrams/holden_ls150-S-g3_day316.nc_zabg' |
---|
28 | save_ps = 'mrams_winds' |
---|
29 | model = 'mrams' |
---|
30 | subtitle_user = 'MRAMS' |
---|
31 | subtitle_user = subtitle_user + ' / LT = '+string(use_lt,'(I0)')+'h' |
---|
32 | ;subtitle_user = subtitle_user + ' / UTC!D0!N = 06:00am' ;; pour les series |
---|
33 | subtitle_user = subtitle_user + ' / Ls = 149!Uo!N' |
---|
34 | subtitle_user = subtitle_user + ' / dx = 27km [N3]' |
---|
35 | |
---|
36 | ;;;;;*************************************** COLOR TABLES |
---|
37 | flag_cb = 'true' |
---|
38 | poscb = 0.75 ;0.95 |
---|
39 | format = '(I0)' |
---|
40 | ;format = '(F4.1)' |
---|
41 | ;colors = 128 |
---|
42 | colors = 32 |
---|
43 | pal = 22 ;; GOOD: 4, 18, 22, 16, 37, 33, 39, 6, 11, 19, 0 |
---|
44 | ;pal = 4 |
---|
45 | |
---|
46 | ;;;;;*************************************** FILL LIMITS |
---|
47 | minfield_init = 00. |
---|
48 | maxfield_init = 30. |
---|
49 | |
---|
50 | ;;;;;*************************************** LIMIT TRICKS |
---|
51 | ;;;;;********************* must always follow FILL LIMITS |
---|
52 | missing_value=1.e30 |
---|
53 | 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 |
---|
54 | lim_min = minfield_init & w=where(what_I_plot le lim_min) & if (w[0] ne -1) then what_I_plot[w]=lim_min |
---|
55 | ;lim_blank = 2. & w=where(abs(what_I_plot) le lim_blank) & if (w[0] ne -1) then what_I_plot[w]=missing_value |
---|
56 | |
---|
57 | ;;;;;*************************************** WINDS |
---|
58 | ;windex = 10. ;; DEF: 20. |
---|
59 | windex = 20. ;; DEF: 20. |
---|
60 | ;stride = 1. ;; DEF: 5. |
---|
61 | ;stride = 2. ;; DEF: 5. |
---|
62 | stride = 3. ;; DEF: 5. |
---|
63 | |
---|
64 | ;;;;;*************************************** CONTOUR |
---|
65 | overcontour = overcontour/1000. |
---|
66 | ;lev = 50. + 50.*findgen(20) |
---|
67 | ;lev = -10. + 0.2*findgen(20) |
---|
68 | ;lev = -10. + 2.*findgen(20) |
---|
69 | ;lev = -10. + 1.*findgen(40) |
---|
70 | lev = -10. + 0.5*findgen(50) |
---|
71 | |
---|
72 | ;;;;;*************************************** AXIS |
---|
73 | isotropic = 'true' ;; DEF: 'true' |
---|
74 | ;intervalx = 0.5 |
---|
75 | intervalx = 2.0 |
---|
76 | intervaly = intervalx |
---|
77 | ;intervaly = 1.0 |
---|
78 | |
---|
79 | ;;;;;*************************************** MAP LIMITS |
---|
80 | ;windowx = [-144.,-126.] |
---|
81 | ;windowy = [10.,26.] |
---|
82 | windowx = [-42.,-26.] |
---|
83 | windowy = [-34.,-20.] |
---|
84 | |
---|
85 | |
---|
86 | ;;;;;***************************************;;;;; |
---|
87 | ;;;;;***************************************;;;;; |
---|
88 | ;;;;;***************************************;;;;; |
---|
89 | ;;;;;***************************************;;;;; |
---|
90 | |
---|
91 | |
---|
92 | ;;;;;*************************************** SETTING TIME (do not modify) |
---|
93 | utc_to_lt = mean(windowx) / 15. ;; cf. longitude -- LT = UTC + utc_to_lt |
---|
94 | use_utc = use_lt - utc_to_lt |
---|
95 | zentime = floor(((24 + use_utc - ini_utc) MOD 24)/freq) ;; TRUE IDL SUBSCRIPT... ajouter un modulo... |
---|
96 | ;ntime = zentime ;; A COMMENTER SI ON VEUT TOUS LES TEMPS |
---|
97 | |
---|
98 | |
---|
99 | ;;;;;***************************************;;;;; |
---|
100 | ;;;;;***************************************;;;;; |
---|
101 | ;;;;;***************************************;;;;; |
---|
102 | ;;;;;***************************************;;;;; |
---|
103 | |
---|
104 | |
---|
105 | ;;; |
---|
106 | ;;; VERTICAL SECTION LIMITS |
---|
107 | ;;; |
---|
108 | ;minalt=-5. ;; grepSEC |
---|
109 | ;maxalt=40. ;; grepSEC |
---|
110 | ;minspace=0.0 ;; grepSEC |
---|
111 | ;maxspace=35.0 ;; grepSEC |
---|
112 | |
---|
113 | ;;; |
---|
114 | ;;; METRIC UNITS FOR VERTICAL SECTION |
---|
115 | ;;; |
---|
116 | ;factor=10. ;; grepSEC |
---|
117 | ;space=space*60. & spacekm='true' ;; grepSEC |
---|
118 | ;minspace=minspace*60./factor ;; grepSEC |
---|
119 | ;maxspace=maxspace*60./factor ;; grepSEC |
---|
120 | ;intervalx=round(intervalx*60./factor) ;; grepSEC |
---|
121 | |
---|
122 | |
---|
123 | ;;; |
---|
124 | ;;; TRICKS |
---|
125 | ;;; |
---|
126 | |
---|
127 | ;; pour tracer juste les vecteurs sur un fond uni ou vide |
---|
128 | ;pal=0 ;; 1/4 grepMAP |
---|
129 | ;what_I_plot(*,*)=what_I_plot(*,*)*0.+0.2 ;; 2/4 grepMAP |
---|
130 | ;what_I_plot(0,0)=0. ;; 3/4 grepMAP |
---|
131 | ;flag_cb='false' ;; 4/4 grepMAP |
---|
132 | |
---|
133 | ;;; truc pour tracer juste les contours et une zone grisee de topo |
---|
134 | ;pal=0 ;; 1/9 grepALL |
---|
135 | ;w=where(abs(what_I_plot) lt missing_value) ;; 2/9 grepALL |
---|
136 | ;what_I_plot[w]=0. ;; 3/9 grepALL |
---|
137 | ;w=where(abs(what_I_plot) gt missing_value) ;; 4/9 grepALL |
---|
138 | ;what_I_plot[w]=0.75 ;; 5/9 grepALL |
---|
139 | ;w=where(what_I_plot eq 0.) ;; 6/9 grepALL |
---|
140 | ;what_I_plot[w]=missing_value ;; 7/9 grepALL |
---|
141 | ;what_I_plot(0,0)=1. & what_I_plot(1,0)=0. ;; 8/9 grepALL |
---|
142 | ;flag_cb='false' ;; 9/9 grepALL |
---|
143 | |
---|