public class HealpixFitsTableWriter extends AbstractFitsTableWriter
It is not always necessary to use this output handler, since the normal FitsTableWriter also inserts the relevant HEALPix-FITS headers if it encounters a table that looks like a HEALPix map. However, this implementation differs in a couple of ways: if it is presented with a table that does not look like a HEALPix map, it will throw a TableFormatException rather than just performing non-HEALPix output, and it will rearrange the columns so that the healpix index is in the first column and named "PIXEL" if required.
Constructor and Description |
---|
HealpixFitsTableWriter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected FitsTableSerializer |
createSerializer(StarTable table)
Returns a StandardFitsTableSerializer only if the table looks like
a HEALpix map.
|
boolean |
looksLikeFile(String location)
Returns false.
|
getAllowSignedByte, getAllowZeroLengthString, getConfig, getCurrentDate, getFormatName, getMetadataCards, getMimeType, getPadCharacter, getWide, getWriteDate, setAllowSignedByte, setAllowZeroLengthString, setFormatName, setPadCharacter, setWide, setWriteDate, writePrimaryHDU, writeStarTable, writeStarTables, writeStarTables, writeTableHDU
writeStarTable, writeStarTable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeStarTable
public boolean looksLikeFile(String location)
location
- the location name (probably filename)true
iff it looks like a file this writer would
normally writeprotected FitsTableSerializer createSerializer(StarTable table) throws TableFormatException, IOException
createSerializer
in class AbstractFitsTableWriter
table
- table to serializeIOException
- if the table can't be writtenTableFormatException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.