Skip to content
Snippets Groups Projects
Commit 3fdb6ad8 authored by Alexander Kutkin's avatar Alexander Kutkin
Browse files

add option to clip model after cleaning

parent b636bc9c
Branches
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ def wsclean(msin, outname=None, pixelsize=3, imagesize=3072, mgain=0.8, multifre ...@@ -80,7 +80,7 @@ def wsclean(msin, outname=None, pixelsize=3, imagesize=3072, mgain=0.8, multifre
todelete = glob.glob(f'{outname}-000[0-9]-*.fits') # multifreq images todelete = glob.glob(f'{outname}-000[0-9]-*.fits') # multifreq images
for f in todelete: for f in todelete:
os.remove(f) os.remove(f)
if save_source_list:
remove_model_components_below_level(f'{outname}-sources.txt', clip_model_level) remove_model_components_below_level(f'{outname}-sources.txt', clip_model_level)
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment