rta_reconstruction.utils.coordinates.camera_to_altaz

rta_reconstruction.utils.coordinates.camera_to_altaz(pos_x, pos_y, focal, pointing_alt, pointing_az, obstime=None)[source]

Compute camera to Horizontal frame (Altitude-Azimuth system). For MC assume the default ObsTime.

Parameters:
  • pos_x (~astropy.units.Quantity) – X coordinate in camera (distance)

  • pos_y (~astropy.units.Quantity) – Y coordinate in camera (distance)

  • focal (~astropy.units.Quantity) – telescope focal (distance)

  • pointing_alt (~astropy.units.Quantity) – pointing altitude in angle unit

  • pointing_az (~astropy.units.Quantity) – pointing altitude in angle unit

  • obstime (~astropy.time.Time)

Returns:

sky frame – in AltAz frame

Return type:

astropy.coordinates.SkyCoord

Examples

>>> import astropy.units as u
>>> import numpy as np
>>> pos_x = np.array([0, 0]) * u.m
>>> pos_y = np.array([0, 0]) * u.m
>>> focal = 28 * u.m
>>> pointing_alt = np.array([1.0, 1.0]) * u.rad
>>> pointing_az = np.array([0.2, 0.5]) * u.rad
>>> sky_coords = utils.camera_to_altaz(pos_x, pos_y, focal, pointing_alt, pointing_az)