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

Last change on this file since 237 was 237, checked in by pinsard, 17 years ago

replace some print by some report in some .pro (continuation) + improvements/corrections of some *.pro headers

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