public class NavigatorFITSTable extends SkycatTable
Modifier and Type | Field and Description |
---|---|
protected static String |
CATINFO
Name of a FITS binary table containing skycat style catalog configuration information.
|
protected static String[] |
CATINFO_COLUMNS
Table column headings for the CATINFO table (corresponds to the fields in a skycat catalog config file)
|
protected static int |
NUM_CATINFO_COLUMNS
Number of columns in the CATINFO table
|
DEC_COL, EQUINOX, ID_COL, RA_COL, SYMBOL, X_COL, Y_COL
columnIdentifiers, dataVector
listenerList
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER
Constructor and Description |
---|
NavigatorFITSTable(String filename,
Fits fits,
int hduIndex)
Initialize from the given FITS HDU
|
NavigatorFITSTable(String filename,
Fits fits,
TableHDU hdu)
Initialize from the given FITS HDU
|
Modifier and Type | Method and Description |
---|---|
protected static void |
deleteTable(Fits fits,
String name)
Delete the named FITS table from the given FITS file.
|
protected static BinaryTableHDU |
findBinaryTableHDU(Fits fits,
String name)
Look for a binary table with the given name and return it if found,
otherwise null.
|
protected SkycatConfigEntry |
findConfigEntry(Fits fits)
Look for a skycat catalog configuration entry for this table in another
FITS table in this file with the name "CATINFO".
|
protected static int |
findConfigEntryRow(BinaryTableHDU hdu,
String name)
Return index of the row in the given binary table who's first element contains
the given string, or -1 if not found.
|
protected static NavigatorFITSTable |
findTable(String filename,
Fits fits,
String name)
Find the named FITS binary table, make a NavigatorFITSTable out of it and return it.
|
protected static TableHDU |
getTableHDU(Fits fits,
int hduIndex)
Return the object for the given HDU index.
|
protected static void |
plotTable(String filename,
Fits fits,
Navigator navigator,
String name)
Plot the named binary table on the image.
|
static void |
plotTables(String filename,
Fits fits,
Navigator navigator)
Check for any catalog tables saved as FITS binary tables and
plot the ones found on the image.
|
static NavigatorFITSTable |
saveWithImage(String filename,
Fits fits,
TableQueryResult table)
Save the given table as a binary FITS table in the given FITS image file and
return a NavigatorFITSTable object for the new table.
|
protected static void |
updateCatInfo(Fits fits,
TableQueryResult table,
String name)
Add (or update) a FITS table named CATINFO with catalog configuration information
for the given catalog.
|
_saveProperties, checkProperties, getCatalog, getConfigEntry, main, makeQueryResult, setConfigEntry
_checkColumnClass, _init, _initColumnClasses, _initFields, _parseHeading, _parseItem, _parseProperty, _parseRow, _saveHeader, addRow, clone, compareRow, getColumnClass, getColumnClasses, getColumnDesc, getColumnIdentifiers, getColumnIndex, getColumnName, getCoordinates, getDescription, getDocURL, getFields, getFilename, getId, getName, getNumColumns, getNumParams, getParamDesc, getParamDesc, getParent, getPath, getProperties, getProperty, getQueryArgs, getRowCoordinates, getTitle, getType, getValueAt, getWCSCenter, hasCol, hasCoordinates, isCellEditable, isImageServer, isLocal, isMore, isReadOnly, makeColumnIdentifiers, print, query, saveAs, saveAs, saveAsHTML, setCatalog, setColumnClasses, setColumnIdentifiers, setDescription, setDocURL, setFields, setFilename, setId, setMore, setName, setParent, setProperties, setProperty, setQueryArgs, setReadOnly, setRegionArgs, setRowCoordinates, setTitle, sort, toString
addColumn, addColumn, addColumn, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataVector
addTableModelListener, getColumnCount, getRowCount, getValueAt, removeTableModelListener, setValueAt
protected static final String CATINFO
protected static final String[] CATINFO_COLUMNS
protected static final int NUM_CATINFO_COLUMNS
public NavigatorFITSTable(String filename, Fits fits, TableHDU hdu) throws IOException, FitsException
filename
- The name of the FITS filefits
- object to use for FITS I/Ohdu
- the HDU containing the FITS tableIOException
FitsException
public NavigatorFITSTable(String filename, Fits fits, int hduIndex) throws IOException, FitsException
filename
- The name of the FITS filefits
- object to use for FITS I/OhduIndex
- the index of the HDU containing the FITS tableIOException
FitsException
protected static TableHDU getTableHDU(Fits fits, int hduIndex) throws IOException, FitsException
fits
- object to use for FITS I/OhduIndex
- the index of the HDU containing the FITS tableIOException
FitsException
protected SkycatConfigEntry findConfigEntry(Fits fits) throws FitsException, IOException
fits
- object to use for FITS I/OFitsException
IOException
protected static int findConfigEntryRow(BinaryTableHDU hdu, String name) throws FitsException, IOException
FitsException
IOException
protected static BinaryTableHDU findBinaryTableHDU(Fits fits, String name) throws FitsException, IOException
fits
- object to use for FITS I/OFitsException
IOException
public static NavigatorFITSTable saveWithImage(String filename, Fits fits, TableQueryResult table) throws FitsException, IOException
If the table is an instance of SkycatTable
, the catalog configuration information
is also saved in a separate table named CATINFO.
filename
- The name of the FITS filefits
- object to use for FITS I/Otable
- contains the table dataFitsException
IOException
protected static void deleteTable(Fits fits, String name) throws FitsException, IOException
fits
- object to use for FITS I/Oname
- the name of the tableFitsException
IOException
protected static void updateCatInfo(Fits fits, TableQueryResult table, String name) throws FitsException, IOException
fits
- object to use for FITS I/Otable
- contains the table dataname
- the name to give the FITS tableFitsException
IOException
public static void plotTables(String filename, Fits fits, Navigator navigator) throws FitsException, IOException
filename
- The name of the FITS filefits
- object to use for FITS I/Onavigator
- window object managing the table display and plottingFitsException
IOException
protected static void plotTable(String filename, Fits fits, Navigator navigator, String name) throws FitsException, IOException
filename
- The name of the FITS filefits
- object to use for FITS I/Onavigator
- window object managing the table display and plottingname
- the name of the table to plot (FITS keyword EXTNAME)FitsException
IOException
protected static NavigatorFITSTable findTable(String filename, Fits fits, String name) throws FitsException, IOException
filename
- The name of the FITS filefits
- object to use for FITS I/Oname
- the name of the table to plot (FITS keyword EXTNAME)FitsException
IOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.