observed_from_app_geo

rubin_sim.utils.observed_from_app_geo(ra, dec, include_refraction=True, alt_az_hr=False, wavelength=0.5, obs_metadata=None)

Convert apparent geocentric (RA, Dec) to observed (RA, Dec). More specifically: apply refraction and diurnal aberration.

This method works in degrees.

@param [in] ra is geocentric apparent RA (degrees). Can be a numpy array or a number.

@param [in] dec is geocentric apparent Dec (degrees). Can be a numpy array or a number.

@param [in] include_refraction is a bool to turn refraction on and off

@param [in] alt_az_hr is a bool indicating whether or not to return altitude and azimuth

@param [in] wavelength is effective wavelength in microns (default: 0.5)

@param [in] obs_metadata is an ObservationMetaData characterizing the observation.

@param [out] a 2-D numpy array in which the first row is the observed RA and the second row is the observed Dec (both in degrees)

@param [out] a 2-D numpy array in which the first row is the altitude and the second row is the azimuth (both in degrees). Only returned if alt_az_hr == True.