[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 | ;- |
---|
[327] | 16 | PRO tst_pltt_old, IMAGE=image |
---|
[114] | 17 | ; |
---|
| 18 | compile_opt idl2, strictarrsubs |
---|
| 19 | ; |
---|
[57] | 20 | @common |
---|
| 21 | @common |
---|
| 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 |
---|
[77] | 30 | file = isafile(file, title = 'Where is '+file+' ?', /lookalldir) |
---|
[57] | 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 | ; |
---|
[77] | 41 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
[57] | 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, /nocouleur |
---|
| 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 | ; |
---|
[189] | 66 | IF key_onearth THEN BEGIN |
---|
[57] | 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)], grille = 'T', /yindex |
---|
[189] | 71 | ENDIF ELSE BEGIN |
---|
[57] | 72 | domdef, min(glamt), max(glamf), jpj/2, jpj/2 $ |
---|
| 73 | , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], grille = 'T', /yindex |
---|
[189] | 74 | ENDELSE |
---|
[77] | 75 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
[57] | 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 | ; |
---|
[189] | 84 | IF key_onearth THEN BEGIN |
---|
[57] | 85 | ind = where(gphit EQ max(gphit)) |
---|
| 86 | ind = ind[0] MOD jpi |
---|
| 87 | domdef, ind, ind, -90, 90, gdept[0], gdept[0], grille = 'T', /xindex |
---|
[189] | 88 | ENDIF ELSE BEGIN |
---|
[57] | 89 | domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], grille = 'T', /xindex |
---|
[189] | 90 | ENDELSE |
---|
[57] | 91 | |
---|
[77] | 92 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
[57] | 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 |
---|