source: trunk/SRC/Tests/TestsOld/tst_pltt_old.pro @ 189

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

remove format=raw in all html files 2/2; add svn keyword to idldoc-lib.adp

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