matvis.coordinates¶

Functions for converting coordinates.

Functions

altaz_to_enu(el, az)

Convert alt/az coordinates as given by Astropy, into ENU coordinates.

axis_angle_rotation_matrix(axis, angle)

Build rotation matrix via Rodrigues’ formula.

calc_coherency_rotation(ra, dec, alt, az, ...)

Compute the rotation matrix needed for time-dependent coherency calculation.

eci_to_enu_matrix(ha, lat)

3x3 transformation matrix to rotate ECI to ENU coordinates.

enu_to_az_za(enu_e, enu_n[, orientation, ...])

Convert angle cosines in ENU coordinates into azimuth and zenith angle.

enu_to_eci_matrix(ha, lat)

3x3 transformation matrix to rotate ENU to ECI coordinates.

equatorial_to_eci_coords(ra, dec, obstime, ...)

Convert RA and Dec coordinates into the ECI system used by matvis.

get_array_module(*x)

Return numpy as the array module.

phi_hat(theta, phi)

Return the unit vector phi_hat in Cartesian coords for spherical angles.

point_source_crd_eq(ra, dec)

Coordinate transform of source locations from equatorial to Cartesian.

spherical_basis_vector_rotation_matrix(...)

Get the rotation matrix for vectors in theta/phi basis to a new reference frame.

theta_hat(theta, phi)

Return the unit vector theta_hat in Cartesian coords for spherical angles.

vecs2rot(r1, r2)

Construct an axis-angle rotation matrix R that carries vector r1 to r2.