camera_to_altaz
- lstchain.reco.utils.camera_to_altaz(pos_x, pos_y, focal, pointing_alt, pointing_az, obstime=None)
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: astropy.coordinates.SkyCoord
in AltAz frame
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)