|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.io.fits.FitsColumn
public abstract class FitsColumn
Holds the information about a column in an ASCII or binary table.
| Field Summary | |
|---|---|
protected int |
bytes
DOCUMENT ME! |
protected int |
count
the repeat count parsed from the TFORM keyword |
protected java.lang.String |
form
the TFORM keyword value for this column |
protected java.lang.Class |
representation
DOCUMENT ME! |
protected char |
type
the one character type code parsed from the TFORM keyword |
| Constructor Summary | |
|---|---|
FitsColumn(FitsHeader header,
int col)
Create a column object from the information in an HDU header, for a given column. |
|
| Method Summary | |
|---|---|
int |
getCount()
Returns the repeat count for this column. |
int |
getElementSize()
returns the size in bytes of a single data element. |
java.lang.String |
getName()
returns a String representing the raw undecorated column name. |
java.lang.String |
getUnits()
returns a String representing the physical units for this column or null if none are specified in the FITS file |
int |
getWidth()
returns the width of this column in bytes, in the main table. |
boolean |
isScaled()
returns true if the column has a number value and there is an adjustment specified by the TSCALEn or TZEROn keywords. |
java.lang.Class |
rawRepresentation()
returns the Java class used to represent raw unscaled values in this column |
java.lang.Object |
represent(java.lang.Boolean value)
convert an object into one of the official representation for this column. |
java.lang.Object |
represent(byte value)
convert a primitive type into the official representation for this column |
java.lang.Object |
represent(double value)
convert a primitive type into the official representation for this column |
java.lang.Object |
represent(float value)
convert a primitive type into the official representation for this column |
java.lang.Object |
represent(int value)
convert a primitive type into the official representation for this column |
java.lang.Object |
represent(long value)
convert a primitive type into the official representation for this column |
java.lang.Object |
represent(java.lang.Number value)
convert an object into one of the official representation for this column. |
java.lang.Object |
represent(java.lang.Object value)
convert an object into one of the official representation for this column. |
java.lang.Object |
represent(java.lang.String value)
convert an object into one of the official representation for this column. |
java.lang.Object |
scale(java.lang.Object raw)
Apply the column scaling to a value. |
java.lang.Class |
scaledRepresentation()
returns the Java class used to represent values in this column after scaling has been applied. |
java.lang.Object |
unscale(java.lang.Object scaled)
reverse the scaling process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String form
protected char type
protected int count
protected java.lang.Class representation
protected int bytes
| Constructor Detail |
|---|
public FitsColumn(FitsHeader header,
int col)
throws FitsException
header - the FITS header from which to extract column informationcol - the column to read from the FITS file. Note: this value
counts from "1" unlike most other column indices in this
package.
FitsException - if there is a problem with the FITS format.| Method Detail |
|---|
public java.lang.Class rawRepresentation()
public java.lang.Class scaledRepresentation()
public java.lang.String getUnits()
public java.lang.String getName()
public int getCount()
public int getWidth()
public int getElementSize()
public java.lang.Object represent(java.lang.Number value)
value - DOCUMENT ME!
public java.lang.Object represent(java.lang.String value)
value - DOCUMENT ME!
public java.lang.Object represent(java.lang.Boolean value)
value - DOCUMENT ME!
public java.lang.Object represent(java.lang.Object value)
value - DOCUMENT ME!
public java.lang.Object represent(byte value)
value - DOCUMENT ME!
public java.lang.Object represent(int value)
value - DOCUMENT ME!
public java.lang.Object represent(long value)
value - DOCUMENT ME!
public java.lang.Object represent(float value)
value - DOCUMENT ME!
public java.lang.Object represent(double value)
value - DOCUMENT ME!
public boolean isScaled()
public java.lang.Object scale(java.lang.Object raw)
raw - the unscaled value
public java.lang.Object unscale(java.lang.Object scaled)
scaled - ascaled value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||