Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Calculates the amount of "lift" to an altitude angle caused by atmospheric refraction.

      Given an altitude angle and a refraction option, calculates the amount of "lift" caused by atmospheric refraction. This is the number of degrees higher in the sky an object appears due to the lensing of the Earth's atmosphere. This function works best near sea level. To correct for higher elevations, call Atmosphere for that elevation and multiply the refraction angle by the resulting relative density.

      Parameters

      • refraction: string

        "normal": correct altitude for atmospheric refraction (recommended). "jplhor": for JPL Horizons compatibility testing only; not recommended for normal use. null: no atmospheric refraction correction is performed.

      • altitude: number

        An altitude angle in a horizontal coordinate system. Must be a value between -90 and +90.

      Returns number

      The angular adjustment in degrees to be added to the altitude angle to correct for atmospheric lensing.