source: trunk/SRC/Tests/TestsOld/tst_plt_old.pro @ 238

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

improvements/corrections of some *.pro headers

  • Property svn:keywords set to Id
File size: 3.3 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_plt_old, IMAGE = image
18;
19  compile_opt idl2, strictarrsubs
20;
21@common
22;
23; figure 2: regular grid
24;
25  CASE jpi*key_stride[0]+jpj*key_stride[1] OF
26    180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
27    360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'
28    720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'
29  ENDCASE
30  file = isafile(file, title = 'Where is '+file+' ?', /lookalldir)
31  IF size(file, /type) NE 7 THEN return
32;
33  dummy = ''
34  cnt = 1
35;
36  domdef
37  domdef, gdept[0], gdept[0], grille = 'T'
38  temp = read_ncdf('votemper', 00101, 00131, file = file)
39;
40  plt, temp, /landscape
41  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
42  ELSE read, dummy,  prompt = 'press return for the next plot'
43  cnt = cnt + 1
44;
45  plt, temp, -2, 31, int = .5, /nocontour, format = '(i3)'
46  if keyword_set(image) then saveimage, 'tst_plt_'+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  plt, temp, -2, 31, int = 1, /color_c
51  if keyword_set(image) then saveimage, 'tst_plt_'+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  plt, temp, -2, 31, int = 1, /nocouleur, c_thick = 1, cont_thick = 2
56  if keyword_set(image) then saveimage, 'tst_plt_'+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  plt, temp, cell_fill = 1 + (jpi EQ 180) ; we must use cell_fill = 2 for ORCA2
61  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
62  ELSE read, dummy,  prompt = 'press return for the next plot'
63  cnt = cnt + 1
64; zoom
65  IF key_onearth THEN box = [40, 375, -20, 20] $
66  ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4]
67  plt, temp, boite = box, /landscape
68  if keyword_set(image) then saveimage, 'tst_plt_'+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; projections
73  IF key_onearth THEN BEGIN
74;
75    plt, temp, boite = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait
76    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
77    ELSE read, dummy,  prompt = 'press return for the next plot'
78    cnt = cnt + 1
79;
80    plt, temp, boite = [20, 380, -90, 50], /ortho, map = [-90, 180, 0], /portrait
81    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
82    ELSE read, dummy,  prompt = 'press return for the next plot'
83    cnt = cnt + 1
84;
85    plt, temp, /ortho, map = [0, 0, 21], /portrait, /carte
86    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
87    ELSE read, dummy,  prompt = 'press return for the next plot'
88    cnt = cnt + 1
89;
90  ENDIF
91
92; deep plot
93; domdef, 150, 150 ; => warning message
94  domdef, gdept[jpk/2], gdept[jpk/2], grille = 'T'
95  temp = read_ncdf('votemper', 00101, 00131, file = file)
96  plt, temp, carte = 2*(key_onearth), /land
97  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png
98  cnt = cnt + 1
99
100
101  return
102end
Note: See TracBrowser for help on using the repository browser.