Class AbstractElevationEventFunction

    • Constructor Detail

      • AbstractElevationEventFunction

        protected AbstractElevationEventFunction​(AtmosphericRefractionModel refractionModel,
                                                 TopocentricFrame topo)
        Constructor.
        Parameters:
        refractionModel - reference to refraction model (can be null in which case no correction is applied)
        topo - reference to a topocentric model
    • Method Detail

      • getRefractionModel

        public AtmosphericRefractionModel getRefractionModel()
        Returns the currently configured refraction model.
        Returns:
        refraction model
      • getTopocentricFrame

        public TopocentricFrame getTopocentricFrame()
        Getter for the topocentric frame.
        Returns:
        frame
      • applyRefraction

        protected double applyRefraction​(double elevation)
        Apply refraction correction if applicable.
        Parameters:
        elevation - value before correction
        Returns:
        apparent elevation
      • applyRefraction

        protected <T extends CalculusFieldElement<T>> T applyRefraction​(T elevation)
        Apply refraction correction if applicable (Field version).
        Type Parameters:
        T - field type
        Parameters:
        elevation - value before correction
        Returns:
        apparent elevation