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