processing_library/util/coordinate_support.py
def uvw_transform(uvw, transform_matrix):
    """
    Transforms UVW baseline coordinates such that the image is
    transformed with the given matrix. Will require kernels to be
    suitably transformed to work correctly.

    Reference: Sault, R. J., L. Staveley-Smith, and W. N. Brouw. "An
    approach to interferometric mosaicing." Astronomy and Astrophysics
    Supplement Series 120 (1996): 375-384.

    :param uvw: :math:`(u,v,w)` distribution of projected baselines (in wavelengths)
    :param transform_matrix: 2x2 matrix for image transformation
    :return: New baseline coordinates
    """
    
    # Apply to uv coordinates
    uv1 = numpy.dot(uvw[:, 0:2], transform_matrix)
    # Restack with original w values
    return numpy.hstack([uv1, uvw[:, 2:3]])

    Transforms UVW baseline coordinates such that the image is
    transformed with the given matrix. Will require kernels to be
    suitably transformed to work correctly.

    Reference: Sault, R. J., L. Staveley-Smith, and W. N. Brouw. "An
    approach to interferometric mosaicing." Astronomy and Astrophysics
    Supplement Series 120 (1996): 375-384.

    :param uvw: :math:`(u,v,w)` distribution of projected baselines (in wavelengths)
    :param transform_matrix: 2x2 matrix for image transformation
    :return: New baseline coordinates
    
Transforms UVW baseline coordinates such that the image is
transformed with the given matrix. Will require kernels to be
suitably transformed to work correctly.

Sault, R. J., L. Staveley-Smith, and W. N. Brouw. "An
approach to interferometric mosaicing." Astronomy and Astrophysics
Supplement Series 120 (1996): 375-384.
Transforms UVW baseline coordinates such that the image is transformed with the given matrix . Will require kernels to be suitably transformed to work correctly . Sault R . J . L . Staveley - Smith and W . N . Brouw . " An approach to interferometric mosaicing . " Astronomy and Astrophysics Supplement Series 120 ( 1996 ) : 375 - 384 .
def uvw_transform(uvw, transform_matrix):
    uv1 = numpy.dot(uvw[:, 0:2], transform_matrix)
    return numpy.hstack([uv1, uvw[:, 2:3]])
def uvw_transform ( uvw , transform_matrix ) : uv1 = numpy . dot ( uvw [ : , 0 : 2 ] , transform_matrix ) return numpy . hstack ( [ uv1 , uvw [ : , 2 : 3 ] ] )
Transforms UVW baseline coordinates such that the image is
transformed with the given matrix.
Transforms UVW baseline coordinates such that the image is transformed with the given matrix .
"""
    Transforms UVW baseline coordinates such that the image is
    transformed with the given matrix. Will require kernels to be
    suitably transformed to work correctly.

    Reference: Sault, R. J., L. Staveley-Smith, and W. N. Brouw. "An
    approach to interferometric mosaicing." Astronomy and Astrophysics
    Supplement Series 120 (1996): 375-384.

    :param uvw: :math:`(u,v,w)` distribution of projected baselines (in wavelengths)
    :param transform_matrix: 2x2 matrix for image transformation
    :return: New baseline coordinates
    """ # Apply to uv coordinates # Restack with original w values
New baseline coordinates
New baseline coordinates
uvw
:math:`(u,v,w)` distribution of projected baselines (in wavelengths)
: math : ` ( u v w ) ` distribution of projected baselines ( in wavelengths )
transform_matrix
2x2 matrix for image transformation
2x2 matrix for image transformation