source: trunk/Documentation/xmldoc/idlfiles/tst_plt.pro @ 63

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

upgrade of Documentation/xmldoc/idlfiles according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1PRO tst_plt, IMAGE = image
2; commons
3@cm_4mesh
4;
5; figure 2: regular grid
6;
7  CASE jpi*key_stride[0]+jpj*key_stride[1] OF
8    180+148:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
9    360+180:file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'
10    720+510:file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'
11  ENDCASE
12  file = isafile(file, iodirectory = [iodir, homedir, !path] $
13                 , title = 'Where is '+file+' ?', /recursive)
14  IF size(file, /type) NE 7 THEN return
15;
16  dummy = ''
17  cnt = 1
18;
19  domdef
20  domdef, gdept[0], gdept[0], gridtype = 'T'
21  temp = read_ncdf('votemper', 10101, 10131, file = file)
22;
23  plt, temp, /landscape
24  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
25  ELSE read, dummy,  prompt = 'press return for the next plot'
26  cnt = cnt + 1
27;
28  plt, temp, -2, 31, int = .5, /nocontour, format = '(i3)'
29  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
30  ELSE read, dummy,  prompt = 'press return for the next plot'
31  cnt = cnt + 1
32;
33  plt, temp, -2, 31, int = 1, /color_c
34  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
35  ELSE read, dummy,  prompt = 'press return for the next plot'
36  cnt = cnt + 1
37;
38  plt, temp, -2, 31, int = 1, /nofill, c_thick = 1, coast_thick = 2
39  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
40  ELSE read, dummy,  prompt = 'press return for the next plot'
41  cnt = cnt + 1
42;
43  plt, temp, cell_fill = 1 + (jpi EQ 180) ; we must use cell_fill = 2 for ORCA2
44  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
45  ELSE read, dummy,  prompt = 'press return for the next plot'
46  cnt = cnt + 1
47; zoom
48  IF key_onearth THEN box = [40, 375, -20, 20] $
49  ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4]
50  plt, temp, boxzoom = box, /landscape
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; projections
56  IF key_onearth THEN BEGIN
57;
58    plt, temp, boxzoom = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait
59    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
60    ELSE read, dummy,  prompt = 'press return for the next plot'
61    cnt = cnt + 1
62;
63    plt, temp, boxzoom = [20, 380, -90, 50], /ortho, map = [-90, 180, 0], /portrait
64    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
65    ELSE read, dummy,  prompt = 'press return for the next plot'
66    cnt = cnt + 1
67;
68    plt, temp, /ortho, map = [0, 0, 21], /portrait, /realcont
69    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $
70    ELSE read, dummy,  prompt = 'press return for the next plot'
71    cnt = cnt + 1
72;
73  ENDIF
74
75; deep plot
76; domdef, 150, 150 ; => warning message
77  domdef, gdept[jpk/2], gdept[jpk/2], gridtype = 'T'
78  temp = read_ncdf('votemper', 10101, 10131, file = file)
79  plt, temp, realcont = 2*(key_onearth), /land
80  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png
81  cnt = cnt + 1
82
83
84  return
85end
Note: See TracBrowser for help on using the repository browser.