1 | pro gravitwave2 |
---|
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
4 | file='../EN_COURS/gw/ok_hires_wrfout_d01_9999-09-09_09:00:00_z' |
---|
5 | file='../EN_COURS/gw/_wrfout_d01_9999-09-09_09:00:00_z' |
---|
6 | file='../LMD_MM_MARS/TESTGW/_wrfout_d01_9999-09-09_09:00:00_z' |
---|
7 | ;file='../LMD_MM_MARS/TESTGW/wind15_wrfout_d01_9999-09-09_09:00:00_z' |
---|
8 | file='../TESTGW/wind20c_wrfout_d01_9999-09-09_09:00:00_z' |
---|
9 | charvar='W' & charvarc='W' |
---|
10 | ;charvar='tk' & charvarc='W' |
---|
11 | charvar='tk' & charvarc='W' & cond=1 |
---|
12 | charvar='tk' & charvarc='tk' & cond=1 |
---|
13 | ;charvar='tpot' & charvarc='tpot' |
---|
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
16 | ; |
---|
17 | ; |
---|
18 | ; |
---|
19 | what_I_plot=0. & overcontour=0. |
---|
20 | SPAWN, '\rm param_plot.idl ; cp gravitwave_inc.pro param_plot.idl' |
---|
21 | ; |
---|
22 | ; |
---|
23 | ; |
---|
24 | getcdf, $ |
---|
25 | file=file, $ |
---|
26 | charvar=charvar, $ |
---|
27 | invar=invar |
---|
28 | getcdf, $ |
---|
29 | file=file, $ |
---|
30 | charvar=charvarc, $ |
---|
31 | invar=invarc |
---|
32 | getcdf, $ |
---|
33 | file=file, $ |
---|
34 | charvar='vert', $ |
---|
35 | invar=vert |
---|
36 | getcdf, $ |
---|
37 | file=file, $ |
---|
38 | charvar='PTOT', $ |
---|
39 | invar=columnp |
---|
40 | ; |
---|
41 | ; |
---|
42 | ; |
---|
43 | for nt=1,15 do begin |
---|
44 | zefile='gravitwave_'+charvar+'_'+charvarc+'_'+string(nt+100,'(I0)') |
---|
45 | if (n_elements(cond) ne 0) then zefile = 'cond_' + zefile |
---|
46 | ; |
---|
47 | ; |
---|
48 | ; |
---|
49 | PS_Start, filename=zefile+'.ps' |
---|
50 | print, zefile+'.ps' |
---|
51 | !P.Charsize = 1.2 |
---|
52 | !p.charthick = 2.0 |
---|
53 | !p.thick = 2.0 |
---|
54 | !x.thick = 2.0 |
---|
55 | !y.thick = 2.0 |
---|
56 | ; |
---|
57 | ; |
---|
58 | ; |
---|
59 | what_I_plot = reform(invar(*,1,*,nt)) |
---|
60 | overcontour = reform(invarc(*,1,*,nt)) |
---|
61 | if (n_elements(cond) ne 0) then begin |
---|
62 | column = columnp |
---|
63 | ;column = reform(columnp(*,1,*,1)) |
---|
64 | @tempcond.inc |
---|
65 | yeye = reform(overplot(*,1,*,nt)) |
---|
66 | w = where(yeye le 0.) & yeye[w] = 0. |
---|
67 | if (charvar eq 'tk') then what_I_plot = what_I_plot - yeye |
---|
68 | if (charvarc eq 'tk') then overcontour = overcontour - yeye |
---|
69 | endif |
---|
70 | xx = findgen(n_elements(what_I_plot(*,0))) |
---|
71 | zz = vert / 1000. |
---|
72 | |
---|
73 | w = where(what_I_plot lt 0.) |
---|
74 | w = where(what_I_plot lt -1.) |
---|
75 | w = where(what_I_plot lt -3.) |
---|
76 | if (w(0) ne -1) then begin |
---|
77 | for i=0,n_elements(w)-1 do begin |
---|
78 | ind = ARRAY_INDICES(what_I_plot, w(i)) |
---|
79 | print, 'x '+string(ind(0),'(I0)')+' z '+string(zz(ind(1)),'(I0)')+' t '+string(nt*925./3700.,'(F4.1)'), what_I_plot(ind[0],ind[1]) |
---|
80 | endfor |
---|
81 | endif |
---|
82 | ; |
---|
83 | ; |
---|
84 | ; |
---|
85 | map_latlon, $ |
---|
86 | what_I_plot, $ ; 2D field |
---|
87 | xx, $ ; 1D latitude |
---|
88 | zz, $ ; 1D longitude |
---|
89 | ; minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
90 | ; maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
91 | overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
92 | ; overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
93 | ; overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
94 | ; ct=pal, $ ; color table (33-rainbow is default) |
---|
95 | ; colors=colors, $ ; number of colors/levels (32 is default) |
---|
96 | ; title=title_user, $ ; title of the plot ('' is default) |
---|
97 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
98 | ; |
---|
99 | ; |
---|
100 | ; |
---|
101 | PS_End, /PNG |
---|
102 | endfor |
---|
103 | end |
---|