source: trunk/SRC/Tests/TestsOld/tst_pltt_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: 2.8 KB
Line 
1PRO tst_pltt, IMAGE = image
2; commons
3@common
4@common
5;
6; figure 2: regular grid
7;
8  CASE jpi*key_stride[0]+jpj*key_stride[1] OF
9    180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
10    360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'
11    720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'
12  ENDCASE
13  file = isafile(file, title = 'Where is '+file+' ?', /lookalldir)
14  IF size(file, /type) NE 7 THEN return
15;
16  dummy = ''
17  cnt = 1
18;
19; -1/1 xt plot
20;
21  IF key_onearth THEN domdef, 20, 380, -1, 1, 0, gdept[0] $
22  ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, gdept[0]
23;
24  temp = read_ncdf('votemper', 00101, 01231, file = file)
25  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
26  help, jpt, time
27  pltt, temp
28  if keyword_set(image) then saveimage, 'tst_pltt_'+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  pltt, temp, /nocontour
33  if keyword_set(image) then saveimage, 'tst_pltt_'+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  pltt, temp, /color_c
38  if keyword_set(image) then saveimage, 'tst_pltt_'+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  pltt, temp, /nocouleur
43  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
44  ELSE read, dummy,  prompt = 'press return for the next plot'
45  cnt = cnt + 1
46;
47; equatorial plot
48;
49  IF key_onearth THEN BEGIN
50    a = abs(gphit[0, *])
51    yind = where(a EQ min(a))
52    domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $
53      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], grille = 'T', /yindex
54  ENDIF ELSE BEGIN
55    domdef, min(glamt), max(glamf), jpj/2, jpj/2 $
56      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], grille = 'T', /yindex
57  ENDELSE
58  temp = read_ncdf('votemper', 00101, 01231, file = file)
59  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
60  pltt, temp
61  if keyword_set(image) then saveimage, 'tst_pltt_'+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, gdept[0], gdept[0], grille = 'T', /xindex
71  ENDIF ELSE BEGIN
72    domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], grille = 'T', /xindex
73  ENDELSE
74
75  temp = read_ncdf('votemper', 00101, 01231, file = file)
76  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
77  pltt, temp
78
79  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png
80  cnt = cnt + 1
81
82  return
83end
Note: See TracBrowser for help on using the repository browser.