const CalAnalysis::OUTPUT<T>& oOutput, const casacore::uInt& row, const casacore::uInt& col,
Bool calanalysis::writeInput( const CalAnalysis::OUTPUT<T>& oOutput,
const casacore::uInt& row, const casacore::uInt& col, ::casac::record& oRecIter ) {
unsigned int uiField = oOutput.uiField;
std::string oFieldString( casacore::String::toString(uiField).c_str() );
oRecIter.insert( std::string("field"), oFieldString );
unsigned int uiAntenna1 = oOutput.uiAntenna1;
std::string oAntenna1String( casacore::String::toString(uiAntenna1).c_str() );
oRecIter.insert( std::string("antenna1"), oAntenna1String );
int iAntenna2 = oOutput.iAntenna2;
std::string oAntenna2String( casacore::String::toString(iAntenna2).c_str() );
oRecIter.insert( std::string("antenna2"), oAntenna2String );
std::string oFeedKey( "feed" );
std::string oFeedValue( oOutput.oOut(row,col).oAxes.sFeed.c_str() );
oRecIter.insert( oFeedKey, oFeedValue );
std::string oAxisIterKey;
CalStats::AXIS eAxis = oOutput.oOut(row,col).oAxes.eAxisIterUserID;
if ( eAxis == CalStats::FREQUENCY ) {
oAxisIterKey = std::string( "frequency" );
oAxisIterKey = std::string( "time" );
double dAxisIterValue = oOutput.oOut(row,col).oAxes.dAxisIterUser;
oRecIter.insert( oAxisIterKey, dAxisIterValue );
if ( oOutput.eRAP == CalAnalysis::REAL ) {
oRAPString = std::string( "REAL" );
} else if ( oOutput.eRAP == CalAnalysis::AMPLITUDE ) {
oRAPString = std::string( "AMPLITUDE" );
oRAPString = std::string( "PHASE" );
oRecIter.insert( std::string("rap"), oRAPString );
if ( oOutput.eRAP == CalAnalysis::AMPLITUDE ) {
oRecIter.insert( std::string("norm"), (bool) oOutput.bNorm );
if ( oOutput.eRAP == CalAnalysis::PHASE ) {
oRecIter.insert( std::string("unwrap"), (bool) oOutput.bUnwrap );
oRecIter.insert( std::string("jumpMax"), (double) oOutput.dJumpMax );
Bool calanalysis::writeData( const CalAnalysis::OUTPUT<T>& oOutput,