projected_distance#

caput.astro.coordinates.spherical.projected_distance(ha, lat, dec, x, y, z=0.0)[source]#

Compute distance projected in the direction of a source.

Parameters:
haarray_like

The CIRS hour angle of the source in radians.

latarray_like

The latitude of the observatory in radians.

decarray_like

The CIRS declination of the source in radians.

xarray_like

The East-West coordinate in wavelengths (increases to the East).

yarray_like

The North-South coordinate in wavelengths (increases to the North).

zarray_like

The vertical coordinate in wavelengths (increases upwards).

Returns:
distancendarray

The projected distance. Has whatever units x, y, z had.