|
| CalAnalysis (const casacore::String &oTableName) |
| Generic constructor. More...
|
|
virtual | ~CalAnalysis (void) |
| Destructor. More...
|
|
casacore::String | calName (void) const |
| Return the calibration table name and keyword private variables. More...
|
|
casacore::String | msName (void) const |
|
casacore::String | visCal (void) const |
|
casacore::String | parType (void) const |
|
casacore::String | polBasis (void) const |
|
casacore::Vector< casacore::uInt > | field (void) const |
| Get the fields, antennas, times, and feeds spectral windows. More...
|
|
casacore::Vector< casacore::uInt > | antenna (void) const |
|
casacore::Vector< casacore::uInt > | antenna1 (void) const |
|
casacore::Vector< casacore::Int > | antenna2 (void) const |
|
casacore::Vector
< casacore::Double > | time (void) const |
|
casacore::Vector
< casacore::String > | feed (void) const |
|
casacore::uInt | numspw (void) const |
| Get the number of spectral windows, spectral windows, number of channels for each spectral window, and frequencies for each spectral window. More...
|
|
casacore::Vector< casacore::uInt > | spw (void) const |
|
casacore::Vector< casacore::uInt > | numChannel (void) const |
|
casacore::Vector
< casacore::Vector
< casacore::Double > > | freq (void) const |
|
template<typename T > |
casacore::Vector< OUTPUT< T > > | stats (const INPUT &oInput, const CalStats::ARG< T > &oArg) |
| Calculate statistics for the specified fields, antennas, time range, feeds, spectral windows, and channels (allowed T: CalStats::NONE gets data without calculating statistics, CalStatsFitter::FIT calculates fits, and CalStatsHist::HIST calculates histogram statistics). More...
|
|
|
casacore::String | calNameGet (const casacore::String &oTableName) |
|
void | calNameSet (const casacore::String &oCalNameIn) |
|
casacore::String | msNameGet (const casacore::String &oTableName) |
|
void | msNameSet (const casacore::String &oMSNameIn) |
|
casacore::String | visCalGet (const casacore::String &oTableName) |
|
void | visCalSet (const casacore::String &oVisCalIn) |
|
casacore::String | parTypeGet (const casacore::String &oTableName) |
|
void | parTypeSet (const casacore::String &oParTypeIn) |
|
casacore::String | polBasisGet (const casacore::String &oTableName) |
|
void | polBasisSet (const casacore::String &oPolBasisIn) |
|
casacore::Vector< casacore::uInt > | fieldGet (const casacore::String &oTableName) |
|
void | fieldSet (const casacore::Vector< casacore::uInt > &oFieldIn) |
|
casacore::Bool | fieldCheck (const casacore::Vector< casacore::uInt > &oFieldIn, casacore::Vector< casacore::uInt > &oFieldOut) const |
|
casacore::Vector< casacore::uInt > | antennaGet (const casacore::String &oTableName) |
|
void | antennaSet (const casacore::Vector< casacore::uInt > &oAntennaIn) |
|
casacore::Vector< casacore::uInt > | antenna1Get (const casacore::String &oTableName) |
|
void | antenna1Set (const casacore::Vector< casacore::uInt > &oAntenna1In) |
|
casacore::Bool | antenna1Check (const casacore::Vector< casacore::uInt > &oAntenna1In, casacore::Vector< casacore::uInt > &oAntenna1Out) const |
|
casacore::Vector< casacore::Int > | antenna2Get (const casacore::String &oTableName) |
|
void | antenna2Set (const casacore::Vector< casacore::Int > &oAntenna2In) |
|
casacore::Bool | antenna2Check (const casacore::Vector< casacore::Int > &oAntenna2In, casacore::Vector< casacore::Int > &oAntenna2Out) const |
|
casacore::Vector
< casacore::Double > | timeGet (const casacore::String &oTableName) |
|
void | timeSet (const casacore::Vector< casacore::Double > &oTimeIn) |
|
casacore::Bool | timeCheck (const casacore::Double &dStartTimeIn, const casacore::Double &dStopTimeIn, casacore::Double &dStartTimeOut, casacore::Double &dStopTimeOut, casacore::Vector< casacore::Double > &oTimeOut) const |
|
casacore::Vector
< casacore::String > | feedGet (const casacore::String &oTableName) |
|
void | feedSet (const casacore::Vector< casacore::String > &oFeedIn) |
|
casacore::Bool | feedCheck (const casacore::Vector< casacore::String > &oFeedIn, casacore::Vector< casacore::String > &oFeedOut) const |
|
SPW_INFO & | spwInfoGet (const casacore::String &oTableName) |
|
void | spwInfoSet (const SPW_INFO &oSPWInfoIn) |
|
casacore::Bool | statsCheckInput (const CalAnalysis::INPUT &oInputIn, CalAnalysis::INPUT &oInputOut) |
| Check and possibly fix the inputs to the stats<T>() member function. More...
|
|
casacore::Bool | getGroup (const NewCalTable &oNCT, const CalAnalysis::INPUT &oInput, casacore::Vector< casacore::uInt > &oFieldGroup, casacore::Vector< casacore::uInt > &oAntenna1Group, casacore::Vector< casacore::Int > &oAntenna2Group, casacore::Vector< casacore::Vector< casacore::Double > > &oTimeUniqueGroup, casacore::Vector< casacore::Vector< casacore::Double > > &oFreqGroup, casacore::Vector< casacore::Cube< casacore::DComplex > > &oCParamGroup, casacore::Vector< casacore::Cube< casacore::Double > > &oFParamGroup, casacore::Vector< casacore::Cube< casacore::Double > > &oParamErrGroup, casacore::Vector< casacore::Cube< casacore::Bool > > &oFlagGroup) const |
| Gets the data from the new format calibration table grouped according to unique combinations of (field,antenna1,antenna2) More...
|
|
casacore::Bool | rowSelect (const NewCalTable &oNCT, const CalAnalysis::INPUT &oInput, casacore::Vector< casacore::uInt > &oRowSelect) const |
| Select the rows based on the inputs. More...
|
|
casacore::Bool | rowGroup (const NewCalTable &oNCT, const casacore::Vector< casacore::uInt > &oRowSelect, casacore::Vector< casacore::Vector< casacore::uInt > > &oRowGroup, casacore::Vector< casacore::uInt > &oFieldGroup, casacore::Vector< casacore::uInt > &oAntenna1Group, casacore::Vector< casacore::Int > &oAntenna2Group, casacore::Vector< casacore::Vector< casacore::uInt > > &oSPWGroup, casacore::Vector< casacore::Vector< casacore::uInt > > &oSPWUniqueGroup, casacore::Vector< casacore::Vector< casacore::Double > > &oTimeGroup, casacore::Vector< casacore::Vector< casacore::Double > > &oTimeUniqueGroup) const |
| Return rows and other quantities for each group. More...
|
|
casacore::Bool | chanSPW (const casacore::Vector< casacore::uInt > &oSPW, const INPUT &oInput, casacore::Vector< casacore::uInt > &oSPWMap, casacore::Vector< casacore::uInt > &oChanStart) const |
| casacore::Map the spectral windows and determine the start channels (for concatenating frequencies from different spectral windows) More...
|
|
casacore::Bool | freqGroup (const INPUT &oInput, const casacore::Vector< casacore::Vector< casacore::uInt > > &oSPWUniqueGroup, casacore::Vector< casacore::Vector< casacore::Double > > &oFreqGroup) const |
| Get the frequencies for each goup. More...
|
|
casacore::Bool | cubeGroup (const NewCalTable &oNCT, const INPUT &oInput, const casacore::Vector< casacore::Vector< casacore::uInt > > &oRowGroup, const casacore::Vector< casacore::Vector< casacore::uInt > > &oSPWGroup, const casacore::Vector< casacore::Vector< casacore::uInt > > &oSPWUniqueGroup, const casacore::Vector< casacore::Vector< casacore::Double > > &oTimeGroup, const casacore::Vector< casacore::Vector< casacore::Double > > &oTimeUniqueGroup, const casacore::Vector< casacore::Vector< casacore::Double > > &oFreqGroup, casacore::Vector< casacore::Cube< casacore::DComplex > > &oCParamGroup, casacore::Vector< casacore::Cube< casacore::Double > > &oFParamGroup, casacore::Vector< casacore::Cube< casacore::Double > > &oParamErrGroup, casacore::Vector< casacore::Cube< casacore::Bool > > &oFlagGroup) const |
| Get the data cubes for each group. More...
|
|
Start of CalAnalysis class definition
Definition at line 312 of file CalAnalysis.h.
Calculate statistics for the specified fields, antennas, time range, feeds, spectral windows, and channels (allowed T: CalStats::NONE gets data without calculating statistics, CalStatsFitter::FIT calculates fits, and CalStatsHist::HIST calculates histogram statistics).
End of CalAnalysis class definition
Start of CalAnalysis template public member functions
Initialize the output vector containing statistics for each field ID, antenna 1, and antenna 2
Check and fix the inputs
Create an instance of the new format calibration table class Use createCT to enforce backward compatibility
Get the cubes for each group
Resize the output vector (each group corresponds to an element of casacore::Vector<OUTPUT<T> >())
Send each group to CalStats<T>() and perform the desired operation
Return the reference to the casacore::Vector<CalAnalysis::OUTPUT<T> > instance
Definition at line 640 of file CalAnalysis.h.
References casa::CalAnalysis::INPUT::bNorm, casa::CalAnalysis::INPUT::bUnwrap, casa::CalAnalysis::INPUT::dJumpMax, casa::CalAnalysis::INPUT::eAxisIterUserID, casa::CalAnalysis::INPUT::eRAP, casacore::AipsError::getMesg(), casacore::log(), casacore::Table::Memory, casacore::ArrayBase::nelements(), casa::CalAnalysis::INPUT::oFeed, casacore::Table::Old, casacore::LogIO::POST, casacore::Vector< T >::resize(), casa::CalStats::stats(), casacore::LogIO::WARN, and WHERE.