source: tags/LIM1D_v3.20/GRAPHICS/icecontour.pro @ 6

Last change on this file since 6 was 6, checked in by vancop, 8 years ago

initial import of v3.20 /Users/ioulianikolskaia/Boulot/CODES/LIM1D/ARCHIVE/TMP/LIM1D_v3.20/

File size: 1.4 KB
Line 
1PRO icecontour, field, hi, hs, nlevels, colors, levels, ct, z, time, nz, nt, $
2                tmin, tmax, zmin, zmax, title
3
4;
5;-----------------------------------------
6; Make the ice thickness, snow depth plot
7;-----------------------------------------
8;
9LOADCT, 0
10PLOT, [tmin, tmax], [zmin,zmax], /NODATA,       $
11title = title, ytitle = "z[m]", CHARSIZE=1, XSTYLE = 1, YSTYLE = 1;, $
12OPLOT, time , - hi
13OPLOT, time , hs
14;
15;------------
16; Dummy axes
17;------------
18; time
19time_matrix = FLTARR(nz+2, nt)
20FOR index = 0, nz+1 DO BEGIN
21   time_matrix[index,*] = time[*]
22ENDFOR
23
24; depth
25z_matrix = FLTARR(nz+2, nt)
26z_matrix[0,*]    =  0.0
27FOR index = 1, nz DO BEGIN
28   z_matrix[index,*] = z[index-1,*]
29ENDFOR
30z_matrix[nz+1,*] =  hi
31
32; field to plot
33field_matrix = FLTARR(nz+2,nt)
34field_matrix[0,*] = field[0,*]
35FOR index = 1, nz DO BEGIN
36   field_matrix[index,*] = field[index-1,*]
37ENDFOR
38field_matrix[nz+1,*] = field[nz-1,*]
39
40;print, ' time_matrix  : ', time_matrix[*,10]
41;print, ' z_matrix     : ', z_matrix[*,10]
42;print, ' field_matrix : ', field_matrix[*,10]
43
44;
45;----------
46; Contours
47;----------
48; colors
49LOADCT, ct
50color00 = MAX(colors)
51color99 = MIN(colors)
52
53CONTOUR, field_matrix, time_matrix, - z_matrix, /FILL, /OVERPLOT, C_COLORS = colors, levels = levels
54
55;CONTOUR, s_i, time_matrix, - z_ip, /OVERPLOT, levels = levels, $
56;C_LABELS=[  0,  1, 0, 0,  1,  1, 0, 0, 0,  1, 0, 0,   1], $
57;C_ANNOTATION=['0','1','','','4','5','','','','9','','','12']
58
59end
Note: See TracBrowser for help on using the repository browser.