Package nom.tam.fits

Class RandomGroupsData

  • All Implemented Interfaces:
    FitsElement

    public class RandomGroupsData
    extends Data
    This class instantiates FITS Random Groups data. Random groups are instantiated as a two-dimensional array of objects. The first dimension of the array is the number of groups. The second dimension is 2. The first object in every row is a one dimensional parameter array. The second element is the n-dimensional data array.
    • Field Detail

      • dataArray

        private final java.lang.Object[][] dataArray
    • Constructor Detail

      • RandomGroupsData

        public RandomGroupsData()
        Create the equivalent of a null data element.
      • RandomGroupsData

        public RandomGroupsData​(java.lang.Object[][] x)
        Create a RandomGroupsData object using the specified object to initialize the data array.
        Parameters:
        x - The initial data array. This should a two-d array of objects as described above.
    • Method Detail

      • fillHeader

        protected void fillHeader​(Header h)
                           throws FitsException
        Description copied from class: Data
        Modify a header to point to this data, this differs per subclass, they all need oder provided different informations to the header. Basically they describe the structure of this data object.
        Specified by:
        fillHeader in class Data
        Parameters:
        h - header to fill with the data from the current data object
        Throws:
        FitsException - if the operation fails
      • getData

        public java.lang.Object getData()
        Specified by:
        getData in class Data
        Returns:
        the data array object.
      • getTrueSize

        protected long getTrueSize()
        Get the size of the actual data element.
        Specified by:
        getTrueSize in class Data