-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcg3d.pro
62 lines (47 loc) · 1.19 KB
/
cg3d.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cgloadct,33
!p.multi=[0,3,3]
sx1=nx1
sx2=nx2
var=ptrarr(9)
slice=25
v0=reform( vx1[slice,*,*] )
v1=reform( vx1[*,slice,*] )
v2=reform( vx1[*,*,slice] )
v3=reform( vx2[slice,*,*] )
v4=reform( vx2[*,slice,*] )
v5=reform( vx2[*,*,slice] )
v6=reform( vx3[slice,*,*] )
v7=reform( vx3[*,slice,*] )
v8=reform( vx3[*,*,slice] )
var(0)=ptr_new(v0)
var(1)=ptr_new(v1)
var(2)=ptr_new(v2)
var(3)=ptr_new(v3)
var(4)=ptr_new(v4)
var(5)=ptr_new(v5)
var(6)=ptr_new(v6)
var(7)=ptr_new(v7)
var(8)=ptr_new(v8)
titlstr=strarr(9)
titlstr(0)='vx'
titlstr(1)='vx'
titlstr(2)='vx'
titlstr(3)='vy'
titlstr(4)='vy'
titlstr(5)='vy'
titlstr(6)='vz'
titlstr(7)='vz'
titlstr(8)='vz'
for i=0,14 do begin
pos = [0.02, 0.35, 0.98, 0.91]
localimagecopy=reform(*var(i))
cgIMAGE, localimagecopy, POSITION=pos, /KEEP_ASPECT_RATIO ,background='white', scale=1
cgcontour, localimagecopy, xx,yy,POSITION=pos, /NOERASE, XSTYLE=1, $
YSTYLE=1, NLEVELS=10, /nodata, title=titlstr(i), $
axiscolor='black',$
xtitle='x ', ytitle='y'
imin=min(localimagecopy)-1e-6
imax=max(localimagecopy)+1e-6
cgcolorbar, Position=[pos[0], pos[1]-0.04, pos[2], pos[1]-0.03], range=[imin,imax], format='(G12.1)', annotatecolor='black'
endfor
end