processing_library/util/coordinate_support.py
def baselines(ants_uvw):
    """
    Compute baselines in uvw co-ordinate system from
    uvw co-ordinate system station positions

    :param ants_uvw: `(u,v,w)` co-ordinates of antennas in array
    """
    
    res = []
    nants = ants_uvw.shape[0]
    for a1 in range(nants):
        for a2 in range(a1 + 1, nants):
            res.append(ants_uvw[a2] - ants_uvw[a1])
    
    basel_uvw = numpy.array(res)
    
    return basel_uvw

    Compute baselines in uvw co-ordinate system from
    uvw co-ordinate system station positions

    :param ants_uvw: `(u,v,w)` co-ordinates of antennas in array
    
Compute baselines in uvw co-ordinate system from
uvw co-ordinate system station positions
Compute baselines in uvw co - ordinate system from uvw co - ordinate system station positions
def baselines(ants_uvw):
    res = []
    nants = ants_uvw.shape[0]
    for a1 in range(nants):
        for a2 in range(a1 + 1, nants):
            res.append(ants_uvw[a2] - ants_uvw[a1])
    basel_uvw = numpy.array(res)
    return basel_uvw
def baselines ( ants_uvw ) : res = [ ] nants = ants_uvw . shape [ 0 ] for a1 in range ( nants ) : for a2 in range ( a1 + 1 , nants ) : res . append ( ants_uvw [ a2 ] - ants_uvw [ a1 ] ) basel_uvw = numpy . array ( res ) return basel_uvw
Compute baselines in uvw co-ordinate system from
uvw co-ordinate system station positions
Compute baselines in uvw co - ordinate system from uvw co - ordinate system station positions
"""
    Compute baselines in uvw co-ordinate system from
    uvw co-ordinate system station positions

    :param ants_uvw: `(u,v,w)` co-ordinates of antennas in array
    """
ants_uvw
`(u,v,w)` co-ordinates of antennas in array
` ( u v w ) ` co - ordinates of antennas in array