processing_components/visibility/coalesce.py
def convert_blockvisibility_to_visibility(vis: BlockVisibility) -> Visibility:
    """ Convert the BlockVisibility data with no coalescence

    :param vis: BlockVisibility to be converted
    :return: Visibility with  cindex and blockvis filled in
    """

    assert isinstance(vis, BlockVisibility), "vis is not a BlockVisibility: %r" % vis

    cvis, cuvw, cwts, cimaging_wts, ctime, cfrequency, cchannel_bandwidth, ca1, ca2, cintegration_time, cindex \
        = convert_blocks(vis.data['vis'], vis.data['uvw'], vis.data['weight'], vis.data['imaging_weight'],
                         vis.time, vis.integration_time,
                         vis.frequency, vis.channel_bandwidth)
    converted_vis = Visibility(uvw=cuvw, time=ctime, frequency=cfrequency,
                               channel_bandwidth=cchannel_bandwidth,
                               phasecentre=vis.phasecentre, antenna1=ca1, antenna2=ca2, vis=cvis,
                               weight=cwts, imaging_weight=cimaging_wts,
                               configuration=vis.configuration, integration_time=cintegration_time,
                               polarisation_frame=vis.polarisation_frame, cindex=cindex,
                               blockvis=vis, meta=vis.meta)

    log.debug('convert_visibility: Original %s, converted %s' % (vis_summary(vis),
                                                                 vis_summary(converted_vis)))

    return converted_vis
 Convert the BlockVisibility data with no coalescence

    :param vis: BlockVisibility to be converted
    :return: Visibility with  cindex and blockvis filled in
    
Convert the BlockVisibility data with no coalescence
Convert the BlockVisibility data with no coalescence
def convert_blockvisibility_to_visibility(vis: BlockVisibility) -> Visibility:
    assert isinstance(vis, BlockVisibility), "vis is not a BlockVisibility: %r" % vis
    cvis, cuvw, cwts, cimaging_wts, ctime, cfrequency, cchannel_bandwidth, ca1, ca2, cintegration_time, cindex \
        = convert_blocks(vis.data['vis'], vis.data['uvw'], vis.data['weight'], vis.data['imaging_weight'],
                         vis.time, vis.integration_time,
                         vis.frequency, vis.channel_bandwidth)
    converted_vis = Visibility(uvw=cuvw, time=ctime, frequency=cfrequency,
                               channel_bandwidth=cchannel_bandwidth,
                               phasecentre=vis.phasecentre, antenna1=ca1, antenna2=ca2, vis=cvis,
                               weight=cwts, imaging_weight=cimaging_wts,
                               configuration=vis.configuration, integration_time=cintegration_time,
                               polarisation_frame=vis.polarisation_frame, cindex=cindex,
                               blockvis=vis, meta=vis.meta)
    log.debug('convert_visibility: Original %s, converted %s' % (vis_summary(vis),
                                                                 vis_summary(converted_vis)))
    return converted_vis
def convert_blockvisibility_to_visibility ( vis : BlockVisibility ) -> Visibility : assert isinstance ( vis , BlockVisibility ) , "vis is not a BlockVisibility: %r" % vis cvis , cuvw , cwts , cimaging_wts , ctime , cfrequency , cchannel_bandwidth , ca1 , ca2 , cintegration_time , cindex = convert_blocks ( vis . data [ 'vis' ] , vis . data [ 'uvw' ] , vis . data [ 'weight' ] , vis . data [ 'imaging_weight' ] , vis . time , vis . integration_time , vis . frequency , vis . channel_bandwidth ) converted_vis = Visibility ( uvw = cuvw , time = ctime , frequency = cfrequency , channel_bandwidth = cchannel_bandwidth , phasecentre = vis . phasecentre , antenna1 = ca1 , antenna2 = ca2 , vis = cvis , weight = cwts , imaging_weight = cimaging_wts , configuration = vis . configuration , integration_time = cintegration_time , polarisation_frame = vis . polarisation_frame , cindex = cindex , blockvis = vis , meta = vis . meta ) log . debug ( 'convert_visibility: Original %s, converted %s' % ( vis_summary ( vis ) , vis_summary ( converted_vis ) ) ) return converted_vis
Convert the BlockVisibility data with no coalescence
Convert the BlockVisibility data with no coalescence
""" Convert the BlockVisibility data with no coalescence

    :param vis: BlockVisibility to be converted
    :return: Visibility with  cindex and blockvis filled in
    """
Visibility with  cindex and blockvis filled in
Visibility with cindex and blockvis filled in
vis
BlockVisibility
BlockVisibility to be converted
BlockVisibility to be converted