forked from i-am-sorri/Sparse_Bayesian_Imaging_RHESSI
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.pro
More file actions
54 lines (40 loc) · 1.28 KB
/
main.pro
File metadata and controls
54 lines (40 loc) · 1.28 KB
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
; example code for using hsi_vis_bayes:
search_network, /enable
while !D.WINDOW ne -1 do wdelete
loadct, 5, /silent
COMMON uvdata, u,v, pa, mapcenter, alb_apply_index_orig
COMMON srcshape, shape
;mapcenter= [918.0, 260.0];[914.0, 255.0]
time_interval=['2002-Feb-20 11:06:10', '2002-Feb-20 11:06:24' ];['2002-Feb-20 11:06:02', '2002-Feb-20 11:06:34' ]
epsmin=20;22
epsmax=30;26
detectors=[0,0,1,1,1,1,1,1,1]
ov=hsi_visibility()
ov->set, DET_INDEX_MASK=detectors,$
xyoffset=mapcenter, $
im_time_interval=time_interval,$
phz_n_roll_bins_min=6, $
phz_n_roll_bins_max=64,$
im_energy_binning=[epsmin,epsmax], $
vis_conjugate=0, $
vis_normalize=1, $
vis_edit=1, $
use_phz_stacker= 1L, $
modpat_skip= 4
vis=ov->getdata()
; Parameters:
pixel_size = 1.
fov=64.0 ;
; Mean of the Poisson prior for the number of sources in a map
lamb = 1.;0.5
; Prior probabilities on the shape
; C = circle, E = ellipse, L = loop
pC = 1./2
pE = 1./4
pL = 1./4
; Number of Monte Carlo samples
N_particles = 50 ;[recommended: between 100 and 10,000 (the more the better)]
; name of the file where the results will be saved
fname= 'Bayes_.sav'
asmc_sources= hsi_vis_bayes(vis, fname, PIXEL_SIZE=pixel_size, FOV=fov, LAM=lam, PC=pC, PE=pE, PpL=pL, N_PARTICLES=N_particles, AUTOSHAPE=0, PLOTHIST=1)
end