/
rlb_versions_gillyweed.pro
83 lines (69 loc) · 2.54 KB
/
rlb_versions_gillyweed.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
pro rlb_versions_gillyweed
except=!except
!except=0
heap_gc
;obs_id = '1061316296'
;vis_file_list = '/Users/Shared/uvfits/4.1/'+obs_id+'.uvfits'
obs_id = 'GLEAM_MWA_uvbeam_time10_freqs384'
vis_file_list = '/Users/rubybyrne/Downloads/GLEAM_MWA_uvbeam_time10_freqs384.uvfits'
output_directory = '/Volumes/Bilbo/rlb_fhd_outputs'
version = 'rlb_test_for_daniya'
case version of
'rlb_get_uvf_cubes_Apr2020': begin
recalculate_all = 1
uvfits_version = 4
uvfits_subversion = 1
max_sources = 200000
calibration_catalog_file_path = filepath('GLEAM_v2_plus_rlb2019.sav',root=rootdir('FHD'),subdir='catalog_data')
diffuse_calibrate = 0
smooth_width = 32
pad_uv_image = 1
return_sidelobe_catalog = 1
dft_threshold = 0
ring_radius = 0
debug_region_grow = 0
n_pol = 2
time_cut = -4 ;flag an extra 4 seconds from the end of each obs
save_uvf = 1
end
'rlb_test_for_daniya': begin
calibrate_visibilities=0
model_visibilities=0
end
'rlb_test_hpx_inds': begin
recalculate_all = 0
calibration_flux_threshold = .5
calibration_catalog_file_path = filepath('GLEAM_v2_plus_rlb2019.sav',root=rootdir('FHD'),subdir='catalog_data')
subtract_sidelobe_catalog = filepath('GLEAM_v2_plus_rlb2019.sav',root=rootdir('FHD'),subdir='catalog_data')
pad_uv_image = 1
diffuse_calibrate = 0
diffuse_model = 0
return_sidelobe_catalog = 1
ring_radius = 0
debug_region_grow = 0
n_pol = 4
cal_bp_transfer = 0
save_uvf = 1
end
endcase
if ~keyword_set(vis_file_list) then begin
if platform eq 'aws' then begin
vis_file_list = '/uvfits/' + STRING(obs_id) + '.uvfits'
endif else begin
SPAWN, 'read_uvfits_loc.py -v ' + STRING(uvfits_version) + ' -s ' + $
STRING(uvfits_subversion) + ' -o ' + STRING(obs_id), vis_file_list
endelse
endif
undefine, uvfits_subversion, uvfits_version
fhd_file_list=fhd_path_setup(vis_file_list,version=version,output_directory=output_directory)
healpix_path=fhd_path_setup(output_dir=output_directory,subdir='Healpix',output_filename='Combined_obs',version=version)
; Set global defaults and bundle all the variables into a structure.
; Any keywords set on the command line or in the top-level wrapper will supercede these defaults
eor_wrapper_defaults,extra
fhd_depreciation_test, _Extra=extra
print,""
print,"Keywords set in wrapper:"
print,structure_to_text(extra)
print,""
general_obs,_Extra=extra
end