Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.17 KB

inverse-refraction-angle.md

File metadata and controls

20 lines (12 loc) · 1.17 KB

//astronomy/io.github.cosinekitty.astronomy/inverseRefractionAngle

inverseRefractionAngle

fun inverseRefractionAngle(refraction: Refraction, bentAltitude: Double): Double

Calculates the inverse of an atmospheric refraction angle.

Given an observed altitude angle that includes atmospheric refraction, calculates the negative angular correction to obtain the unrefracted altitude. This is useful for cases where observed horizontal coordinates are to be converted to another orientation system, but refraction first must be removed from the observed position.

Return

The angular adjustment in degrees to be added to the altitude angle to remove atmospheric lensing. This will be less than or equal to zero.

Parameters

refraction The option selecting which refraction correction to use.
bentAltitude The apparent altitude that includes atmospheric refraction.