casacore
|
#include <FITSTimedTable.h>
Public Member Functions | |
FITSTimedTable () | |
This is not connected to any data, isValid always returns True, keywords and description return the default versions hasChanged returns False, name returns an empty string pastEnd returns False and next does nothing. More... | |
FITSTimedTable (FITSTabular *originalTable, uInt whichColumnIsTime=0) | |
Note, originalTable cannot be destructed, reopened,...,during the lifetime of this object. More... | |
~FITSTimedTable () | |
virtual Bool | isValid () const |
isValid() returns False if this object isn't a valid Tabular data structure. More... | |
virtual const TableRecord & | keywords () const |
Returns keywords which are associated with the underlying FITS files. More... | |
virtual const RecordDesc & | description () const |
Returns the description of the underlying FITS table. More... | |
virtual const Record & | units () const |
Returns any TUNITnnn associated with a column (the field names are the column names, each field value is the TUNITnnn value for that field). More... | |
virtual const Record & | displayFormats () const |
Returns any TDISPnnn associated with a column (the field names are the column names, each field value is the TDISPnnn value for that field). More... | |
virtual const Record & | nulls () const |
Returns any TNULLnnn associated with a column (the field names are the column names, each field value is the TNULLnnn value for that field). More... | |
virtual Bool | hasChanged () const |
Has the description changed since construction, default is False. More... | |
virtual void | resetChangedFlag () |
reset the changed flag, default do nothing More... | |
virtual const String & | name () const |
return the name More... | |
virtual Bool | pastEnd () const |
Returns True if we have advanced past the end of data. More... | |
virtual Bool | pastEnd () |
virtual void | next () |
Advance the row if possible (guaranteed harmless if pastEnd() is True. More... | |
virtual void | setTime (Double time) |
interpolate to the desired time which must be >= the currentTime() This uses a linear interpolation between adjacent floating point values. More... | |
virtual const Record & | currentRow () const |
Return the currentRow. More... | |
virtual Record & | currentRow () |
Double | currentTime () const |
What is the time of the current row? More... | |
Bool | ok () const |
this is True if the last setTime() finished as expected It is False only if the requested time is before the current time and the timed table as just been opened More... | |
Double | nextTime () |
What will the time of the next row be? Returns a very large number if it is past the end of the table. More... | |
Public Member Functions inherited from casacore::FITSTabular | |
virtual | ~FITSTabular () |
virtual Bool | reopen (const String &) |
Reopen the table, default behavior is to do nothing, return False. More... | |
Private Member Functions | |
void | initNowRecord (const RecordDesc &desc) |
void | initNextRecord (const RecordDesc &desc) |
Additional Inherited Members | |
Static Public Member Functions inherited from casacore::FITSTabular | |
static TableRecord | keywordsFromHDU (HeaderDataUnit &hdu, Bool allKeywords=False) |
Helper function for retrieving keywords from a native-FITS hdu. More... | |
static RecordDesc | descriptionFromHDU (BinaryTableExtension &hdu) |
Helper function for retrieving a description from a native-FITS hdu. More... | |
static Record | subStringShapeFromHDU (BinaryTableExtension &hdu) |
Help function for retrieving any shape information from String columns using the SubString convention. More... | |
static Record | unitsFromHDU (BinaryTableExtension &hdu) |
Helper function for retrieving the TUNITnnn from a native-FITS hdu. More... | |
static Record | displayFormatsFromHDU (BinaryTableExtension &hdu) |
Helper function for retrieving the TDISPnnn from a native-FITS hdu. More... | |
static Record | nullsFromHDU (BinaryTableExtension &hdu) |
Helper function for retrieving the TNULLnnn from a native-FITS hdu. More... | |
static TableDesc | tableDesc (const FITSTabular &fitstabular) |
Get a TableDesc appropriate to hold a FITSTabular the keywords, description, units, displayFormats, and nulls are all used. More... | |
Public interface
FITSTimedTable is used to look at FITS tables which have a time column. In particular, it peeks ahead, and knows the time of the currentRow and of the nextRow.
It is constructed with a pointer to any FITSTabular. Presently, no memory management is imposed to ensure that the pointer remains valid.
Definition at line 73 of file FITSTimedTable.h.
casacore::FITSTimedTable::FITSTimedTable | ( | ) |
This is not connected to any data, isValid always returns True, keywords and description return the default versions hasChanged returns False, name returns an empty string pastEnd returns False and next does nothing.
setTime does nothing, currentRow returns an empty record and currentTime returns 0.0 and ok returns True and nextTime returns 0.0
casacore::FITSTimedTable::FITSTimedTable | ( | FITSTabular * | originalTable, |
uInt | whichColumnIsTime = 0 |
||
) |
Note, originalTable cannot be destructed, reopened,...,during the lifetime of this object.
casacore::FITSTimedTable::~FITSTimedTable | ( | ) |
|
virtual |
Return the currentRow.
This is guaranteed to be valid so long as only member functions of this base class are called (so you can safely attach RecordFieldPtr objects to it. The result is undefined if pastEnd() is True.
Implements casacore::FITSTabular.
|
virtual |
Double casacore::FITSTimedTable::currentTime | ( | ) | const |
What is the time of the current row?
|
virtual |
Returns the description of the underlying FITS table.
Implements casacore::FITSTabular.
|
virtual |
Returns any TDISPnnn associated with a column (the field names are the column names, each field value is the TDISPnnn value for that field).
Note that only those columns with a non-empty TDISPnnn have an entry in the displayFormats() Record.
Implements casacore::FITSTabular.
|
inlinevirtual |
Has the description changed since construction, default is False.
Reimplemented from casacore::FITSTabular.
Definition at line 96 of file FITSTimedTable.h.
References hasChanged_p.
|
private |
|
private |
|
virtual |
isValid() returns False if this object isn't a valid Tabular data structure.
Implements casacore::FITSTabular.
|
virtual |
Returns keywords which are associated with the underlying FITS files.
Implements casacore::FITSTabular.
|
inlinevirtual |
return the name
Implements casacore::FITSTabular.
Definition at line 98 of file FITSTimedTable.h.
References casacore::FITSTabular::name(), and table_p.
|
virtual |
Advance the row if possible (guaranteed harmless if pastEnd() is True.
Implements casacore::FITSTabular.
Double casacore::FITSTimedTable::nextTime | ( | ) |
What will the time of the next row be? Returns a very large number if it is past the end of the table.
|
virtual |
Returns any TNULLnnn associated with a column (the field names are the column names, each field value is the TNULLnnn value for that field).
Note that only those columns with a specific entry for TNULLnnn and which have not been promoted to doubles due TSCAL and TZERO values will have an entry in the nulls() Record. The meaning of TNULL is only defined for integer and byte columns. When a column is promoted to a double because of scaling, any TNULL values will be assigned a value of NaN.
Implements casacore::FITSTabular.
|
inline |
this is True if the last setTime() finished as expected It is False only if the requested time is before the current time and the timed table as just been opened
Definition at line 117 of file FITSTimedTable.h.
References ok_p.
|
virtual |
Returns True if we have advanced past the end of data.
Implements casacore::FITSTabular.
|
virtual |
|
inlinevirtual |
reset the changed flag, default do nothing
Reimplemented from casacore::FITSTabular.
Definition at line 97 of file FITSTimedTable.h.
References casacore::False, and hasChanged_p.
|
virtual |
interpolate to the desired time which must be >= the currentTime() This uses a linear interpolation between adjacent floating point values.
Non-floating point values are NOT interpolated but have the value of the most recent actual row. On the last row of the table, not interpolation is done.
|
virtual |
Returns any TUNITnnn associated with a column (the field names are the column names, each field value is the TUNITnnn value for that field).
Note that only those columns with a non-empty TUNITnnn have an entry in the units() Record.
Implements casacore::FITSTabular.
|
private |
Definition at line 123 of file FITSTimedTable.h.
|
private |
Definition at line 126 of file FITSTimedTable.h.
|
private |
Definition at line 137 of file FITSTimedTable.h.
|
private |
Definition at line 135 of file FITSTimedTable.h.
|
private |
Definition at line 138 of file FITSTimedTable.h.
|
private |
Definition at line 136 of file FITSTimedTable.h.
|
private |
Definition at line 125 of file FITSTimedTable.h.
Referenced by hasChanged(), and resetChangedFlag().
|
private |
Definition at line 133 of file FITSTimedTable.h.
|
private |
Definition at line 124 of file FITSTimedTable.h.
Referenced by ok().
|
private |
Definition at line 129 of file FITSTimedTable.h.
|
private |
Definition at line 128 of file FITSTimedTable.h.
|
private |
Definition at line 132 of file FITSTimedTable.h.
|
private |
Definition at line 127 of file FITSTimedTable.h.
Referenced by name().
|
private |
Definition at line 131 of file FITSTimedTable.h.
|
private |
Definition at line 130 of file FITSTimedTable.h.
|
private |
Definition at line 134 of file FITSTimedTable.h.