source: trunk/SRC/Tests/TestsOld/tst_plt_old.pro @ 77

Last change on this file since 77 was 77, checked in by smasson, 18 years ago

tests tst_* work again (brokken since DATA/SRC split)

  • Property svn:executable set to *
File size: 3.2 KB
Line 
1PRO tst_plt, IMAGE = image
2; commons
3@common
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
12  file = isafile(file, title = 'Where is '+file+' ?', /lookalldir)
13  IF size(file, /type) NE 7 THEN return
14;
15  dummy = ''
16  cnt = 1
17;
18  domdef
19  domdef, gdept[0], gdept[0], grille = 'T'
20  temp = read_ncdf('votemper', 00101, 00131, file = file)
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, /nocouleur, c_thick = 1, cont_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, boite = 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, boite = [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, boite = [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, /carte
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], grille = 'T'
77  temp = read_ncdf('votemper', 00101, 00131, file = file)
78  plt, temp, carte = 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
84end
Note: See TracBrowser for help on using the repository browser.