source: trunk/MESOSCALE/LMD_MM_MARS/SRC/ARWpost/scripts/cross_z.gs @ 206

Last change on this file since 206 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1'reinit'
2'open real_z.ctl'
3
4** script needs z level data as input
5** will create cross sections NS ; EW, in middle of domain
6
7'set mpdset hires'
8'set display color white'
9'run rgbset.gs'
10
11say 'Create gif images as well (1=yes ; 0=no)'
12pull ans
13frame = 1
14
15'q file'
16rec=sublin(result,5)
17_endtime=subwrd(rec,12)
18num_x=subwrd(rec,3)
19num_y=subwrd(rec,6)
20num_z=subwrd(rec,9)
21
22dis_x=num_x/2
23dis_y=num_y/2
24
25runscript = 1
26dis_t = 1
27'set z 1 ' num_z
28'set y ' dis_y
29
30** DO EW cross section
31while(runscript)
32say 'Plotting EW cross section'
33'set t ' dis_t
34'q dims'
35rec=sublin(result,5)
36_analysis=subwrd(rec,6)
37say 'Time is ' _analysis
38
39'c'
40'set grads off'
41'set gxout shaded'
42'set clevs 10 20 30 40 50 60 70 80 90 100'       
43'set ccols 0 0 0  0 33 34 35 36 37 38  39'
44'd rh'
45'set gxout contour'
46'set ccolor 1'
47'set cthick 2'
48'set cint 5'
49'd tc'
50'set strsiz .2'
51'set string 1 l 6'
52'draw string 2.7 8.35   E-W  Relative Humidity and T(C)'         
53'set strsiz .15'
54'set string 1 l 3'
55'draw string 8.4 8.2 ' _analysis
56'draw string 1.5 8.2 y=' dis_y
57'run cbar.gs'
58if(ans)
59'printim crossEW'frame'.gif gif '
60frame=frame+1
61endif
62pull dummy
63
64if ( dis_t=_endtime )
65 runscript=0
66endif
67dis_t = dis_t + 1
68endwhile
69
70'reset'
71
72runscript = 1
73dis_t = 1
74'set z 1 ' num_z
75'set x ' dis_x
76
77
78** DO NS cross section
79say 'Plotting NS cross section'
80while(runscript)
81'set t ' dis_t
82'q dims'
83rec=sublin(result,5)
84_analysis=subwrd(rec,6)
85say 'Time is ' _analysis
86
87'c'
88'set grads off'
89'set gxout shaded'
90'set clevs 10 20 30 40 50 60 70 80 90 100'       
91'set ccols 0 0 0  0 33 34 35 36 37 38  39'
92'd rh'
93'set gxout contour'
94'set ccolor 1'
95'set cthick 2'
96'set cint 5'
97'd tc'
98'set strsiz .2'
99'set string 1 l 6'
100'draw string 2.7 8.35   N-S  Relative Humidity and T(C)'         
101'set strsiz .15'
102'set string 1 l 3'
103'draw string 8.4 8.2 ' _analysis
104'draw string 1.5 8.2 x=' dis_x
105'run cbar.gs'
106if(ans)
107'printim crossNS'frame'.gif gif '
108frame=frame+1
109endif
110pull dummy
111
112if ( dis_t=_endtime )
113 runscript=0
114endif
115dis_t = dis_t + 1
116endwhile
117
Note: See TracBrowser for help on using the repository browser.