source: trunk/MESOSCALE/PLOT/SPEC/PROFILE/profile_uvt.pro @ 205

Last change on this file since 205 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

File size: 6.4 KB
Line 
1pro profile_uvt
2;
3;
4;
5what_I_plot=0.
6overcontour=0
7mention=''
8@map_uvt_inc.pro
9SPAWN, '\rm param_plot.idl ; cp map_uvt_inc.pro param_plot.idl ; cp -f map_uvt_inc.pro '+save_ps+'.map_uvt_inc.pro'
10if (n_elements(coord2d) eq 0) then coord2d='false'
11;
12;
13;
14  zefile=save_ps
15  PS_Start, filename=zefile+'.ps'
16  print, zefile+'.ps'
17  !P.Charsize = 1.2
18  !p.charthick = 2.0
19  !p.thick = 2.0
20  !x.thick = 2.0
21  !y.thick = 2.0
22!p.multi=[0,2,2]
23!P.Charsize = 1.0
24;
25;
26;
27if (n_elements(field1) ne 0) then getcdf, file=filename, charvar=field1, invar=cfield1
28u  = getget(filename, 'Um',   count=[1,1,0,1], offset=[zex, zey, 0,ntime])
29v  = getget(filename, 'Vm',   count=[1,1,0,1], offset=[zex, zey, 0,ntime])
30w  = getget(filename, 'WAVE', count=[1,1,0,1], offset=[zex, zey, 0,ntime])
31u2 = getget(filename, 'Um',   count=[1,1,0,1], offset=[zex2,zey2,0,ntime])
32v2 = getget(filename, 'Vm',   count=[1,1,0,1], offset=[zex2,zey2,0,ntime])
33w2 = getget(filename, 'WAVE', count=[1,1,0,1], offset=[zex2,zey2,0,ntime])
34tk = getget(filename, 'tk',   count=[1,1,0,1], offset=[zex, zey, 0,ntime])
35tk2 = getget(filename, 'tk',   count=[1,1,0,1], offset=[zex2, zey2, 0,ntime])
36tpot = getget(filename, 'tpot',   count=[1,1,0,1], offset=[zex, zey, 0,ntime])
37tpot2 = getget(filename, 'tpot',   count=[1,1,0,1], offset=[zex2, zey2, 0,ntime])
38getcdf, file=filename, charvar='XLONG', invar=longi
39getcdf, file=filename, charvar='XLAT', invar=lati
40getcdf, file=filename, charvar='HGT', invar=hgt
41getcdf, file=filename, charvar='vert', invar=vert
42getcdf, file=filename, charvar='TSURF', invar=tsurf
43getcdf, file=filename, charvar='USTM', invar=ustar
44print, longi(zex ,zey ,0), lati(zex ,zey ,0)
45print, longi(zex2,zey2,0), lati(zex2,zey2,0)
46;
47;
48;
49loadct, 0
50contour, reform(hgt(*,*,ntime)), $
51reform(longi(*,*,ntime)), $
52reform(lati(*,*,ntime)), $
53nlevels=20, $
54xtitle='Longitude', $
55ytitle='Latitude', $
56;xrange=[-146.,-126.], $
57;yrange=[11.,27.], $
58xrange=[-141.,-133.], $
59yrange=[18.,26.], $
60xtickinterval=1., $
61ytickinterval=1., $
62max_value=22000., $
63min_value=-4000., $
64/cell_fill
65xyouts, longi(zex ,zey ,0), lati(zex ,zey ,0), '+ full', color=255, charsize=1.5
66xyouts, longi(zex2 ,zey2 ,0), lati(zex2 ,zey2 ,0), '+ dashed', color=255, charsize=1.5
67;
68;
69;
70        ;plot, tsurf(zex ,zey ,*), yrange=[150, 300]
71        ;oplot, tsurf(zex2 ,zey2 ,*), linestyle=1
72;
73;
74;
75what_I_plot = tk & column = vert
76;yeye = tsurf(zex,zey,ntime) & what_I_plot = [yeye,reform(what_I_plot)] & column = [0.01, vert]
77overplot = tk2 & overplot_column = vert
78;yeye = tsurf(zex2,zey2,ntime) & overplot = [yeye,reform(overplot)] & overplot_column = [0.01, vert]
79print, min(what_I_plot), max(what_I_plot)
80print, min(overplot), max(overplot)
81mention='three'
82;
83;
84;
85profile, $
86        what_I_plot, $                          ; 1D vertical profile
87        column, $                               ; altitudes     
88        alt=alt, $                              ; altitude range [altmin, altmax]
89        minfield=minfield_init2, $               ; minimum value of plotted field (=0: calculate)
90        maxfield=maxfield_init2, $               ; maximum value of plotted field (=0: calculate)
91        inprofile=overplot, $                   ; another vertical profile to overplot
92        incolumn=overplot_column, $             ; altitudes of the other vertical profile (in case /= column)
93        discrete=discrete, $                    ; show the profile points (= type of points in !psym)
94        title_plot=title_user, $                ; title of the plot ('Profile' is default)
95        title_axis=title_axis2, $                ; title of the [x,y] axis (['Field','Altitude'] is default)
96        mention=mention                         ; add text precision within the plot window (default is nothing or '')
97xyouts, 210.,20.,'T!Ds!N = '+string(tsurf(zex,zey,ntime),'(I0)')+' K'
98xyouts, 163.,20.,'T!Ds!N = '+string(tsurf(zex2,zey2,ntime),'(I0)')+' K'
99;
100;
101;
102what_I_plot = w & column = vert
103overplot = w2 & overplot_column = vert
104;
105;
106;
107profile, $
108        what_I_plot, $                          ; 1D vertical profile
109        column, $                               ; altitudes     
110        alt=alt, $                              ; altitude range [altmin, altmax]
111        minfield=minfield_init, $               ; minimum value of plotted field (=0: calculate)
112        maxfield=maxfield_init, $               ; maximum value of plotted field (=0: calculate)
113        inprofile=overplot, $                   ; another vertical profile to overplot
114        incolumn=overplot_column, $             ; altitudes of the other vertical profile (in case /= column)
115        discrete=discrete, $                    ; show the profile points (= type of points in !psym)
116        title_plot=title_user, $                ; title of the plot ('Profile' is default)
117        title_axis=title_axis, $                ; title of the [x,y] axis (['Field','Altitude'] is default)
118        mention=mention                         ; add text precision within the plot window (default is nothing or '')
119;
120;
121;
122        ;plot, tpot, vert
123        ;oplot, tpot2, vert, linestyle=2
124        ;PS_End, /PNG
125        ;stop
126what_I_plot = u*u + v*v & what_I_plot = sqrt(what_I_plot) & column = vert
127overplot = u2*u2 + v2*v2 & overplot = sqrt(overplot) & overplot_column = vert
128print, min(what_I_plot), max(what_I_plot)
129print, min(overplot), max(overplot)
130mention='two'
131;
132;
133;
134profile, $
135        what_I_plot, $                          ; 1D vertical profile
136        column, $                               ; altitudes     
137        alt=alt, $                              ; altitude range [altmin, altmax]
138        minfield=minfield_init2, $               ; minimum value of plotted field (=0: calculate)
139        maxfield=maxfield_init2, $               ; maximum value of plotted field (=0: calculate)
140        inprofile=overplot, $                   ; another vertical profile to overplot
141        incolumn=overplot_column, $             ; altitudes of the other vertical profile (in case /= column)
142        discrete=discrete, $                    ; show the profile points (= type of points in !psym)
143        title_plot=title_user, $                ; title of the plot ('Profile' is default)
144        title_axis=title_axis2, $                ; title of the [x,y] axis (['Field','Altitude'] is default)
145        mention=mention                         ; add text precision within the plot window (default is nothing or '')
146xyouts, 23.5,20.,'u!D*!N = '+string(ustar(zex,zey,ntime),'(F4.1)')+' m s!U-1!N'
147xyouts, 5.,20.,'u!D*!N = '+string(ustar(zex2,zey2,ntime),'(F4.1)')+' m s!U-1!N'
148;
149;
150;
151PS_End, /PNG
152end
Note: See TracBrowser for help on using the repository browser.