net.grelf.grip
Class FITS_Header

java.lang.Object
  extended by net.grelf.grip.FITS_Header

public class FITS_Header
extends java.lang.Object

Representing the header part of a header/data unit (HDU) loaded from a FITS file.


Constructor Summary
FITS_Header()
           
 
Method Summary
 int[] getAxes()
           
 int getBitpix()
           
 double getBscale()
           
 double getBzero()
           
 Metadata getMetadata()
          Get the list of keywords in original order as read from the file, in a new Metadata object.
 boolean isImageHeader()
          Test whether the SIMPLE keyword is present with value "T" (in a primary header) or the XTENSION keyword is present with value "IMAGE" (in an extension header).
 boolean isPrimaryHeader()
           
 FITS_Header read(java.io.DataInputStream dis, java.lang.String fileName, boolean primary)
          Read a FITS header from the given input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FITS_Header

public FITS_Header()
Method Detail

getMetadata

public Metadata getMetadata()
Get the list of keywords in original order as read from the file, in a new Metadata object.


getAxes

public int[] getAxes()

getBitpix

public int getBitpix()

getBscale

public double getBscale()

getBzero

public double getBzero()

isPrimaryHeader

public boolean isPrimaryHeader()

isImageHeader

public boolean isImageHeader()
Test whether the SIMPLE keyword is present with value "T" (in a primary header) or the XTENSION keyword is present with value "IMAGE" (in an extension header).


read

public FITS_Header read(java.io.DataInputStream dis,
                        java.lang.String fileName,
                        boolean primary)
                 throws java.io.IOException,
                        NoImageException
Read a FITS header from the given input stream. The associated file name is needed for error logging.

Throws:
java.io.IOException
NoImageException