1 | ;+ |
---|
2 | ; |
---|
3 | ; @file_comments |
---|
4 | ; |
---|
5 | ; @categories |
---|
6 | ; |
---|
7 | ; @keyword IMAGE |
---|
8 | ; |
---|
9 | ; @history |
---|
10 | ; Sebastien Masson |
---|
11 | ; |
---|
12 | ; @version |
---|
13 | ; $Id$ |
---|
14 | ; |
---|
15 | ;- |
---|
16 | PRO tst_pltt, IMAGE = image |
---|
17 | ; |
---|
18 | compile_opt idl2, strictarrsubs |
---|
19 | ; |
---|
20 | @cm_4mesh |
---|
21 | @cm_4cal |
---|
22 | ; |
---|
23 | ; figure 2: regular grid |
---|
24 | ; |
---|
25 | CASE jpi*key_stride[0]+jpj*key_stride[1] OF |
---|
26 | 180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' |
---|
27 | 360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' |
---|
28 | 720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' |
---|
29 | ENDCASE |
---|
30 | file = isafile(file, title = 'Where is '+file+' ?', /lookalldir) |
---|
31 | IF size(file, /type) NE 7 THEN return |
---|
32 | ; |
---|
33 | dummy = '' |
---|
34 | cnt = 1 |
---|
35 | ; |
---|
36 | ; -1/1 xt plot |
---|
37 | ; |
---|
38 | IF key_onearth THEN domdef, 20, 380, -1, 1, 0, gdept[0] $ |
---|
39 | ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, gdept[0] |
---|
40 | ; |
---|
41 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
42 | IF key_forgetold THEN help, temp.arr ELSE help, temp.tab |
---|
43 | help, jpt, time |
---|
44 | pltt, temp |
---|
45 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
46 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
47 | cnt = cnt + 1 |
---|
48 | ; |
---|
49 | pltt, temp, /nocontour |
---|
50 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
51 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
52 | cnt = cnt + 1 |
---|
53 | ; |
---|
54 | pltt, temp, /color_c |
---|
55 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
56 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
57 | cnt = cnt + 1 |
---|
58 | ; |
---|
59 | pltt, temp, /nofill |
---|
60 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
61 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
62 | cnt = cnt + 1 |
---|
63 | ; |
---|
64 | ; equatorial plot |
---|
65 | ; |
---|
66 | IF key_onearth THEN BEGIN |
---|
67 | a = abs(gphit[0, *]) |
---|
68 | yind = where(a EQ min(a)) |
---|
69 | domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $ |
---|
70 | , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex |
---|
71 | ENDIF ELSE BEGIN |
---|
72 | domdef, min(glamt), max(glamf), jpj/2, jpj/2 $ |
---|
73 | , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex |
---|
74 | ENDELSE |
---|
75 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
76 | IF key_forgetold THEN help, temp.arr ELSE help, temp.tab |
---|
77 | pltt, temp |
---|
78 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
79 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
80 | cnt = cnt + 1 |
---|
81 | ; |
---|
82 | ; yt plot along the column that contain the largest latitude |
---|
83 | ; |
---|
84 | IF key_onearth THEN BEGIN |
---|
85 | ind = where(gphit EQ max(gphit)) |
---|
86 | ind = ind[0] MOD jpi |
---|
87 | domdef, ind, ind, -90, 90, gdept[0], gdept[0], gridtype = 'T', /xindex |
---|
88 | ENDIF ELSE BEGIN |
---|
89 | domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], gridtype = 'T', /xindex |
---|
90 | ENDELSE |
---|
91 | |
---|
92 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
93 | IF key_forgetold THEN help, temp.arr ELSE help, temp.tab |
---|
94 | pltt, temp |
---|
95 | |
---|
96 | if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png |
---|
97 | cnt = cnt + 1 |
---|
98 | |
---|
99 | return |
---|
100 | end |
---|