Skip to content

Commit

Permalink
Merge pull request #24 from HERA-Team/h4c_nsamples_changes
Browse files Browse the repository at this point in the history
H4C Nsamples Changes
  • Loading branch information
Kai-FengChen authored Feb 9, 2024
2 parents 8ba5653 + 4810a03 commit 3be3aa8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pipelines/h4c/idr2.3/lstbin/task_scripts/do_LSTBIN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ fi
echo lstbin_run.py --flag_thresh ${flag_thresh} ${red_arg} --dlst ${dlst} --file_ext ${file_ext}\
--outdir ${outdir} --ntimes_per_file ${ntimes_per_file} ${rephase} ${sig_clip} --sigma ${sigma}\
--min_N ${min_N} --lst_start ${lst_start} ${fixed_lst_start} --vis_units ${vis_units}\
--output_file_select ${output_file_select} --Nbls_to_load ${Nbls_to_load}\
--output_file_select ${output_file_select} --Nbls_to_load ${Nbls_to_load} --weight_only_by_flags\
${yaml_arg} ${input_cals} --overwrite ${data_files[@]}
lstbin_run.py --flag_thresh ${flag_thresh} ${red_arg} --dlst ${dlst} --file_ext ${file_ext}\
--outdir ${outdir} --ntimes_per_file ${ntimes_per_file} ${rephase} ${sig_clip} --sigma ${sigma}\
--min_N ${min_N} --lst_start ${lst_start} ${fixed_lst_start} --vis_units ${vis_units}\
--output_file_select ${output_file_select} --Nbls_to_load ${Nbls_to_load}\
--output_file_select ${output_file_select} --Nbls_to_load ${Nbls_to_load} --weight_only_by_flags\
${yaml_arg} ${input_cals} --overwrite ${data_files[@]}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ filter_mode = "DPSS"
# Note that these channels are indexed relative to the channels left over after selection
# channels with Options:spw_ranges so this is why the "bottom of the FM" shows up as
# one channel away from the "top of the FM" since the FM was already removed by Options:spw_ranges
spw_ranges = "0~291,291~1028"
# KFC: Separate into three delay windows
# Originally: spw_ranges = "0~291,291~1028"
spw_ranges = "0~291,291~853,853~1028"

# we may want to consider another flagging round after delay filtering.
[FR_OPTS]
Expand Down
8 changes: 4 additions & 4 deletions pipelines/h4c/idr2.3/pre_lstbin/task_scripts/do_DELAY.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ do
then
# Command for DPSS inpainting
echo delay_filter_run.py ${fn_in} \
--filled_outfilename ${fn_out} --clobber \
--filled_outfilename ${fn_out} --clobber --apply_flag_to_nsample\
--res_outfilename ${fn_res} --CLEAN_outfilename ${fn_cln} \
--tol ${tol} --cache_dir ${cache_dir} --standoff ${standoff} \
--min_dly ${min_dly} --mode dpss_leastsq --filter_spw_ranges ${spw_ranges} --flag_yaml ${flag_yaml}
delay_filter_run.py ${fn_in} \
--filled_outfilename ${fn_out} --clobber \
--filled_outfilename ${fn_out} --clobber --apply_flag_to_nsample\
--res_outfilename ${fn_res} --CLEAN_outfilename ${fn_cln} \
--tol ${tol} --cache_dir ${cache_dir} --standoff ${standoff} \
--min_dly ${min_dly} --mode dpss_leastsq --filter_spw_ranges ${spw_ranges} --flag_yaml ${flag_yaml}
Expand All @@ -107,13 +107,13 @@ do
# Command for CLEAN inpainting
npad=$((${spw1}-${spw0}))
echo delay_filter_run.py ${fn_in} \
--filled_outfilename ${fn_out} --clobber \
--filled_outfilename ${fn_out} --clobber --apply_flag_to_nsample\
--res_outfilename ${fn_res} --CLEAN_outfilename ${fn_cln} \
--tol ${tol} --standoff ${standoff} --filter_spw_ranges ${spw_ranges}\
--min_dly ${min_dly} --edgecut_low ${npad} --edgecut_hi ${npad} --zeropad ${npad} --mode clean --flag_yaml ${flag_yaml}

delay_filter_run.py ${fn_in} \
--filled_outfilename ${fn_out} --clobber \
--filled_outfilename ${fn_out} --clobber --apply_flag_to_nsample\
--res_outfilename ${fn_res} --CLEAN_outfilename ${fn_cln} \
--tol ${tol} --standoff ${standoff} --filter_spw_ranges ${spw_ranges}\
--min_dly ${min_dly} --edgecut_low ${npad} --edgecut_hi ${npad} --zeropad ${npad} --mode clean --flag_yaml ${flag_yaml}
Expand Down

0 comments on commit 3be3aa8

Please sign in to comment.