xyz_to_uvw

ska_sdp_func_python.util.coordinate_support.xyz_to_uvw(xyz, ha, dec)[source]

Rotate \((x,y,z)\) positions in earth coordinates to \((u,v,w)\) coordinates relative to astronomical source position \((ha, dec)\). Can be used for both antenna positions and for baselines.

Hour angle and declination can be given as single values or arrays of the same length. Angles can be given as radians or astropy quantities with a valid conversion.

Parameters:
  • xyz\((x,y,z)\) co-ordinates of antennas in array

  • ha – Hour angle of phase tracking centre (\(ha = ra - lst\))

  • dec – Declination of phase tracking centre.

Returns:

xyz coordinates