rubin_sim.utils.apply_refraction(zenith_distance, tanz_coeff, tan3z_coeff)

Calculted refracted Zenith Distance

uses the quick PAL refco routine which approximates the refractin calculation

@param [in] zenith_distance is unrefracted zenith distance of the source in radians. Can either be a number or a numpy array (not a list).

@param [in] tanz_coeff is the first output from refraction_coefficients (above)

@param [in] tan3z_coeff is the second output from refraction_coefficients (above)

@param [out] refracted_zenith is the refracted zenith distance in radians