Class TroposphericDSConverter


  • public class TroposphericDSConverter
    extends Object
    Converter for states and parameters arrays.
    Author:
    Luc Maisonobe
    • Constructor Detail

      • TroposphericDSConverter

        public TroposphericDSConverter​(SpacecraftState state,
                                       int freeStateParameters,
                                       AttitudeProvider provider)
        Simple constructor.
        Parameters:
        state - regular state
        freeStateParameters - number of free parameters, either 3 (position) or 6 (position-velocity)
        provider - provider to use if attitude needs to be recomputed
    • Method Detail

      • getFreeStateParameters

        public int getFreeStateParameters()
        Get the number of free state parameters.
        Returns:
        number of free state parameters
      • getState

        public FieldSpacecraftState<org.hipparchus.analysis.differentiation.DerivativeStructure> getState​(DiscreteTroposphericModel tropoModel)
        Get the state with the number of parameters consistent with tropospheric model.
        Parameters:
        tropoModel - tropospheric model
        Returns:
        state with the number of parameters consistent with tropospheric model
      • getParameters

        public org.hipparchus.analysis.differentiation.DerivativeStructure[] getParameters​(FieldSpacecraftState<org.hipparchus.analysis.differentiation.DerivativeStructure> state,
                                                                                           DiscreteTroposphericModel tropoModel)
        Get the tropospheric model parameters.
        Parameters:
        state - state as returned by getState(DiscreteTroposphericModel)
        tropoModel - tropospheric model associated with the parameters
        Returns:
        tropospheric model parameters