1 | pro turb_period |
---|
2 | ; |
---|
3 | ; |
---|
4 | ; |
---|
5 | what_I_plot=0. |
---|
6 | overcontour=0. |
---|
7 | SPAWN, '\rm param_plot.idl ; cp turb_inc.pro param_plot.idl' |
---|
8 | ;; |
---|
9 | ;; |
---|
10 | ;; |
---|
11 | ;altiuser=0.5 |
---|
12 | start_lt = 9. ;8 |
---|
13 | zefile='psfc' ;'turbh_period' |
---|
14 | overvector_x = 0 |
---|
15 | overvector_y = 0 |
---|
16 | freq_out = 50. ;100. |
---|
17 | dx = 10. |
---|
18 | ; |
---|
19 | ; |
---|
20 | ; |
---|
21 | filefile = "/home/aymeric/Work/submitted/mars_journal/LMD_MM_MARS_ustar_LEScaseC.nc" |
---|
22 | filefile = "/home/aymeric/extract.nc" |
---|
23 | filefile = "/home/aslmd/bigLES10m/psfc.nc" |
---|
24 | ;getcdf, file=filefile, charvar="USTM", invar=zevar |
---|
25 | ;getcdf, file=filefile, charvar="U", invar=zeu |
---|
26 | ;getcdf, file=filefile, charvar="V", invar=zev |
---|
27 | ;getcdf, file=filefile, charvar="W", invar=zew |
---|
28 | getcdf, file=filefile, charvar="PSFC", invar=zevar |
---|
29 | |
---|
30 | nx = n_elements(zevar(*,0,0)) |
---|
31 | ny = n_elements(zevar(0,*,0)) |
---|
32 | ntot = n_elements(zevar(0,0,*)) |
---|
33 | ;lon = findgen(nx) / 10. |
---|
34 | ;lat = findgen(ny) / 10. |
---|
35 | ;;lon = findgen(2*nx+1) / 10. |
---|
36 | ;;lat = findgen(2*ny+1) / 10. |
---|
37 | lon = findgen(2*nx+1) * dx ;/ 1000. |
---|
38 | lat = findgen(2*ny+1) * dx ;/ 1000. |
---|
39 | lon = findgen(nx) * dx ;/ 1000. |
---|
40 | lat = findgen(ny) * dx ;/ 1000. |
---|
41 | |
---|
42 | |
---|
43 | alpha=1 |
---|
44 | ;nstart=195 |
---|
45 | ;nend=198 |
---|
46 | ;;nend=215 |
---|
47 | ;nstride=1 |
---|
48 | ;nstart=1 |
---|
49 | ;nend=n_elements(zevar(0,0,*))-1 |
---|
50 | ;nstride=10 |
---|
51 | nstart=0 |
---|
52 | nend=n_elements(zevar(0,0,*))-1 |
---|
53 | nstride=1 |
---|
54 | for nt=nstart,nend,nstride do begin |
---|
55 | print, nt |
---|
56 | ; |
---|
57 | ; |
---|
58 | ; |
---|
59 | PS_Start, filename=zefile+string(1000+alpha,'(I0)')+'.ps' |
---|
60 | print, zefile+'.ps' |
---|
61 | ;!p.multi=[0,3,2] |
---|
62 | ;!P.Charsize = 0.6 |
---|
63 | !P.Charsize = 1.2 |
---|
64 | !p.charthick = 2.0 |
---|
65 | !p.thick = 2.0 |
---|
66 | !x.thick = 2.0 |
---|
67 | !y.thick = 2.0 |
---|
68 | ;; |
---|
69 | ;; |
---|
70 | ;; |
---|
71 | ;restore, filename='../LES/MERIDIANI_tau100/savew' |
---|
72 | ;;restore, filename='../LES/MERIDIANI_tau100_wind10/savew' |
---|
73 | ;;restore, filename='../LES/MERIDIANI_tau100_wind20/savew' |
---|
74 | ;;;restore, filename='saveu' |
---|
75 | ;indind=where(abs(h - altiuser) eq min(abs(h - altiuser))) |
---|
76 | ;print, h(indind) |
---|
77 | ;; |
---|
78 | ;; |
---|
79 | ;; |
---|
80 | ;;what_I_plot = reform(wprime(*,*,indind)) |
---|
81 | ;what_I_plot = wprime(*,*,indind) |
---|
82 | ;;what_I_plot = veltot(*,*,indind) |
---|
83 | ;;contour, wprime(*,*,indind), nlevels=30 |
---|
84 | ;lon = findgen(n_elements(wprime(*,0,0))) / 10. |
---|
85 | ;lat = findgen(n_elements(wprime(0,*,0))) / 10. |
---|
86 | ;nx = n_elements(wprime(*,0,0)) |
---|
87 | ;ny = n_elements(wprime(0,*,0)) |
---|
88 | |
---|
89 | ;;; |
---|
90 | what_I_plot = reform(zevar(*,*,nt)) |
---|
91 | ;overvector_x = reform(zeu(0:nx-1,*,0,nt)) |
---|
92 | ;overvector_y = reform(zev(*,0:ny-1,0,nt)) |
---|
93 | ;what_I_plot = reform(zew(*,*,0,nt)) |
---|
94 | ;what_I_plot = reform(zevar(*,*,nt)) - mean(reform(zevar(*,*,nt))) |
---|
95 | ;;; |
---|
96 | |
---|
97 | ;;;; |
---|
98 | ;;;; DUPLIQUER LES DOMAINES |
---|
99 | ;;;; |
---|
100 | |
---|
101 | ;what_I_plot_period = fltarr(2*nx+1,2*ny+1) |
---|
102 | ;what_I_plot_period(0:nx-1 ,0:ny-1 ) = what_I_plot(0:nx-1,0:ny-1) |
---|
103 | ;what_I_plot_period(nx:2*nx-1,0:ny-1 ) = what_I_plot(0:nx-1,0:ny-1) |
---|
104 | ;what_I_plot_period(0:nx-1 ,ny:2*ny-1) = what_I_plot(0:nx-1,0:ny-1) |
---|
105 | ;what_I_plot_period(nx:2*nx-1,ny:2*ny-1) = what_I_plot(0:nx-1,0:ny-1) |
---|
106 | ;what_I_plot_period(2*nx,*) = what_I_plot_period(0,*) |
---|
107 | ;what_I_plot_period(*,2*ny) = what_I_plot_period(*,0) |
---|
108 | ;what_I_plot = TEMPORARY(what_I_plot_period) |
---|
109 | |
---|
110 | ;overvector_x_period = fltarr(2*nx+1,2*ny+1) |
---|
111 | ;overvector_x_period(0:nx-1 ,0:ny-1 ) = overvector_x(0:nx-1,0:ny-1) |
---|
112 | ;overvector_x_period(nx:2*nx-1,0:ny-1 ) = overvector_x(0:nx-1,0:ny-1) |
---|
113 | ;overvector_x_period(0:nx-1 ,ny:2*ny-1) = overvector_x(0:nx-1,0:ny-1) |
---|
114 | ;overvector_x_period(nx:2*nx-1,ny:2*ny-1) = overvector_x(0:nx-1,0:ny-1) |
---|
115 | ;overvector_x_period(2*nx,*) = overvector_x_period(0,*) |
---|
116 | ;overvector_x_period(*,2*ny) = overvector_x_period(*,0) |
---|
117 | ;overvector_x = TEMPORARY(overvector_x_period) |
---|
118 | |
---|
119 | ;overvector_y_period = fltarr(2*nx+1,2*ny+1) |
---|
120 | ;overvector_y_period(0:nx-1 ,0:ny-1 ) = overvector_y(0:nx-1,0:ny-1) |
---|
121 | ;overvector_y_period(nx:2*nx-1,0:ny-1 ) = overvector_y(0:nx-1,0:ny-1) |
---|
122 | ;overvector_y_period(0:nx-1 ,ny:2*ny-1) = overvector_y(0:nx-1,0:ny-1) |
---|
123 | ;overvector_y_period(nx:2*nx-1,ny:2*ny-1) = overvector_y(0:nx-1,0:ny-1) |
---|
124 | ;overvector_y_period(2*nx,*) = overvector_y_period(0,*) |
---|
125 | ;overvector_y_period(*,2*ny) = overvector_y_period(*,0) |
---|
126 | ;overvector_y = TEMPORARY(overvector_y_period) |
---|
127 | |
---|
128 | |
---|
129 | print, 'plot !!!!' |
---|
130 | ; |
---|
131 | ; |
---|
132 | ; |
---|
133 | ;localtime_h = start_lt + 100*nt/3700 ;; division euclidienne |
---|
134 | ;localtime_m = float(100*nt mod 3700)/3700. |
---|
135 | ;localtime_m = 60.*localtime_m |
---|
136 | ;title_user=string(localtime_h,'(I0)')+'h'+string(localtime_m,'(I0)') |
---|
137 | title_user='Surface pressure (Pa) / Local time = '+string(start_lt + freq_out*float(nt)/3700.,'(F6.3)') |
---|
138 | print, title_user |
---|
139 | ; |
---|
140 | ; |
---|
141 | ; |
---|
142 | map_latlon, $ |
---|
143 | what_I_plot, $ ; 2D field |
---|
144 | lon, $ ; 1D latitude |
---|
145 | lat, $ ; 1D longitude |
---|
146 | minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
147 | maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
148 | ; overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
149 | overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
150 | overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
151 | ct=pal, $ ; color table (33-rainbow is default) |
---|
152 | colors=colors, $ ; number of colors/levels (32 is default) |
---|
153 | title=title_user, $ ; title of the plot ('' is default) |
---|
154 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
155 | ; |
---|
156 | ; |
---|
157 | ; |
---|
158 | PS_End, /PNG |
---|
159 | alpha=alpha+1 |
---|
160 | endfor |
---|
161 | end |
---|