casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
GBTStateTable Class Reference

Class for dealing with the STATE table in GBT FITS files. More...

#include <GBTStateTable.h>

List of all members.

Public Member Functions

 GBTStateTable ()
 This constructs a GBTStateTable that is not attached to any table.
 GBTStateTable (FITSTable &fitstab)
 Make a GBTStateTable attached to the indicated FITSTable.
 GBTStateTable (const GBTStateTable &other)
 uses copy semantics
 ~GBTStateTable ()
GBTStateTableoperator= (const GBTStateTable &other)
 uses copy semantics
Bool reattach (FITSTable &fitstab)
 reattach this object to a new FITSTable.
void detach ()
 detach from any table.
Bool isAttached () const
 Is this object attached to a FITSTable.
const Table & table () const
 the STATE table converted to a table
const Stringmaster () const
 the value of the MASTER keyword in this table
Int numphase () const
 the value of the NUMPHASE keyword in this table
Double swperiod () const
 the value of the SWPERIOD keyword in this table
const Vector< Bool > & sigref () const
 The SIGREF values - converted to the MS convention T if signal being observed, F if reference.
const Vector< Bool > & cal () const
 The CAL values - converted to the MS convention T if CAL noise being observed, F if not.
Bool digestActState (const Table &actState, Vector< Int > &states, Bool &mixedSignals, Bool &multipleCal, Bool &multipleSigref, Bool oldCalState) const
 Digest an ACT_STATE table.

Private Member Functions

Bool examineColumn (const Table &actState, const String &colName, Vector< Int > &colValue, Int factor, Bool oldCalState) const

Private Attributes

Table * itsTab
Bool itsAttached
String itsMaster
Int itsNumphase
Double itsSwperiod
Vector< Bool > itsSigref
Vector< Bool > itsCal
Int itsBaseVer
Int itsDeviceVer

Detailed Description

Class for dealing with the STATE table in GBT FITS files.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Etymology

Synopsis

Example

Motivation

Thrown Exceptions

Definition at line 81 of file GBTStateTable.h.


Constructor & Destructor Documentation

This constructs a GBTStateTable that is not attached to any table.

reattach must be used to make such an object useful.

GBTStateTable::GBTStateTable ( FITSTable &  fitstab)

Make a GBTStateTable attached to the indicated FITSTable.

uses copy semantics


Member Function Documentation

const Vector<Bool>& GBTStateTable::cal ( ) const [inline]

The CAL values - converted to the MS convention T if CAL noise being observed, F if not.

In original FITS, 0->no cal, 1->cal.

Definition at line 130 of file GBTStateTable.h.

References itsCal.

detach from any table.

Bool GBTStateTable::digestActState ( const Table &  actState,
Vector< Int > &  states,
Bool &  mixedSignals,
Bool &  multipleCal,
Bool &  multipleSigref,
Bool  oldCalState 
) const

Digest an ACT_STATE table.

Return False if one of the following rules are violated: 1) The changing columns must be either ICAL or ECAL and ISIGREF or ESIGREF. 2) Each row of STATE must have one and only one matching row in ACT_STATE. If the above are true, the return value will be true and mixedSignals will be False. states will contain the STATE row numbers corresponding to the rows of ACT_STATE (hence states will have the same number of elements as rows in ACT_STATE). For matching rows, the row number of the corresponding STATE row will appear in the location for that row in ACT_STATE (i.e. in order). ACT_STATE rows with no match in STATE will be indicated by a value of -1 at that location in states. Data corresponding to that ACT_STATE row should all be zero (not checked here, obviously). Hence states is resized so that it has the same number of rows as the ACT_STATE table. mixedSignals = T is not necessarily fatal. If multipleCal and multipleSigref are both false, that is okay. In that case, mixedSignals = True imples that there was a non-zero value in both an E and I column but not both *CAL or *SIGREF columns. If oldCalState is True, then this implies that the ECAL and ICAL columns in the ACT_STATE table have the wrong sense (i.e. 0->on and 1->off) instead of the sense in the STATE table (0->off and 1->on). It is expected that this will be fixed in a future version of the ACS FITS file. It is up to the GBTACSFiller class to decide how to set that argument.

Bool GBTStateTable::examineColumn ( const Table &  actState,
const String colName,
Vector< Int > &  colValue,
Int  factor,
Bool  oldCalState 
) const [private]
Bool GBTStateTable::isAttached ( ) const [inline]

Is this object attached to a FITSTable.

Definition at line 108 of file GBTStateTable.h.

References itsAttached.

const String& GBTStateTable::master ( ) const [inline]

the value of the MASTER keyword in this table

Definition at line 114 of file GBTStateTable.h.

References itsMaster.

Int GBTStateTable::numphase ( ) const [inline]

the value of the NUMPHASE keyword in this table

Definition at line 117 of file GBTStateTable.h.

References itsNumphase.

GBTStateTable& GBTStateTable::operator= ( const GBTStateTable other)

uses copy semantics

Bool GBTStateTable::reattach ( FITSTable &  fitstab)

reattach this object to a new FITSTable.

If there are problems with the file, the return value is False and appropriate warnings are sent to the logger. The resulting object is not attached to any FITSTable.

const Vector<Bool>& GBTStateTable::sigref ( ) const [inline]

The SIGREF values - converted to the MS convention T if signal being observed, F if reference.

In original FITS, 0 -> signal and 1 -> reference

Definition at line 125 of file GBTStateTable.h.

References itsSigref.

Double GBTStateTable::swperiod ( ) const [inline]

the value of the SWPERIOD keyword in this table

Definition at line 120 of file GBTStateTable.h.

References itsSwperiod.

const Table& GBTStateTable::table ( ) const [inline]

the STATE table converted to a table

Definition at line 111 of file GBTStateTable.h.

References itsTab.


Member Data Documentation

Definition at line 159 of file GBTStateTable.h.

Referenced by isAttached().

Definition at line 167 of file GBTStateTable.h.

Vector<Bool> GBTStateTable::itsCal [private]

Definition at line 165 of file GBTStateTable.h.

Referenced by cal().

Definition at line 167 of file GBTStateTable.h.

Definition at line 161 of file GBTStateTable.h.

Referenced by master().

Definition at line 162 of file GBTStateTable.h.

Referenced by numphase().

Vector<Bool> GBTStateTable::itsSigref [private]

Definition at line 165 of file GBTStateTable.h.

Referenced by sigref().

Double GBTStateTable::itsSwperiod [private]

Definition at line 163 of file GBTStateTable.h.

Referenced by swperiod().

Table* GBTStateTable::itsTab [private]

Definition at line 157 of file GBTStateTable.h.

Referenced by table().


The documentation for this class was generated from the following file: