FitsTableSerializer
public class ColFitsTableSerializer extends java.lang.Object implements FitsTableSerializer
Constructor | Description |
---|---|
ColFitsTableSerializer(uk.ac.starlink.table.StarTable table,
WideFits wide) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getBadValue(int icol) |
Returns the bad value (text of the TNULLnn card), if any, used
for a given column.
|
int[] |
getDimensions(int icol) |
Returns the dimensions of the items which will be output for a
given column.
|
char |
getFormatChar(int icol) |
Returns the FITS TFORM letter which describes the type of data
output for a given column.
|
nom.tam.fits.Header |
getHeader() |
Returns a header suitable for the HDU which will contain the table.
|
long |
getRowCount() |
Returns the number of rows which will be output.
|
void |
writeData(java.io.DataOutput out) |
Write the FITS data unit populated by this serializer.
|
public ColFitsTableSerializer(uk.ac.starlink.table.StarTable table, WideFits wide) throws java.io.IOException
table
- table to serializewide
- convention for representing over-wide tables;
null to avoid this conventionjava.io.IOException
- if it won't be possible to write the given tablepublic nom.tam.fits.Header getHeader() throws nom.tam.fits.HeaderCardException
FitsTableSerializer
getHeader
in interface FitsTableSerializer
nom.tam.fits.HeaderCardException
public void writeData(java.io.DataOutput out) throws java.io.IOException
writeData
in interface FitsTableSerializer
out
- destination streamjava.io.IOException
public long getRowCount()
FitsTableSerializer
getRowCount
in interface FitsTableSerializer
public char getFormatChar(int icol)
FitsTableSerializer
getFormatChar
in interface FitsTableSerializer
icol
- column to querypublic int[] getDimensions(int icol)
FitsTableSerializer
getDimensions
in interface FitsTableSerializer
icol
- column to querypublic java.lang.String getBadValue(int icol)
FitsTableSerializer
getBadValue
in interface FitsTableSerializer
icol
- column to queryCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.