processing_components/visibility/operations.py
def concatenate_blockvisibility_frequency(bvis_list):
    """Concatenate a list of BlockVisibility's in frequency

    :param bvis_list:
    :return: BlockVisibility
    """
    
    assert len(bvis_list) > 0
    
    nvis = bvis_list[0].nvis
    time = bvis_list[0].time
    frequency = numpy.array(numpy.array([bvis.frequency for bvis in bvis_list]).flat)
    channel_bandwidth = numpy.array(numpy.array([bvis.channel_bandwidth for bvis in bvis_list]).flat)
    nchan = len(frequency)
    ntimes, nants, _, _, npol = bvis_list[0].vis.shape
    uvw = bvis_list[0].uvw
    integration_time = bvis_list[0].integration_time
    vis = numpy.zeros([nvis, nants, nants, nchan, npol], dtype='complex')
    weight = numpy.ones([nvis, nants, nants, nchan, npol])
    imaging_weight = numpy.ones([nvis, nants, nants, nchan, npol])
    
    echan = 0
    for ibv, bvis in enumerate(bvis_list):
        schan = echan
        echan = schan + len(bvis.frequency)
        vis[..., schan:echan, :] = bvis.vis[...]
        weight[..., schan:echan, :] = bvis.weight[...]
        imaging_weight[..., schan:echan, :] = bvis.imaging_weight[...]
        vis[..., schan:echan, :] = bvis.vis[...]
    
    return BlockVisibility(vis=vis, weight=weight, imaging_weight=imaging_weight, uvw=uvw, time=time,
                           integration_time=integration_time, frequency=frequency, channel_bandwidth=channel_bandwidth,
                           polarisation_frame=bvis_list[0].polarisation_frame, source=bvis_list[0].source,
                           configuration=bvis_list[0].configuration, phasecentre=bvis_list[0].phasecentre,
                           meta=None)
Concatenate a list of BlockVisibility's in frequency

    :param bvis_list:
    :return: BlockVisibility
    
Concatenate a list of BlockVisibility's in frequency
Concatenate a list of BlockVisibility ' s in frequency
def concatenate_blockvisibility_frequency(bvis_list):
    assert len(bvis_list) > 0
    nvis = bvis_list[0].nvis
    time = bvis_list[0].time
    frequency = numpy.array(numpy.array([bvis.frequency for bvis in bvis_list]).flat)
    channel_bandwidth = numpy.array(numpy.array([bvis.channel_bandwidth for bvis in bvis_list]).flat)
    nchan = len(frequency)
    ntimes, nants, _, _, npol = bvis_list[0].vis.shape
    uvw = bvis_list[0].uvw
    integration_time = bvis_list[0].integration_time
    vis = numpy.zeros([nvis, nants, nants, nchan, npol], dtype='complex')
    weight = numpy.ones([nvis, nants, nants, nchan, npol])
    imaging_weight = numpy.ones([nvis, nants, nants, nchan, npol])
    echan = 0
    for ibv, bvis in enumerate(bvis_list):
        schan = echan
        echan = schan + len(bvis.frequency)
        vis[..., schan:echan, :] = bvis.vis[...]
        weight[..., schan:echan, :] = bvis.weight[...]
        imaging_weight[..., schan:echan, :] = bvis.imaging_weight[...]
        vis[..., schan:echan, :] = bvis.vis[...]
    return BlockVisibility(vis=vis, weight=weight, imaging_weight=imaging_weight, uvw=uvw, time=time,
                           integration_time=integration_time, frequency=frequency, channel_bandwidth=channel_bandwidth,
                           polarisation_frame=bvis_list[0].polarisation_frame, source=bvis_list[0].source,
                           configuration=bvis_list[0].configuration, phasecentre=bvis_list[0].phasecentre,
                           meta=None)
def concatenate_blockvisibility_frequency ( bvis_list ) : assert len ( bvis_list ) > 0 nvis = bvis_list [ 0 ] . nvis time = bvis_list [ 0 ] . time frequency = numpy . array ( numpy . array ( [ bvis . frequency for bvis in bvis_list ] ) . flat ) channel_bandwidth = numpy . array ( numpy . array ( [ bvis . channel_bandwidth for bvis in bvis_list ] ) . flat ) nchan = len ( frequency ) ntimes , nants , _ , _ , npol = bvis_list [ 0 ] . vis . shape uvw = bvis_list [ 0 ] . uvw integration_time = bvis_list [ 0 ] . integration_time vis = numpy . zeros ( [ nvis , nants , nants , nchan , npol ] , dtype = 'complex' ) weight = numpy . ones ( [ nvis , nants , nants , nchan , npol ] ) imaging_weight = numpy . ones ( [ nvis , nants , nants , nchan , npol ] ) echan = 0 for ibv , bvis in enumerate ( bvis_list ) : schan = echan echan = schan + len ( bvis . frequency ) vis [ ... , schan : echan , : ] = bvis . vis [ ... ] weight [ ... , schan : echan , : ] = bvis . weight [ ... ] imaging_weight [ ... , schan : echan , : ] = bvis . imaging_weight [ ... ] vis [ ... , schan : echan , : ] = bvis . vis [ ... ] return BlockVisibility ( vis = vis , weight = weight , imaging_weight = imaging_weight , uvw = uvw , time = time , integration_time = integration_time , frequency = frequency , channel_bandwidth = channel_bandwidth , polarisation_frame = bvis_list [ 0 ] . polarisation_frame , source = bvis_list [ 0 ] . source , configuration = bvis_list [ 0 ] . configuration , phasecentre = bvis_list [ 0 ] . phasecentre , meta = None )
Concatenate a list of BlockVisibility's in frequency
Concatenate a list of BlockVisibility ' s in frequency
"""Concatenate a list of BlockVisibility's in frequency

    :param bvis_list:
    :return: BlockVisibility
    """
None
bvis_list
None