[114] | 1 | PRO tst_plt_old, IMAGE = image |
---|
[57] | 2 | ; commons |
---|
[114] | 3 | ; |
---|
| 4 | compile_opt idl2, strictarrsubs |
---|
| 5 | ; |
---|
[57] | 6 | @common |
---|
| 7 | ; |
---|
| 8 | ; figure 2: regular grid |
---|
| 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 | dummy = '' |
---|
| 19 | cnt = 1 |
---|
| 20 | ; |
---|
| 21 | domdef |
---|
| 22 | domdef, gdept[0], gdept[0], grille = 'T' |
---|
[77] | 23 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 24 | ; |
---|
| 25 | plt, temp, /landscape |
---|
| 26 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = .5, /nocontour, format = '(i3)' |
---|
| 31 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /color_c |
---|
| 36 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | plt, temp, -2, 31, int = 1, /nocouleur, c_thick = 1, cont_thick = 2 |
---|
| 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, cell_fill = 1 + (jpi EQ 180) ; we must use cell_fill = 2 for ORCA2 |
---|
| 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 | ; zoom |
---|
| 50 | IF key_onearth THEN box = [40, 375, -20, 20] $ |
---|
| 51 | ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4] |
---|
| 52 | plt, temp, boite = box, /landscape |
---|
| 53 | if keyword_set(image) then saveimage, 'tst_plt_'+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 | ; projections |
---|
| 58 | IF key_onearth THEN BEGIN |
---|
| 59 | ; |
---|
| 60 | plt, temp, boite = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait |
---|
| 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 | ; |
---|
| 65 | plt, temp, boite = [20, 380, -90, 50], /ortho, map = [-90, 180, 0], /portrait |
---|
| 66 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 67 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 68 | cnt = cnt + 1 |
---|
| 69 | ; |
---|
| 70 | plt, temp, /ortho, map = [0, 0, 21], /portrait, /carte |
---|
| 71 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ |
---|
| 72 | ELSE read, dummy, prompt = 'press return for the next plot' |
---|
| 73 | cnt = cnt + 1 |
---|
| 74 | ; |
---|
| 75 | ENDIF |
---|
| 76 | |
---|
| 77 | ; deep plot |
---|
| 78 | ; domdef, 150, 150 ; => warning message |
---|
| 79 | domdef, gdept[jpk/2], gdept[jpk/2], grille = 'T' |
---|
[77] | 80 | temp = read_ncdf('votemper', 00101, 00131, file = file) |
---|
[57] | 81 | plt, temp, carte = 2*(key_onearth), /land |
---|
| 82 | if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png |
---|
| 83 | cnt = cnt + 1 |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | return |
---|
| 87 | end |
---|