ra_dec_from_pupil_coords¶
- rubin_sim.utils.ra_dec_from_pupil_coords(x_pupil, y_pupil, obs_metadata=None, include_refraction=True, epoch=2000.0)¶
@param [in] x_pupil – pupil coordinates in radians. Can be a numpy array or a number.
@param [in] y_pupil – pupil coordinates in radians. Can be a numpy array or a number.
@param [in] obs_metadata – an instantiation of ObservationMetaData characterizing the state of the telescope
@param[in] include_refraction – a
bool
which controls the effects of refraction (refraction is used when finding the observed coordinates of the boresite specified by obs_metadata)@param [in] epoch – julian epoch of the mean equinox used for the coordinate transformations (in years; defaults to 2000)
@param [out] a 2-D numpy array in which the first row is RA and the second row is Dec (both in degrees; both in the International Celestial Reference System)
WARNING: This method does not account for apparent motion due to parallax. This method is only useful for mapping positions on a theoretical focal plane to positions on the celestial sphere.