source: trunk/MESOSCALE/PLOT/SPEC/quick_plot.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: 2.7 KB
Line 
1
2
3SPAWN, '\rm param_plot.idl'
4SPAWN, "echo 'intervaly=5.' > param_plot.idl"
5SPAWN, "echo 'intervalx=5.' >> param_plot.idl"
6
7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8file='gcm' & header='' & nlines_header=4 & ncol = 2
9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10nlines = FILE_LINES(file)-nlines_header & data=FLTARR(ncol,nlines)
11OPENR, lun, file, /GET_LUN & READF, lun, header & READF, lun, header & READF, lun, header & READF, lun, header
12READF, lun, data & CLOSE, lun & FREE_LUN, lun
13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14altitude        = reform(data(0,*))
15temp            = reform(data(1,*))
16data = 0.
17
18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19file='meso' & header='' & nlines_header=4 & ncol = 2
20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
21nlines = FILE_LINES(file)-nlines_header & data=FLTARR(ncol,nlines)
22OPENR, lun, file, /GET_LUN & READF, lun, header & READF, lun, header & READF, lun, header & READF, lun, header
23READF, lun, data & CLOSE, lun & FREE_LUN, lun
24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
25altitude2       = reform(data(0,*))         
26temp2           = reform(data(1,*))
27data = 0.
28
29
30;
31; extremes
32;
33temp = temp - 12.
34temp2 = temp2 - 12.
35print, 'ATTENTION CACA CACA CACA'
36
37what_I_plot = temp ;- temp2
38column = altitude
39alt = [20.,60.]
40minfield_init = 100. ;-20 ;100.
41maxfield_init = 200. ;20. ;200.
42overplot = temp2
43overplot_column = altitude2
44discrete = 0
45title_user = 'GCM vs. mesoscale simulations'
46title_axis = ['Temperature (K)','Altitude above MOLA (km)']
47mention = ''
48
49profile, $
50        what_I_plot, $                          ; 1D vertical profile
51        column, $                               ; altitudes     
52        alt=alt, $                              ; altitude range [altmin, altmax]
53        minfield=minfield_init, $               ; minimum value of plotted field (=0: calculate)
54        maxfield=maxfield_init, $               ; maximum value of plotted field (=0: calculate)
55        inprofile=overplot, $                   ; another vertical profile to overplot
56        incolumn=overplot_column, $             ; altitudes of the other vertical profile (in case /= column)
57        discrete=discrete, $                    ; show the profile points (= type of points in !psym)
58        title_plot=title_user, $                ; title of the plot ('Profile' is default)
59        title_axis=title_axis, $                ; title of the [x,y] axis (['Field','Altitude'] is default)
60        mention=mention                         ; add text precision within the plot window (default is nothing or '')
61
62
63
64;
65; condensation
66;
67latcond=5.9e5
68tcond1mb=136.27
69r=192.
70bcond=1./tcond1mb
71acond=r/latcond
72press=610.*exp(-altitude/10.)
73overplot=1./(bcond-acond*alog(.0095*press))
74overplot_column=altitude
75oplot, overplot, overplot_column, psym=5
76
Note: See TracBrowser for help on using the repository browser.