|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.StreamStarTableWriter | +--uk.ac.starlink.fits.FitsTableWriter | +--uk.ac.starlink.votable.FitsPlusTableWriter
TableWriter which writes table data into the first extension of a FITS file,
Unlike FitsTableWriter
however, the
primary extension is not left contentless, instead it gets the
text of a DATA-less VOTable written into it. This VOTable describes
the metadata of the table, as if the DATA element contained a FITS
element referencing the first extension HDU of the file.
Tables stored in this format have all the rich metadata associated
with VOTables, and benefit from the compactness of FITS tables,
without the considerable disdvantage of being split into two files.
The header cards in the primary HDU look like this:
SIMPLE = T / Standard FITS format BITPIX = 8 / Character data NAXIS = 1 / Text string NAXIS1 = nnnn / Number of characters VOTMETA = T / Table metadata in VOTABLE format EXTEND = T / There are standard extensionsthe VOTMETA card in particular marking that this HDU contains VOTable metadata.
Constructor Summary | |
FitsPlusTableWriter()
|
Method Summary | |
String |
getFormatName()
Returns "FITS". |
static StarTableWriter[] |
getStarTableWriters()
Returns a list of FITS-plus table writers with variant values of attributes. |
boolean |
looksLikeFile(String location)
Returns true if location ends with something like ".fit" or ".fits". |
protected void |
writePrimary(StarTable table,
DataOutputStream strm)
Attempts to write a VOTable containing metadata for table into the primary HDU. |
Methods inherited from class uk.ac.starlink.fits.FitsTableWriter |
writeStarTable |
Methods inherited from class uk.ac.starlink.table.StreamStarTableWriter |
writeStarTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FitsPlusTableWriter()
Method Detail |
public String getFormatName()
FitsTableWriter
getFormatName
in interface StarTableWriter
getFormatName
in class FitsTableWriter
public boolean looksLikeFile(String location)
looksLikeFile
in interface StarTableWriter
looksLikeFile
in class FitsTableWriter
location
- filename
protected void writePrimary(StarTable table, DataOutputStream strm) throws IOException
writePrimary
in class FitsTableWriter
table
- the table which will be written into the next HDUstrm
- the stream down which it will be written
IOException
public static StarTableWriter[] getStarTableWriters()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |