Package nom.tam.fits

Class UndefinedHDU

    • Constructor Detail

      • UndefinedHDU

        public UndefinedHDU​(Header h,
                            UndefinedData d)
                     throws FitsException
        Build an image HDU using the supplied data.
        Parameters:
        h - the header for this HDU
        d - the data used to build the image.
        Throws:
        FitsException - if there was a problem with the data.
    • Method Detail

      • encapsulate

        public static UndefinedData encapsulate​(java.lang.Object o)
                                         throws FitsException
        Parameters:
        o - the object to encapsulate
        Returns:
        Encapsulate an object as an ImageHDU.
        Throws:
        FitsException - if the operation failed
      • isData

        public static boolean isData​(java.lang.Object o)
        Check if we can use the following object as in an Undefined FITS block. We allow this so long as computeLSize can get a size. Note that computeLSize may be wrong!
        Parameters:
        o - The Object being tested.
        Returns:
        true if o can be an Undefined FITS block.
      • isHeader

        public static boolean isHeader​(Header hdr)
        Check if we can find the length of the data for this header.
        Parameters:
        hdr - header to check.
        Returns:
        true if this HDU has a valid header.
      • manufactureHeader

        public static Header manufactureHeader​(Data d)
                                        throws FitsException
        Parameters:
        d - The image to be described.
        Returns:
        Create a header that describes the given image data.
        Throws:
        FitsException - if the object does not contain valid image data.
      • info

        public void info​(java.io.PrintStream stream)
        Description copied from class: BasicHDU
        Print out some information about this HDU.
        Specified by:
        info in class BasicHDU<UndefinedData>
        Parameters:
        stream - the printstream to write the info on