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