org.eso.fits
Class FitsTform

java.lang.Object
  extended by org.eso.fits.FitsTform

public class FitsTform
extends java.lang.Object

FitsTform class decodes information in value fields of FITS table TFORM and TDISP keywords.


Constructor Summary
FitsTform(java.lang.String form)
          Constructur for FitsTform class from a FITS table format string.
 
Method Summary
 java.lang.String getAdditional()
          Get method to retreive the additional information string.
 char getDataType()
          Get method to obtain the data type indicated by the format.
 int getDecimals()
          Get method to give the number of decimals for display formats.
 char getEFormat()
          Get method to give the extended E-format display format.
 int getExponent()
          Get method to obtain the number of chararters to be displayd in an exponential display format.
 java.lang.String getFormat()
          Get method to retrieve the original format string.
 int getRepeat()
          Get method to obtain the repeat factor of the format for Binary Tables (by default it is 1).
 int getWidth()
          Get method to retrieve the field width of a single data value in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitsTform

public FitsTform(java.lang.String form)
          throws FitsException
Constructur for FitsTform class from a FITS table format string.

Parameters:
form - String with TFORM or TDISP format
Throws:
FitsException
Method Detail

getFormat

public java.lang.String getFormat()
Get method to retrieve the original format string.


getDataType

public char getDataType()
Get method to obtain the data type indicated by the format.


getEFormat

public char getEFormat()
Get method to give the extended E-format display format. 'E' indicates engineering format while 'S' is scientific. If none is given a null character is returned.


getRepeat

public int getRepeat()
Get method to obtain the repeat factor of the format for Binary Tables (by default it is 1).


getWidth

public int getWidth()
Get method to retrieve the field width of a single data value in bytes.


getDecimals

public int getDecimals()
Get method to give the number of decimals for display formats. For B/O/X display formats it gives maximum number.


getExponent

public int getExponent()
Get method to obtain the number of chararters to be displayd in an exponential display format.


getAdditional

public java.lang.String getAdditional()
Get method to retreive the additional information string. This may be appended the prime data type in Binary Table TFORM keywords e.g. P type.