source: trunk/SRC/Tests/TestsOld/tst_pltz_old.pro @ 325

Last change on this file since 325 was 325, checked in by pinsard, 16 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:keywords set to Id
File size: 5.2 KB
Line 
1;+
2;
3; @file_comments
4;
5; @categories
6;
7; @keyword IMAGE
8;
9; @history
10; Sebastien Masson
11;
12; @version
13; $Id$
14;
15;-
16PRO tst_pltz_old, IMAGE = image
17;
18  compile_opt idl2, strictarrsubs
19;
20@common
21;
22  IF jpk EQ 1 THEN return
23;
24  dummy = ''
25  cnt = 1
26;
27  CASE jpi*key_stride[0]+jpj*key_stride[1] OF
28    180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
29    360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'
30    720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'
31  ENDCASE
32  file = isafile(file, title = 'Where is '+file+' ?', /lookalldir)
33  IF size(file, /type) NE 7 THEN return
34;
35  IF key_onearth THEN domdef, 20, 380, -1, 1, 0, max(gdept) $
36  ELSE domdef, min(glamt), max(glamf), jpj/2-1, jpj/2+1, 0, max(gdept)
37;
38  temp = read_ncdf('votemper', 00101, 00131, file = file)
39  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab
40;
41  pltz, temp, /portrait
42  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
43  ELSE read, dummy,  prompt = 'press return for the next plot'
44  cnt = cnt + 1
45;
46  pltz, temp, /portrait, /nocontour
47  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
48  ELSE read, dummy,  prompt = 'press return for the next plot'
49  cnt = cnt + 1
50;
51  pltz, temp, /portrait, /color_c
52  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
53  ELSE read, dummy,  prompt = 'press return for the next plot'
54  cnt = cnt + 1
55;
56  pltz, temp, /portrait, /nocouleur
57  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
58  ELSE read, dummy,  prompt = 'press return for the next plot'
59  cnt = cnt + 1
60;
61  pltz, temp, boite = [6000]
62  if keyword_set(image) then saveimage, 'tst_pltz_'+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  pltz, temp, boite = [6000], zoom = 1000
67  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
68  ELSE read, dummy,  prompt = 'press return for the next plot'
69  cnt = cnt + 1
70;
71  pltz, temp, boite = [6000], zoom = 1000, ysurx = 2
72  if keyword_set(image) then saveimage, 'tst_pltz_'+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  pltz, temp, boite = [6000], zoom = 1000, ysurx = 2, hzsurht = .5
77  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
78  ELSE read, dummy,  prompt = 'press return for the next plot'
79  cnt = cnt + 1
80;
81; yt plot along the column that contain the largest latitude
82;
83  IF key_onearth THEN BEGIN
84    ind = where(gphit EQ max(gphit))
85    ind = ind[0] MOD jpi
86    domdef, ind, ind, -90, 90, 0, max(gdept), grille = 'T', /xindex
87  ENDIF ELSE BEGIN
88    domdef, jpi/2, jpi/2, min(gphit), max(gphif), 0, max(gdept), grille = 'T', /xindex
89  ENDELSE
90
91  temp = read_ncdf('votemper', 00101, 01231, file = file)
92  pltz, temp, boite = [6000], zoom = 1000, ysurx = 2, hzsurht = .5
93  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
94  ELSE read, dummy,  prompt = 'press return for the next plot'
95  cnt = cnt + 1
96;
97; oblique sections...
98;
99  IF key_onearth THEN endpoints = [110, -45, 290, 45] $
100  ELSE endpoints = [jpi/6, jpj/3, 5*jpi/6, 2*jpj/3]
101  domdef, endpoints = endpoints, type = 'pltz'
102  temp = read_ncdf('votemper', 00101, 00131, file = file)
103  pltz, temp, endpoints = endpoints
104  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
105  ELSE read, dummy,  prompt = 'press return for the next plot'
106  cnt = cnt + 1
107;
108; false oblique sections...
109;
110  IF key_onearth THEN endpoints = [180, -70, 180, 90] $
111  ELSE endpoints = [jpi/2+0.25, +0.25, jpi/2+0.25,  jpj]
112  domdef, 6000, endpoints = endpoints, type = 'pltz'
113  temp = read_ncdf('votemper', 00101, 00131, file = file)
114  pltz, temp, endpoints = endpoints, boite = [6000] $
115        , zoom = 1000, ysurx = 2, hzsurht = .5 ; , /showbuild
116  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $
117  ELSE read, dummy,  prompt = 'press return for the next plot'
118  cnt = cnt + 1
119;
120; comparison between real section and false oblique sections
121;
122  IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN
123    IF key_onearth THEN box = [20, 380, 0, 0, 0, 6000] $
124    ELSE box = [0, jpi-1, jpj/2, jpj/2, 0, 6000]
125    domdef, box, grille = 'T'
126    temp = read_ncdf('votemper', 00101, 00131, file = file)
127    pltz, temp, boite = [6000], /portrait, petit = [1, 2, 1] $
128          , zoom = 500, hzsurht = .5
129
130    IF key_onearth THEN endpoints = [20, 0, 380, 0] $
131    ELSE endpoints = [0, jpj/2, jpi-1, jpj/2]
132    domdef, 6000, endpoints = endpoints, type = 'pltz', grille = 'T'
133    temp = read_ncdf('votemper', 00101, 00131, file = file)
134    pltz, temp, endpoints = endpoints, boite = [6000] $
135          , zoom = 500, hzsurht = .5 $
136          , petit = [1, 2, 2], /noerase
137
138    if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png
139    cnt = cnt + 1
140  ENDIF
141
142  return
143end
Note: See TracBrowser for help on using the repository browser.