From fbec9cae357ecb58db4e019ccee9423cb46de03d Mon Sep 17 00:00:00 2001 From: jurjen93 Date: Tue, 7 Nov 2023 11:46:45 +0100 Subject: [PATCH] parallelgridding --- subtract/subtract_with_wsclean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subtract/subtract_with_wsclean.py b/subtract/subtract_with_wsclean.py index 80e19455..62c942f1 100644 --- a/subtract/subtract_with_wsclean.py +++ b/subtract/subtract_with_wsclean.py @@ -351,10 +351,10 @@ def predict(self, h5parm: str = None, facet_regions: str = None): f = fits.open(self.model_images[0]) comparse = str(f[0].header['HISTORY']).replace('\n', '').split() - command = ['wsclean', '-predict', f'-name {self.model_images[0].split("-")[0]}', '-mem 50'] + command = ['wsclean', '-predict', f'-name {self.model_images[0].split("-")[0]}', '-mem 50', '-parallel-gridding 2'] for n, argument in enumerate(comparse): - if argument in ['-gridder', '-padding', '-parallel-gridding', + if argument in ['-gridder', '-padding', '-idg-mode', '-beam-aterm-update', '-pol', '-scale']: if ' '.join(comparse[n:n + 2])=='-gridder wgridder-apply-primary-beam': command.append('-gridder wgridder')