Class LineSensor


  • public class LineSensor
    extends Object
    Line sensor model.
    Author:
    Luc Maisonobe, Guylaine Prat
    • Constructor Detail

      • LineSensor

        public LineSensor​(String name,
                          LineDatation datationModel,
                          Vector3D position,
                          TimeDependentLOS los)
        Simple constructor.
        Parameters:
        name - name of the sensor
        datationModel - datation model
        position - sensor position in spacecraft frame
        los - pixels lines-of-sight in spacecraft frame
        See Also:
        LOSBuilder
    • Method Detail

      • getName

        public String getName()
        Get the name of the sensor.
        Returns:
        name of the sensor
      • getNbPixels

        public int getNbPixels()
        Get the number of pixels.
        Returns:
        number of pixels
      • getParametersDrivers

        public Stream<ParameterDriver> getParametersDrivers()
        Get the drivers for LOS parameters.
        Returns:
        drivers for LOS parameters
        Since:
        2.0
      • getLOS

        public Vector3D getLOS​(AbsoluteDate date,
                               int i)
        Get the pixel normalized line-of-sight at some date.
        Parameters:
        date - current date
        i - pixel index (must be between 0 and getNbPixels() - 1
        Returns:
        pixel normalized line-of-sight
      • getLOS

        public Vector3D getLOS​(AbsoluteDate date,
                               double i)
        Get the pixel normalized interpolated line-of-sight at some date.
        Parameters:
        date - current date
        i - pixel index (must be between 0 and getNbPixels() - 1
        Returns:
        pixel normalized line-of-sight
        Since:
        2.0
      • getLOSDerivatives

        public <T extends Derivative<T>> FieldVector3D<T> getLOSDerivatives​(AbsoluteDate date,
                                                                            int i,
                                                                            DerivativeGenerator<T> generator)
        Get the pixel normalized line-of-sight at some date, and their derivatives with respect to estimated parameters.
        Type Parameters:
        T - derivative type
        Parameters:
        date - current date
        i - pixel index (must be between 0 and getNbPixels() - 1
        generator - generator to use for building Derivative instances
        Returns:
        pixel normalized line-of-sight
      • getLOSDerivatives

        public <T extends Derivative<T>> FieldVector3D<T> getLOSDerivatives​(AbsoluteDate date,
                                                                            double i,
                                                                            DerivativeGenerator<T> generator)
        Get the pixel normalized line-of-sight at some date, and their derivatives with respect to estimated parameters.
        Type Parameters:
        T - derivative type
        Parameters:
        date - current date
        i - pixel index (must be between 0 and getNbPixels() - 1
        generator - generator to use for building Derivative instances
        Returns:
        pixel normalized line-of-sight
        Since:
        2.0
      • getDate

        public AbsoluteDate getDate​(double lineNumber)
        Get the date.
        Parameters:
        lineNumber - line number
        Returns:
        date corresponding to line number
      • getLine

        public double getLine​(AbsoluteDate date)
        Get the line number.
        Parameters:
        date - date
        Returns:
        line number corresponding to date
      • getRate

        public double getRate​(double lineNumber)
        Get the rate of lines scanning.
        Parameters:
        lineNumber - line number
        Returns:
        rate of lines scanning (lines / seconds)
      • getPosition

        public Vector3D getPosition()
        Get the sensor position.
        Returns:
        position
      • dumpRate

        public void dumpRate​(double lineNumber)
        Dump the rate for the current line number.
        Parameters:
        lineNumber - line number