34 #ifndef CalBandpassRow_CLASS
35 #define CalBandpassRow_CLASS
146 class CalReductionRow;
152 class CalBandpassRow;
197 BasebandNameMod::BasebandName getBasebandName()
const;
627 std::vector<std::vector<std::vector<float > > >
getCurve()
const;
639 void setCurve (std::vector<std::vector<std::vector<float > > >
curve);
776 std::vector<std::vector<float > >
getRms()
const;
787 void setRms (std::vector<std::vector<float > >
rms);
1022 std::vector<std::vector<std::vector<float > > >
getSpectrum()
const;
1060 Tag getCalDataId()
const;
1191 bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband
sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection
atmPhaseCorrection, CalCurveTypeMod::CalCurveType
typeCurve, ReceiverBandMod::ReceiverBand
receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string >
antennaNames, std::string
refAntennaName, std::vector<Frequency >
freqLimits, std::vector<PolarizationTypeMod::PolarizationType >
polarizationTypes, std::vector<std::vector<std::vector<float > > >
curve, std::vector<double >
reducedChiSquared);
1223 bool compareRequiredValue(
ArrayTime startValidTime,
ArrayTime endValidTime,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string >
antennaNames, std::string
refAntennaName, std::vector<Frequency >
freqLimits, std::vector<PolarizationTypeMod::PolarizationType >
polarizationTypes, std::vector<std::vector<std::vector<float > > >
curve, std::vector<double >
reducedChiSquared);
1241 asdmIDL::CalBandpassRowIDL *
toIDL()
const;
1250 void toIDL(asdmIDL::CalBandpassRowIDL& x)
const;
1259 void setFromIDL (asdmIDL::CalBandpassRowIDL x) ;
1266 std::string
toXML()
const;
1281 std::map<std::string, CalBandpassAttributeFromBin>
fromBinMethods;
1327 void fromText(
const std::string& attributeName,
const std::string& t);
1382 BasebandNameMod::BasebandName basebandName;
1536 std::vector<std::vector<std::vector<float > > >
curve;
1586 std::vector<std::vector<float > >
rms;
1664 std::vector<std::vector<std::vector<float > > >
spectrum;
void setCalReductionId(Tag calReductionId)
Set calReductionId with the specified Tag.
void frequencyRangeFromText(const std::string &s)
void calReductionIdFromText(const std::string &s)
void antennaNamesFromText(const std::string &s)
void setNumFreq(int numFreq)
Set numFreq with the specified int.
void clearChanFreqStart()
Mark chanFreqStart, which is an optional field, as non-existent.
int numAntenna
===> Attribute numAntenna
void calReductionIdFromBin(EndianIStream &eis)
void setEndValidTime(ArrayTime endValidTime)
Set endValidTime with the specified ArrayTime.
void clearNumSpectralWindow()
Mark numSpectralWindow, which is an optional field, as non-existent.
std::vector< double > reducedChiSquared
===> Attribute reducedChiSquared
void basebandNameFromBin(EndianIStream &eis)
bool isNumBaselineExists() const
===> Attribute numBaseline, which is optional
void atmPhaseCorrectionFromBin(EndianIStream &eis)
void typeCurveFromBin(EndianIStream &eis)
void numPolyFromText(const std::string &s)
void antennaNamesFromBin(EndianIStream &eis)
void(CalBandpassRow::* CalBandpassAttributeFromText)(const std::string &s)
std::vector< int > numSpectralWindowChan
void reducedChiSquaredFromBin(EndianIStream &eis)
std::vector< Frequency > chanFreqStep
void curveFromText(const std::string &s)
void setNumBaseline(int numBaseline)
Set numBaseline with the specified int.
void setRms(std::vector< std::vector< float > > rms)
Set rms with the specified std::vector<std::vector<float > >.
void setNumPoly(int numPoly)
Set numPoly with the specified int.
ArrayTime getStartValidTime() const
===> Attribute startValidTime
bool isChanFreqStartExists() const
===> Attribute chanFreqStart, which is optional
void chanFreqStartFromBin(EndianIStream &eis)
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
std::string refAntennaName
===> Attribute refAntennaName
bool numFreqExists
===> Attribute numFreq, which is optional
bool rmsExists
===> Attribute rms, which is optional
CalCurveTypeMod::CalCurveType typeCurve
===> Attribute typeCurve
void setReceiverBand(ReceiverBandMod::ReceiverBand receiverBand)
Set receiverBand with the specified ReceiverBandMod::ReceiverBand.
void setBasebandName(BasebandNameMod::BasebandName basebandName)
Set basebandName with the specified BasebandNameMod::BasebandName.
CalDataRow * getCalDataUsingCalDataId()
calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId ...
void clearRms()
Mark rms, which is an optional field, as non-existent.
void setTypeCurve(CalCurveTypeMod::CalCurveType typeCurve)
Set typeCurve with the specified CalCurveTypeMod::CalCurveType.
std::vector< std::vector< std::vector< float > > > spectrum
void setAntennaNames(std::vector< std::string > antennaNames)
Set antennaNames with the specified std::vector<std::string >.
bool numSpectralWindowExists
===> Attribute numSpectralWindow, which is optional
void numBaselineFromBin(EndianIStream &eis)
void atmPhaseCorrectionFromText(const std::string &s)
void endValidTimeFromBin(EndianIStream &eis)
ReceiverBandMod::ReceiverBand getReceiverBand() const
===> Attribute receiverBand
int getNumPoly() const
===> Attribute numPoly
The CalBandpassTable class is an Alma table.
void sidebandFromText(const std::string &s)
void setSideband(NetSidebandMod::NetSideband sideband)
Set sideband with the specified NetSidebandMod::NetSideband.
The CalBandpassRow class is a row of a CalBandpassTable.
ArrayTime endValidTime
===> Attribute endValidTime
void setChanFreqStart(std::vector< Frequency > chanFreqStart)
Set chanFreqStart with the specified std::vector<Frequency >.
bool isSpectrumExists() const
===> Attribute spectrum, which is optional
void chanFreqStepFromBin(EndianIStream &eis)
std::vector< int > getNumSpectralWindowChan() const
Get numSpectralWindowChan, which is optional.
bool numSpectralWindowChanExists
===> Attribute numSpectralWindowChan, which is optional
bool isNumSpectralWindowChanExists() const
===> Attribute numSpectralWindowChan, which is optional
bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numAntenna, int numPoly, int numReceptor, std::vector< std::string > antennaNames, std::string refAntennaName, std::vector< Frequency > freqLimits, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< std::vector< std::vector< float > > > curve, std::vector< double > reducedChiSquared)
Compare each mandatory attribute except the autoincrementable one of this CalBandpassRow with the cor...
asdmIDL::CalBandpassRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void numSpectralWindowFromBin(EndianIStream &eis)
void polarizationTypesFromText(const std::string &s)
void setReducedChiSquared(std::vector< double > reducedChiSquared)
Set reducedChiSquared with the specified std::vector<double >.
void polarizationTypesFromBin(EndianIStream &eis)
std::string getRefAntennaName() const
===> Attribute refAntennaName
void setPolarizationTypes(std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes)
Set polarizationTypes with the specified std::vector<PolarizationTypeMod::PolarizationType >...
void numPolyFromBin(EndianIStream &eis)
void numAntennaFromBin(EndianIStream &eis)
void setNumReceptor(int numReceptor)
Set numReceptor with the specified int.
void numReceptorFromBin(EndianIStream &eis)
void freqLimitsFromText(const std::string &s)
void numSpectralWindowFromText(const std::string &s)
void numSpectralWindowChanFromBin(EndianIStream &eis)
bool hasBeenAdded
Whether this row has been added to the table or not.
bool numBaselineExists
===> Attribute numBaseline, which is optional
void setCalDataId(Tag calDataId)
Set calDataId with the specified Tag.
ReceiverBandMod::ReceiverBand receiverBand
===> Attribute receiverBand
std::vector< PolarizationTypeMod::PolarizationType > getPolarizationTypes() const
===> Attribute polarizationTypes
void calDataIdFromText(const std::string &s)
AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const
===> Attribute atmPhaseCorrection
void setChanFreqStep(std::vector< Frequency > chanFreqStep)
Set chanFreqStep with the specified std::vector<Frequency >.
NetSidebandMod::NetSideband sideband
===> Attribute sideband
std::vector< Frequency > frequencyRange
CalBandpassTable & getTable() const
Return the table to which this row belongs.
void refAntennaNameFromBin(EndianIStream &eis)
void numBaselineFromText(const std::string &s)
std::vector< std::vector< std::vector< float > > > getSpectrum() const
Get spectrum, which is optional.
void clearFrequencyRange()
Mark frequencyRange, which is an optional field, as non-existent.
The CalReductionRow class is a row of a CalReductionTable.
void numFreqFromText(const std::string &s)
void startValidTimeFromBin(EndianIStream &eis)
void refAntennaNameFromText(const std::string &s)
void setFreqLimits(std::vector< Frequency > freqLimits)
Set freqLimits with the specified std::vector<Frequency >.
AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection
===> Attribute atmPhaseCorrection
bool isFrequencyRangeExists() const
===> Attribute frequencyRange, which is optional
bool isNumFreqExists() const
===> Attribute numFreq, which is optional
bool isChanFreqStepExists() const
===> Attribute chanFreqStep, which is optional
bool isRmsExists() const
===> Attribute rms, which is optional
std::vector< Frequency > getFreqLimits() const
===> Attribute freqLimits
bool spectrumExists
===> Attribute spectrum, which is optional
void endValidTimeFromText(const std::string &s)
void basebandNameFromText(const std::string &s)
void startValidTimeFromText(const std::string &s)
Links *CalReductionRow * getCalReductionUsingCalReductionId()
calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == cal...
void setRefAntennaName(std::string refAntennaName)
Set refAntennaName with the specified std::string.
void rmsFromBin(EndianIStream &eis)
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
CalBandpassRow(CalBandpassTable &table)
Create a CalBandpassRow.
void numReceptorFromText(const std::string &s)
void setFrequencyRange(std::vector< Frequency > frequencyRange)
Set frequencyRange with the specified std::vector<Frequency >.
void freqLimitsFromBin(EndianIStream &eis)
bool chanFreqStepExists
===> Attribute chanFreqStep, which is optional
void setCurve(std::vector< std::vector< std::vector< float > > > curve)
Set curve with the specified std::vector<std::vector<std::vector<float > > >.
bool equalByRequiredValue(CalBandpassRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
int getNumAntenna() const
===> Attribute numAntenna
void spectrumFromText(const std::string &s)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void curveFromBin(EndianIStream &eis)
void calDataIdFromBin(EndianIStream &eis)
std::vector< Frequency > getFrequencyRange() const
Get frequencyRange, which is optional.
std::vector< std::vector< float > > rms
std::vector< Frequency > getChanFreqStart() const
Get chanFreqStart, which is optional.
void rmsFromText(const std::string &s)
ArrayTime startValidTime
===> Attribute startValidTime
void spectrumFromBin(EndianIStream &eis)
void setFromIDL(asdmIDL::CalBandpassRowIDL x)
Fill the values of this row from the IDL struct CalBandpassRowIDL.
void typeCurveFromText(const std::string &s)
bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, int numAntenna, int numPoly, int numReceptor, std::vector< std::string > antennaNames, std::string refAntennaName, std::vector< Frequency > freqLimits, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< std::vector< std::vector< float > > > curve, std::vector< double > reducedChiSquared)
Compare each mandatory value (i.e.
void setAtmPhaseCorrection(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection)
Set atmPhaseCorrection with the specified AtmPhaseCorrectionMod::AtmPhaseCorrection.
bool chanFreqStartExists
===> Attribute chanFreqStart, which is optional
void numAntennaFromText(const std::string &s)
void clearSpectrum()
Mark spectrum, which is an optional field, as non-existent.
void frequencyRangeFromBin(EndianIStream &eis)
bool isNumSpectralWindowExists() const
===> Attribute numSpectralWindow, which is optional
std::string toXML() const
Return this row in the form of an XML string.
std::vector< Frequency > getChanFreqStep() const
Get chanFreqStep, which is optional.
CalBandpassTable & table
The table to which this row belongs.
std::vector< std::string > antennaNames
===> Attribute antennaNames
std::vector< std::vector< std::vector< float > > > curve
===> Attribute curve
Tag getCalReductionId() const
===> Attribute calReductionId
void clearChanFreqStep()
Mark chanFreqStep, which is an optional field, as non-existent.
void setNumSpectralWindow(int numSpectralWindow)
Set numSpectralWindow with the specified int.
int numPoly
===> Attribute numPoly
*text deserialization material std::map< std::string, CalBandpassAttributeFromText > fromTextMethods
void chanFreqStartFromText(const std::string &s)
virtual ~CalBandpassRow()
friend class asdm::TableStreamReader<CalBandpassTable, CalBandpassRow>;
void setSpectrum(std::vector< std::vector< std::vector< float > > > spectrum)
Set spectrum with the specified std::vector<std::vector<std::vector<float > > >.
void receiverBandFromText(const std::string &s)
std::vector< std::string > getAntennaNames() const
===> Attribute antennaNames
The CalDataRow class is a row of a CalDataTable.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void sidebandFromBin(EndianIStream &eis)
void chanFreqStepFromText(const std::string &s)
Links *binary deserialization material from an EndianIStream std::map< std::string, CalBandpassAttributeFromBin > fromBinMethods
std::vector< Frequency > chanFreqStart
ArrayTime getEndValidTime() const
===> Attribute endValidTime
void setNumAntenna(int numAntenna)
Set numAntenna with the specified int.
void clearNumSpectralWindowChan()
Mark numSpectralWindowChan, which is an optional field, as non-existent.
int getNumReceptor() const
===> Attribute numReceptor
void(CalBandpassRow::* CalBandpassAttributeFromBin)(EndianIStream &eis)
void receiverBandFromBin(EndianIStream &eis)
int getNumFreq() const
Get numFreq, which is optional.
CalCurveTypeMod::CalCurveType getTypeCurve() const
===> Attribute typeCurve
std::vector< double > getReducedChiSquared() const
===> Attribute reducedChiSquared
Tag calReductionId
===> Attribute calReductionId
void numFreqFromBin(EndianIStream &eis)
void numSpectralWindowChanFromText(const std::string &s)
void clearNumBaseline()
Mark numBaseline, which is an optional field, as non-existent.
std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes
===> Attribute polarizationTypes
void clearNumFreq()
Mark numFreq, which is an optional field, as non-existent.
void setStartValidTime(ArrayTime startValidTime)
Set startValidTime with the specified ArrayTime.
bool frequencyRangeExists
===> Attribute frequencyRange, which is optional
NetSidebandMod::NetSideband getSideband() const
===> Attribute sideband
std::vector< std::vector< float > > getRms() const
Get rms, which is optional.
bool isAdded() const
Has this row been added to its table ?
int getNumBaseline() const
Get numBaseline, which is optional.
void reducedChiSquaredFromText(const std::string &s)
std::vector< std::vector< std::vector< float > > > getCurve() const
===> Attribute curve
void setNumSpectralWindowChan(std::vector< int > numSpectralWindowChan)
Set numSpectralWindowChan with the specified std::vector<int >.
int numReceptor
===> Attribute numReceptor
int getNumSpectralWindow() const
Get numSpectralWindow, which is optional.
std::vector< Frequency > freqLimits
===> Attribute freqLimits