source: trunk/Tests/tst_pltt.pro @ 58

Last change on this file since 58 was 58, checked in by pinsard, 18 years ago

upgrade of Tests according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

  • Property svn:executable set to *
File size: 2.9 KB
Line 
1PRO tst_pltt, IMAGE = image
2; commons
3@cm_4mesh
4@cm_4cal
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, iodirectory = [iodir, homedir, !path] $
14                 , title = 'Where is '+file+' ?', /recursive)
15  IF size(file, /type) NE 7 THEN return
16;
17  dummy = ''
18  cnt = 1
19;
20; -1/1 xt plot
21;
22  IF key_onearth THEN domdef, 20, 380, -1, 1, 0, gdept[0] $
23  ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, gdept[0]
24;
25  temp = read_ncdf('votemper', 10101, 11231, file = file)
26  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
27  help, jpt, time
28  pltt, temp
29  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
30  ELSE read, dummy,  prompt = 'press return for the next plot'
31  cnt = cnt + 1
32;
33  pltt, temp, /nocontour
34  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
35  ELSE read, dummy,  prompt = 'press return for the next plot'
36  cnt = cnt + 1
37;
38  pltt, temp, /color_c
39  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
40  ELSE read, dummy,  prompt = 'press return for the next plot'
41  cnt = cnt + 1
42;
43  pltt, temp, /nofill
44  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
45  ELSE read, dummy,  prompt = 'press return for the next plot'
46  cnt = cnt + 1
47;
48; equatorial plot
49;
50  IF key_onearth THEN BEGIN
51    a = abs(gphit[0, *])
52    yind = where(a EQ min(a))
53    domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $
54      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex
55  ENDIF ELSE BEGIN
56    domdef, min(glamt), max(glamf), jpj/2, jpj/2 $
57      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex
58  ENDELSE
59  temp = read_ncdf('votemper', 10101, 11231, file = file)
60  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
61  pltt, temp
62  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
63  ELSE read, dummy,  prompt = 'press return for the next plot'
64  cnt = cnt + 1
65;
66; yt plot along the column that contain the largest latitude
67;
68  IF key_onearth THEN BEGIN
69    ind = where(gphit EQ max(gphit))
70    ind = ind[0] MOD jpi
71    domdef, ind, ind, -90, 90, gdept[0], gdept[0], gridtype = 'T', /xindex
72  ENDIF ELSE BEGIN
73    domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], gridtype = 'T', /xindex
74  ENDELSE
75
76  temp = read_ncdf('votemper', 10101, 11231, file = file)
77  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
78  pltt, temp
79
80  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png
81  cnt = cnt + 1
82
83  return
84end
Note: See TracBrowser for help on using the repository browser.