[57] | 1 | PRO tst_pltz, IMAGE = image |
---|
| 2 | ; commons |
---|
| 3 | @common |
---|
| 4 | ; |
---|
| 5 | IF jpk EQ 1 THEN return |
---|
| 6 | ; |
---|
| 7 | dummy = '' |
---|
| 8 | cnt = 1 |
---|
| 9 | ; |
---|
| 10 | CASE jpi*key_stride[0]+jpj*key_stride[1] OF |
---|
| 11 | 180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' |
---|
| 12 | 360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' |
---|
| 13 | 720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' |
---|
| 14 | ENDCASE |
---|
[77] | 15 | file = isafile(file, title = 'Where is '+file+' ?', /lookalldir) |
---|
[57] | 16 | IF size(file, /type) NE 7 THEN return |
---|
| 17 | ; |
---|
| 18 | IF key_onearth THEN domdef, 20, 380, -1, 1, 0, max(gdept) $ |
---|
| 19 | ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, max(gdept) |
---|
| 20 | ; |
---|
[77] | 21 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 22 | IF key_forgetold THEN help, temp.arr ELSE help, temp.tab |
---|
| 23 | ; |
---|
| 24 | pltz, temp, /portrait |
---|
| 25 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 26 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 27 | cnt = cnt + 1 |
---|
| 28 | ; |
---|
| 29 | pltz, temp, /portrait, /nocontour |
---|
| 30 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 31 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 32 | cnt = cnt + 1 |
---|
| 33 | ; |
---|
| 34 | pltz, temp, /portrait, /color_c |
---|
| 35 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 36 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 37 | cnt = cnt + 1 |
---|
| 38 | ; |
---|
| 39 | pltz, temp, /portrait, /nocouleur |
---|
| 40 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 41 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 42 | cnt = cnt + 1 |
---|
| 43 | ; |
---|
| 44 | pltz, temp, boite = [6000] |
---|
| 45 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boite = [6000], zoom = 1000 |
---|
| 50 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boite = [6000], zoom = 1000, ysurx = 2 |
---|
| 55 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boite = [6000], zoom = 1000, ysurx = 2, hzsurht = .5 |
---|
| 60 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | ; yt plot along the column that contain the largest latitude |
---|
| 65 | ; |
---|
| 66 | IF key_onearth THEN BEGIN |
---|
| 67 | ind = where(gphit EQ max(gphit)) |
---|
| 68 | ind = ind[0] MOD jpi |
---|
| 69 | domdef, ind, ind, -90, 90, 0, max(gdept), grille = 'T', /xindex |
---|
| 70 | ENDIF ELSE BEGIN |
---|
| 71 | domdef, jpi/2, jpi/2, min(gphit), max(gphif), 0, max(gdept), grille = 'T', /xindex |
---|
| 72 | ENDELSE |
---|
| 73 | |
---|
[77] | 74 | temp = read_ncdf('votemper', 00101, 01231, file = file) |
---|
[57] | 75 | pltz, temp, boite = [6000], zoom = 1000, ysurx = 2, hzsurht = .5 |
---|
| 76 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 77 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 78 | cnt = cnt + 1 |
---|
| 79 | ; |
---|
| 80 | ; oblique sections... |
---|
| 81 | ; |
---|
| 82 | IF key_onearth THEN endpoints = [110, -45, 290, 45] $ |
---|
| 83 | ELSE endpoints = [jpi/6, jpj/3, 5*jpi/6, 2*jpj/3] |
---|
| 84 | domdef, endpoints = endpoints, type = 'pltz' |
---|
[77] | 85 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 86 | pltz, temp, endpoints = endpoints |
---|
| 87 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 88 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 89 | cnt = cnt + 1 |
---|
| 90 | ; |
---|
| 91 | ; false oblique sections... |
---|
| 92 | ; |
---|
| 93 | IF key_onearth THEN endpoints = [180, -70, 180, 90] $ |
---|
| 94 | ELSE endpoints = [jpi/2+0.25, +0.25, jpi/2+0.25, jpj] |
---|
| 95 | domdef, 6000, endpoints = endpoints, type = 'pltz' |
---|
[77] | 96 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 97 | pltz, temp, endpoints = endpoints, boite = [6000] $ |
---|
| 98 | , zoom = 1000, ysurx = 2, hzsurht = .5 ; , /showbuild |
---|
| 99 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 100 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 101 | cnt = cnt + 1 |
---|
| 102 | ; |
---|
| 103 | ; comparison between real section and false oblique sections |
---|
| 104 | ; |
---|
| 105 | IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN |
---|
| 106 | IF key_onearth THEN box = [20, 380, 0, 0, 0, 6000] $ |
---|
| 107 | ELSE box = [0, jpi-1, jpj/2, jpj/2, 0, 6000] |
---|
| 108 | domdef, box, grille = 'T' |
---|
[77] | 109 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 110 | pltz, temp, boite = [6000], /portrait, petit = [1, 2, 1] $ |
---|
| 111 | , zoom = 500, hzsurht = .5 |
---|
| 112 | |
---|
| 113 | IF key_onearth THEN endpoints = [20, 0, 380, 0] $ |
---|
| 114 | ELSE endpoints = [0, jpj/2, jpi-1, jpj/2] |
---|
| 115 | domdef, 6000, endpoints = endpoints, type = 'pltz', grille = 'T' |
---|
[77] | 116 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 117 | pltz, temp, endpoints = endpoints, boite = [6000] $ |
---|
| 118 | , zoom = 500, hzsurht = .5 $ |
---|
| 119 | , petit = [1, 2, 2], /noerase |
---|
| 120 | |
---|
| 121 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png |
---|
| 122 | cnt = cnt + 1 |
---|
| 123 | ENDIF |
---|
| 124 | |
---|
| 125 | return |
---|
| 126 | end |
---|