SDFITSDataIterator.h
Classes
- SDFITSDataIterator -- Steps through an SDFITS DATA cell, serving up chunks appropriate for an MS. (full description)
Interface
- Public Members
- SDFITSDataIterator()
- ~SDFITSDataIterator()
- Bool setrow(const Record &row, String &errMsg)
- const Matrix<Float>& floatData()
- const Vector<Double>& frequencies()
- Double freqAxisAtRefPix()
- Double freqAxisDelt()
- MFrequency::Types freqRefType()
- MDoppler::Types dopplerType()
- const Vector<Int>& stokes()
- const MDirection& direction()
- const MEpoch& time()
- const MVTime& exposure()
- const Vector<Double> &timeRange()
- Int beamId()
- Bool hasBeamAxis()
- Int receiverId()
- Bool hasReceiverAxis()
- void next()
- void origin()
- Bool atEnd()
- Vector<Bool> &handledColumns()
- Private Members
- Bool init(const Record &row, String &errMsg)
- void setValues()
- Int indexedFieldNumber(const Record &row, const String &field, Int index)
- SDFITSDataIterator(const SDFITSDataIterator &)
- SDFITSDataIterator &operator=(const SDFITSDataIterator &)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Etymology
Synopsis
Example
Motivation
Thrown Exceptions
To Do
- full use of field units for all handled keywords
- use appropriate defaults when not exactly standard SDFITS
- better error handling, warnings and errors
- issue warnings just once for each setup
- better behavior of class members when things go bad
- handled data-like fields as well as DATA (TMATXnnn=T fields)
Member Description
initialize everything for this row, the cursor is reset at the start
the DATA pointed to by the current cursor, in the order
expected for use by the MS - nstokes, nfreq
the vector of frequencies associated with floatData, in Hz
from original axis description, the frequency axis value at
the reference channel
from original axis description, cdelt
the frequency reference type
the velocity definition
the stokes values
the direction at the current cursor location
the time at the current cursor location, this will also
take into account other time-related keywords/columns in
the fits table
The exposure
The time range, in the same Measure reference frame as time()
the beam ID at the current cursor location. This defaults
to a value of 1 if no BEAM axis is present.
is there a BEAM axis
the receiver ID at the current cursor location. This defaults
to a value of 1 if no RECEIVER axis is present.
Is there a RECEIVER axis
Move the cursor to the next location
Move the cursor back to the origin
At the end of the iterator
which columns are handled here
initialize the internals which depend on the row description
set the values after the cursor has moved or been reset
utility function to get the fieldNumber for an indexed keyword, eg. CTYPE2
undefined and inaccessible
SDFITSDataIterator &operator=(const SDFITSDataIterator &)