Class ConstantTimeCoding

  • All Implemented Interfaces:
    TimeCoding

    public class ConstantTimeCoding
    extends Object
    implements TimeCoding
    Time coding which returns a constant value.
    • Constructor Detail

      • ConstantTimeCoding

        public ConstantTimeCoding​(double time)
    • Method Detail

      • getPixelPos

        public PixelPos getPixelPos​(double mjd,
                                    PixelPos pixelPos)
        Description copied from interface: TimeCoding
        Gets a pixel position associated with a time value given as Modified Julian Day 2000 (MJD2000).
        Specified by:
        getPixelPos in interface TimeCoding
        Parameters:
        mjd - The time as Modified Julian Day 2000 (MJD2000).
        pixelPos - The pixel position to be modified and returned. If null a new instance will be created and returned.
        Returns:
        The pixel position, or null if this TimeCoding cannot compute pixel positions from time values.
        See Also:
        TimeCoding.canGetPixelPos(), TimeCoding.getMJD(PixelPos)