[131] | 1 | ;+ |
---|
[232] | 2 | ; |
---|
[157] | 3 | ; @file_comments |
---|
| 4 | ; |
---|
| 5 | ; @categories |
---|
| 6 | ; |
---|
[131] | 7 | ; @keyword IMAGE |
---|
| 8 | ; |
---|
| 9 | ; @history |
---|
| 10 | ; Sebastien Masson |
---|
| 11 | ; |
---|
[157] | 12 | ; @version |
---|
| 13 | ; $Id$ |
---|
[131] | 14 | ;- |
---|
[231] | 15 | ; |
---|
[58] | 16 | PRO tst_plt, IMAGE = image |
---|
| 17 | ; commons |
---|
[114] | 18 | ; |
---|
| 19 | compile_opt idl2, strictarrsubs |
---|
| 20 | ; |
---|
[58] | 21 | @cm_4mesh |
---|
| 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) |
---|
[58] | 31 | IF size(file, /type) NE 7 THEN return |
---|
| 32 | ; |
---|
| 33 | dummy = '' |
---|
| 34 | cnt = 1 |
---|
| 35 | ; |
---|
| 36 | domdef |
---|
| 37 | domdef, gdept[0], gdept[0], gridtype = 'T' |
---|
[77] | 38 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[58] | 39 | ; |
---|
| 40 | plt, temp, /landscape |
---|
| 41 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = .5, /nocontour, format = '(i3)' |
---|
| 46 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /color_c |
---|
| 51 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /nofill, c_thick = 1, coast_thick = 2 |
---|
| 56 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, cell_fill = 1 + (jpi EQ 180) ; we must use cell_fill = 2 for ORCA2 |
---|
| 61 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 62 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 63 | cnt = cnt + 1 |
---|
| 64 | ; zoom |
---|
| 65 | IF key_onearth THEN box = [40, 375, -20, 20] $ |
---|
[131] | 66 | ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4] |
---|
[58] | 67 | plt, temp, boxzoom = box, /landscape |
---|
| 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 | ; projections |
---|
| 73 | IF key_onearth THEN BEGIN |
---|
[131] | 74 | ; |
---|
[58] | 75 | plt, temp, boxzoom = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait |
---|
| 76 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, boxzoom = [20, 380, -90, 50], /ortho, map = [-90, 180, 0], /portrait |
---|
| 81 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 82 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 83 | cnt = cnt + 1 |
---|
| 84 | ; |
---|
| 85 | plt, temp, /ortho, map = [0, 0, 21], /portrait, /realcont |
---|
| 86 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 87 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 88 | cnt = cnt + 1 |
---|
| 89 | ; |
---|
| 90 | ENDIF |
---|
| 91 | |
---|
| 92 | ; deep plot |
---|
| 93 | ; domdef, 150, 150 ; => warning message |
---|
| 94 | domdef, gdept[jpk/2], gdept[jpk/2], gridtype = 'T' |
---|
[77] | 95 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[58] | 96 | plt, temp, realcont = 2*(key_onearth), /land |
---|
| 97 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png |
---|
| 98 | cnt = cnt + 1 |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | return |
---|
| 102 | end |
---|