processing_components/simulation/rfi.py
def calculate_station_correlation_rfi(rfi_at_station):
    """ Form the correlation from the rfi at the station
    
    :param rfi_at_station:
    :return: Correlation(nant, nants, ntimes, nchan] in Jy
    """
    ntimes, nants, nchan = rfi_at_station.shape
    correlation = numpy.zeros([ntimes, nants, nants, nchan], dtype='complex')
    
    for itime in range(ntimes):
        for chan in range(nchan):
            correlation[itime, ..., chan] = numpy.outer(rfi_at_station[itime, :, chan],
                                                       numpy.conjugate(rfi_at_station[itime, :, chan]))

    return correlation[..., numpy.newaxis] * 1e26
 Form the correlation from the rfi at the station
    
    :param rfi_at_station:
    :return: Correlation(nant, nants, ntimes, nchan] in Jy
    
Form the correlation from the rfi at the station
Form the correlation from the rfi at the station
def calculate_station_correlation_rfi(rfi_at_station):
    ntimes, nants, nchan = rfi_at_station.shape
    correlation = numpy.zeros([ntimes, nants, nants, nchan], dtype='complex')
    for itime in range(ntimes):
        for chan in range(nchan):
            correlation[itime, ..., chan] = numpy.outer(rfi_at_station[itime, :, chan],
                                                       numpy.conjugate(rfi_at_station[itime, :, chan]))
    return correlation[..., numpy.newaxis] * 1e26
def calculate_station_correlation_rfi ( rfi_at_station ) : ntimes , nants , nchan = rfi_at_station . shape correlation = numpy . zeros ( [ ntimes , nants , nants , nchan ] , dtype = 'complex' ) for itime in range ( ntimes ) : for chan in range ( nchan ) : correlation [ itime , ... , chan ] = numpy . outer ( rfi_at_station [ itime , : , chan ] , numpy . conjugate ( rfi_at_station [ itime , : , chan ] ) ) return correlation [ ... , numpy . newaxis ] * 1e26
Form the correlation from the rfi at the station
Form the correlation from the rfi at the station
""" Form the correlation from the rfi at the station
    
    :param rfi_at_station:
    :return: Correlation(nant, nants, ntimes, nchan] in Jy
    """
Correlation(nant, nants, ntimes, nchan] in Jy
Correlation ( nant nants ntimes nchan ] in Jy
rfi_at_station
None