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