source: trunk/SRC/Tests/tst_pltt.pro @ 131

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

improvements of ReadWrite/?*.pro header

  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1;+
2; @keyword IMAGE
3;
4; @history
5; Sebastien Masson
6;
7; @version $Id$
8;-
9PRO tst_pltt, IMAGE = image
10; commons
11;
12  compile_opt idl2, strictarrsubs
13;
14@cm_4mesh
15@cm_4cal
16;
17; figure 2: regular grid
18;
19  CASE jpi*key_stride[0]+jpj*key_stride[1] OF
20    180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
21    360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'
22    720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'
23  ENDCASE
24  file = isafile(file, title = 'Where is '+file+' ?', /lookalldir)
25  IF size(file, /type) NE 7 THEN return
26;
27  dummy = ''
28  cnt = 1
29;
30; -1/1 xt plot
31;
32  IF key_onearth THEN domdef, 20, 380, -1, 1, 0, gdept[0] $
33  ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, gdept[0]
34;
35  temp = read_ncdf('votemper', 00101, 01231, file = file)
36  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
37  help, jpt, time
38  pltt, temp
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, /nocontour
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  pltt, temp, /color_c
49  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
50  ELSE read, dummy,  prompt = 'press return for the next plot'
51  cnt = cnt + 1
52;
53  pltt, temp, /nofill
54  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
55  ELSE read, dummy,  prompt = 'press return for the next plot'
56  cnt = cnt + 1
57;
58; equatorial plot
59;
60  IF key_onearth THEN BEGIN
61    a = abs(gphit[0, *])
62    yind = where(a EQ min(a))
63    domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $
64      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex
65  ENDIF ELSE BEGIN
66    domdef, min(glamt), max(glamf), jpj/2, jpj/2 $
67      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex
68  ENDELSE
69  temp = read_ncdf('votemper', 00101, 01231, file = file)
70  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
71  pltt, temp
72  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
73  ELSE read, dummy,  prompt = 'press return for the next plot'
74  cnt = cnt + 1
75;
76; yt plot along the column that contain the largest latitude
77;
78  IF key_onearth THEN BEGIN
79    ind = where(gphit EQ max(gphit))
80    ind = ind[0] MOD jpi
81    domdef, ind, ind, -90, 90, gdept[0], gdept[0], gridtype = 'T', /xindex
82  ENDIF ELSE BEGIN
83    domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], gridtype = 'T', /xindex
84  ENDELSE
85
86  temp = read_ncdf('votemper', 00101, 01231, file = file)
87  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
88  pltt, temp
89
90  if keyword_set(image) then saveimage, 'tst_pltt_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png
91  cnt = cnt + 1
92
93  return
94end
Note: See TracBrowser for help on using the repository browser.