[58] | 1 | PRO tst_plt, IMAGE = image |
---|
| 2 | ; commons |
---|
| 3 | @cm_4mesh |
---|
| 4 | ; |
---|
| 5 | ; figure 2: regular grid |
---|
| 6 | ; |
---|
| 7 | CASE jpi*key_stride[0]+jpj*key_stride[1] OF |
---|
| 8 | 180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' |
---|
| 9 | 360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' |
---|
| 10 | 720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' |
---|
| 11 | ENDCASE |
---|
[77] | 12 | file = isafile(file, title = 'Where is '+file+' ?', /lookalldir) |
---|
[58] | 13 | IF size(file, /type) NE 7 THEN return |
---|
| 14 | ; |
---|
| 15 | dummy = '' |
---|
| 16 | cnt = 1 |
---|
| 17 | ; |
---|
| 18 | domdef |
---|
| 19 | domdef, gdept[0], gdept[0], gridtype = 'T' |
---|
[77] | 20 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[58] | 21 | ; |
---|
| 22 | plt, temp, /landscape |
---|
| 23 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 24 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 25 | cnt = cnt + 1 |
---|
| 26 | ; |
---|
| 27 | plt, temp, -2, 31, int = .5, /nocontour, format = '(i3)' |
---|
| 28 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /color_c |
---|
| 33 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /nofill, c_thick = 1, coast_thick = 2 |
---|
| 38 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, cell_fill = 1 + (jpi EQ 180) ; we must use cell_fill = 2 for ORCA2 |
---|
| 43 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 44 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 45 | cnt = cnt + 1 |
---|
| 46 | ; zoom |
---|
| 47 | IF key_onearth THEN box = [40, 375, -20, 20] $ |
---|
| 48 | ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4] |
---|
| 49 | plt, temp, boxzoom = box, /landscape |
---|
| 50 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | ; projections |
---|
| 55 | IF key_onearth THEN BEGIN |
---|
| 56 | ; |
---|
| 57 | plt, temp, boxzoom = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait |
---|
| 58 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, boxzoom = [20, 380, -90, 50], /ortho, map = [-90, 180, 0], /portrait |
---|
| 63 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, /ortho, map = [0, 0, 21], /portrait, /realcont |
---|
| 68 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 69 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 70 | cnt = cnt + 1 |
---|
| 71 | ; |
---|
| 72 | ENDIF |
---|
| 73 | |
---|
| 74 | ; deep plot |
---|
| 75 | ; domdef, 150, 150 ; => warning message |
---|
| 76 | domdef, gdept[jpk/2], gdept[jpk/2], gridtype = 'T' |
---|
[77] | 77 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[58] | 78 | plt, temp, realcont = 2*(key_onearth), /land |
---|
| 79 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png |
---|
| 80 | cnt = cnt + 1 |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | return |
---|
| 84 | end |
---|