Class FitsLibsReader

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.io.FileFormatHandler, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<adams.data.io.input.AbstractDataContainerReader>, adams.core.SizeOfHandler, adams.core.Stoppable, Serializable, Comparable

    public class FitsLibsReader
    extends AbstractThreeWayDataReader
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Unsigned

        protected boolean m_Unsigned
        whether the data is unsigned.
    • Constructor Detail

      • FitsLibsReader

        public FitsLibsReader()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractThreeWayDataReader
      • setUnsigned

        public void setUnsigned​(boolean value)
        Sets whether the numbers are to be interpreted as unsigned.
        Parameters:
        value - true if unsigned
      • getUnsigned

        public boolean getUnsigned()
        Returns whether the numbers are to be interpreted as unsigned.
        Returns:
        true if unsigned
      • unsignedTipText

        public String unsignedTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getFormatDescription

        public String getFormatDescription()
        Returns a string describing the format (used in the file chooser).
        Specified by:
        getFormatDescription in interface adams.core.io.FileFormatHandler
        Specified by:
        getFormatDescription in class adams.data.io.input.AbstractDataContainerReader<ThreeWayData>
        Returns:
        a description suitable for displaying in the file chooser
      • getFormatExtensions

        public String[] getFormatExtensions()
        Returns the extension(s) of the format.
        Specified by:
        getFormatExtensions in interface adams.core.io.FileFormatHandler
        Specified by:
        getFormatExtensions in class adams.data.io.input.AbstractDataContainerReader<ThreeWayData>
        Returns:
        the extension (without the dot!)
      • arrayToDouble

        protected double arrayToDouble​(Object array,
                                       int index)
        Turns the array value into a double.
        Parameters:
        array - the array to obtain the value from
        index - the index in the array
        Returns:
        the double value
      • readData

        protected void readData()
        Performs the actual reading.
        Specified by:
        readData in class adams.data.io.input.AbstractDataContainerReader<ThreeWayData>