source: trunk/MESOSCALE/PLOT/SPEC/LES/turb_period.pro @ 134

Last change on this file since 134 was 85, checked in by aslmd, 14 years ago

LMD_MM_MARS et LMD_LES_MARS: ajout des routines IDL pour tracer les sorties --> voir mesoscale/PLOT

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