def cont_image(script,parameters, comments, mask = False): # what about multiple targets in one SB?
    if parameters['mosaic'] == 'true':
        if not mask:
            clean = sc.mosaic_cont_clean()
        else: 
            clean = sc.mosaic_cont_clean_mask()
    else:
        if not mask:
            clean = sc.single_cont_clean()
        else: 
            clean = sc.single_cont_clean_mask()

    if comments == False:
        script = script + com.im_cont_header() + sc.contvis() + sc.contimagename() + sc.rmtables() + clean
    else:
        script = script + com.im_cont() + sc.contvis() + sc.contimagename() + sc.rmtables() + clean + com.cont_rms()
    return script
Esempio n. 2
0
def cont_image(script,parameters, comments, template, mask = False): # what about multiple targets in one SB?
    """write the portion of the script that makes the continuum image"""
    if parameters['mosaic'] == 'true':
        if not mask:
            clean = sc.mosaic_cont_clean()
        else: 
            clean = sc.mosaic_cont_clean_mask()
    else:
        if not mask:
            clean = sc.single_cont_clean()
        else: 
            clean = sc.single_cont_clean_mask()

    if comments == False:
        script = script + com.im_cont_header() + sc.contvis() + sc.contimagename() + sc.rmtables() + clean
    else:
        script = script + com.im_cont() + sc.contvis() + sc.contimagename() + sc.rmtables() + clean + com.cont_rms()
    return script