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