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