source: trunk/mesoscale/PLOT/SPEC/GW/gravitwave2.pro @ 92

Last change on this file since 92 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: 3.2 KB
Line 
1pro gravitwave2
2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4file='../EN_COURS/gw/ok_hires_wrfout_d01_9999-09-09_09:00:00_z'
5file='../EN_COURS/gw/_wrfout_d01_9999-09-09_09:00:00_z'
6file='../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'
8file='../TESTGW/wind20c_wrfout_d01_9999-09-09_09:00:00_z'
9charvar='W' & charvarc='W'
10;charvar='tk' & charvarc='W'
11charvar='tk' & charvarc='W' & cond=1
12charvar='tk' & charvarc='tk' & cond=1
13;charvar='tpot' & charvarc='tpot'
14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16;
17;
18;
19what_I_plot=0. & overcontour=0.
20SPAWN, '\rm param_plot.idl ; cp gravitwave_inc.pro param_plot.idl'
21;
22;
23;
24getcdf, $
25        file=file, $
26        charvar=charvar, $
27        invar=invar
28getcdf, $
29        file=file, $
30        charvar=charvarc, $
31        invar=invarc
32getcdf, $
33        file=file, $
34        charvar='vert', $
35        invar=vert
36getcdf, $
37        file=file, $
38        charvar='PTOT', $
39        invar=columnp
40;
41;
42;
43for nt=1,15 do begin
44zefile='gravitwave_'+charvar+'_'+charvarc+'_'+string(nt+100,'(I0)')
45if (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;
59what_I_plot = reform(invar(*,1,*,nt))
60overcontour = 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
70xx = findgen(n_elements(what_I_plot(*,0)))
71zz = vert / 1000.
72
73w = where(what_I_plot lt 0.)
74w = where(what_I_plot lt -1.)
75w = where(what_I_plot lt -3.)
76if (w(0) ne -1) then begin
77for 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])
80endfor
81endif
82;
83;
84;
85map_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;
101PS_End, /PNG
102endfor
103end
Note: See TracBrowser for help on using the repository browser.