Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/task_sdsidebandsplit.py: 100%
21 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
2from casatools import quanta, sidebandseparator
4from . import sdutil
7@sdutil.sdtask_decorator
8def sdsidebandsplit(imagename, outfile, overwrite, signalshift, imageshift,
9 getbothside, refchan, refval, useother, threshold):
11 separator = sidebandseparator()
12 try:
13 separator.open(imagename)
14 separator.setshift(signalshift, True)
15 if len(imageshift) > 0:
16 separator.setshift(imageshift, False)
17 separator.setlimit(threshold)
18 separator.setboth(getbothside)
19 if getbothside:
20 if refval == '':
21 qrefval = -1.0
22 else:
23 myqa = quanta()
24 qrefval = myqa.quantity(refval)
25 separator.set_imageband_frequency(refchan, qrefval)
26 separator.setsolveother(useother)
27 separator.separate(outfile, overwrite)
28 finally:
29 separator.close()