[63] | 1 | PRO tst_pltz, IMAGE = image |
---|
| 2 | ; commons |
---|
| 3 | @cm_4mesh |
---|
| 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 |
---|
| 15 | file = isafile(file, iodirectory = [iodir, homedir, !path] $ |
---|
| 16 | , title = 'Where is '+file+' ?', /recursive) |
---|
| 17 | IF size(file, /type) NE 7 THEN return |
---|
| 18 | ; |
---|
| 19 | IF key_onearth THEN domdef, 20, 380, -1, 1, 0, max(gdept) $ |
---|
| 20 | ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, max(gdept) |
---|
| 21 | ; |
---|
| 22 | temp = read_ncdf('votemper', 10101, 10131, file = file) |
---|
| 23 | IF key_forgetold THEN help, temp.arr ELSE help, temp.tab |
---|
| 24 | ; |
---|
| 25 | pltz, temp, /portrait |
---|
| 26 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 27 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 28 | cnt = cnt + 1 |
---|
| 29 | ; |
---|
| 30 | pltz, temp, /portrait, /nocontour |
---|
| 31 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 32 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 33 | cnt = cnt + 1 |
---|
| 34 | ; |
---|
| 35 | pltz, temp, /portrait, /color_c |
---|
| 36 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 37 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 38 | cnt = cnt + 1 |
---|
| 39 | ; |
---|
| 40 | pltz, temp, /portrait, /nofill |
---|
| 41 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 42 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 43 | cnt = cnt + 1 |
---|
| 44 | ; |
---|
| 45 | pltz, temp, boxzoom = [6000] |
---|
| 46 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boxzoom = [6000], zoom = 1000 |
---|
| 51 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boxzoom = [6000], zoom = 1000, yxaspect = 2 |
---|
| 56 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | pltz, temp, boxzoom = [6000], zoom = 1000, yxaspect = 2, zratio = .5 |
---|
| 61 | if keyword_set(image) then saveimage, 'tst_pltz_'+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 | ; yt plot along the column that contain the largest latitude |
---|
| 66 | ; |
---|
| 67 | IF key_onearth THEN BEGIN |
---|
| 68 | ind = where(gphit EQ max(gphit)) |
---|
| 69 | ind = ind[0] MOD jpi |
---|
| 70 | domdef, ind, ind, -90, 90, 0, max(gdept), gridtype = 'T', /xindex |
---|
| 71 | ENDIF ELSE BEGIN |
---|
| 72 | domdef, jpi/2, jpi/2, min(gphit), max(gphif), 0, max(gdept), gridtype = 'T', /xindex |
---|
| 73 | ENDELSE |
---|
| 74 | |
---|
| 75 | temp = read_ncdf('votemper', 10101, 11231, file = file) |
---|
| 76 | pltz, temp, boxzoom = [6000], zoom = 1000, yxaspect = 2, zratio = .5 |
---|
| 77 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 78 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 79 | cnt = cnt + 1 |
---|
| 80 | ; |
---|
| 81 | ; oblique sections... |
---|
| 82 | ; |
---|
| 83 | IF key_onearth THEN endpoints = [110, -45, 290, 45] $ |
---|
| 84 | ELSE endpoints = [jpi/6, jpj/3, 5*jpi/6, 2*jpj/3] |
---|
| 85 | domdef, endpoints = endpoints, type = 'pltz' |
---|
| 86 | temp = read_ncdf('votemper', 10101, 10131, file = file) |
---|
| 87 | pltz, temp, endpoints = endpoints |
---|
| 88 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 89 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 90 | cnt = cnt + 1 |
---|
| 91 | ; |
---|
| 92 | ; false oblique sections... |
---|
| 93 | ; |
---|
| 94 | IF key_onearth THEN endpoints = [180, -70, 180, 90] $ |
---|
| 95 | ELSE endpoints = [jpi/2+0.25, +0.25, jpi/2+0.25, jpj] |
---|
| 96 | domdef, 6000, endpoints = endpoints, type = 'pltz' |
---|
| 97 | temp = read_ncdf('votemper', 10101, 10131, file = file) |
---|
| 98 | pltz, temp, endpoints = endpoints, boxzoom = [6000] $ |
---|
| 99 | , zoom = 1000, yxaspect = 2, zratio = .5 ; , /showbuild |
---|
| 100 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ |
---|
| 101 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 102 | cnt = cnt + 1 |
---|
| 103 | ; |
---|
| 104 | ; comparison between real section and false oblique sections |
---|
| 105 | ; |
---|
| 106 | IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN |
---|
| 107 | IF key_onearth THEN box = [20, 380, 0, 0, 0, 6000] $ |
---|
| 108 | ELSE box = [0, jpi-1, jpj/2, jpj/2, 0, 6000] |
---|
| 109 | domdef, box, gridtype = 'T' |
---|
| 110 | temp = read_ncdf('votemper', 10101, 10131, file = file) |
---|
| 111 | pltz, temp, boxzoom = [6000], /portrait, small = [1, 2, 1] $ |
---|
| 112 | , zoom = 500, zratio = .5 |
---|
| 113 | |
---|
| 114 | IF key_onearth THEN endpoints = [20, 0, 380, 0] $ |
---|
| 115 | ELSE endpoints = [0, jpj/2, jpi-1, jpj/2] |
---|
| 116 | domdef, 6000, endpoints = endpoints, type = 'pltz', gridtype = 'T' |
---|
| 117 | temp = read_ncdf('votemper', 10101, 10131, file = file) |
---|
| 118 | pltz, temp, endpoints = endpoints, boxzoom = [6000] $ |
---|
| 119 | , zoom = 500, zratio = .5 $ |
---|
| 120 | , small = [1, 2, 2], /noerase |
---|
| 121 | |
---|
| 122 | if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png |
---|
| 123 | cnt = cnt + 1 |
---|
| 124 | ENDIF |
---|
| 125 | |
---|
| 126 | return |
---|
| 127 | end |
---|