WVMCalRow¶
-
class
WVMCalRow(table, row=None)[source]¶ Bases:
objectThe WVMCalRow class is a row of a WVMCalTable.
Generated from model’s revision -1, branch
Methods Summary
addInputAntennaId(id)Append a Tag to inputAntennaId id the Tag to be appended to inputAntennaId
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
compareNoAutoInc(antennaId, …)Compare each attribute except the autoincrementable one of this WVMCalRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(wvrMethod, …)equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
fromBin(eis, table, attributesSeq)Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.
getAntennaId()Get antennaId.
getAntennaUsingAntennaId()Returns the row in the Antenna table having Antenna.antennaId == antennaId
getAntennaUsingInputAntennaId(i)Returns the AntennaRow linked to this row via the Tag stored in inputAntennaId at position i.
getAntennasUsingInputAntennaId()Returns the array of AntennaRow linked to this row via the Tags stored in inputAntennaId
getInputAntennaId()Get inputAntennaId.
getNumChan()Get numChan.
getNumInputAntenna()Get numInputAntenna.
getNumPoly()Get numPoly.
getOneInputAntennaId(i)Returns the Tag stored in inputAntennaId at position i.
getPathCoeff()Get pathCoeff.
getPolyFreqLimits()Get polyFreqLimits.
getRefTemp()Get refTemp.
getSpectralWindowId()Get spectralWindowId.
getSpectralWindowUsingSpectralWindowId()Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
getTable()Return the table to which this row belongs.
getTimeInterval()Get timeInterval.
getWvrMethod()Get wvrMethod.
initFromBinMethods()inputAntennaIdFromBin(row, eis)Set the inputAntennaId in row from the EndianInput (eis) instance.
isAdded()numChanFromBin(row, eis)Set the numChan in row from the EndianInput (eis) instance.
numInputAntennaFromBin(row, eis)Set the numInputAntenna in row from the EndianInput (eis) instance.
numPolyFromBin(row, eis)Set the numPoly in row from the EndianInput (eis) instance.
pathCoeffFromBin(row, eis)Set the pathCoeff in row from the EndianInput (eis) instance.
polyFreqLimitsFromBin(row, eis)Set the polyFreqLimits in row from the EndianInput (eis) instance.
refTempFromBin(row, eis)Set the refTemp in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setInputAntennaId(inputAntennaId)Set inputAntennaId with the specified Tag [] value.
setNumChan(numChan)Set numChan with the specified int value.
setNumInputAntenna(numInputAntenna)Set numInputAntenna with the specified int value.
setNumPoly(numPoly)Set numPoly with the specified int value.
setOneInputAntennaId(index, inputAntennaId)Set inputAntennaId[index] with the specified Tag value.
setPathCoeff(pathCoeff)Set pathCoeff with the specified float [] [] [] value.
setPolyFreqLimits(polyFreqLimits)Set polyFreqLimits with the specified Frequency [] value.
setRefTemp(refTemp)Set refTemp with the specified Temperature [] [] value.
setSpectralWindowId(spectralWindowId)Set spectralWindowId with the specified Tag value.
setTimeInterval(timeInterval)Set timeInterval with the specified ArrayTimeInterval value.
setWvrMethod(wvrMethod)Set wvrMethod with the specified WVRMethod value.
spectralWindowIdFromBin(row, eis)Set the spectralWindowId in row from the EndianInput (eis) instance.
timeIntervalFromBin(row, eis)Set the timeInterval in row from the EndianInput (eis) instance.
toBin(eos)Write this row out to the EndianOutput instance, eos.
toXML()Return this row in the form of an XML string.
wvrMethodFromBin(row, eis)Set the wvrMethod in row from the EndianInput (eis) instance.
Methods Documentation
-
addInputAntennaId(id)[source]¶ Append a Tag to inputAntennaId id the Tag to be appended to inputAntennaId
-
static
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
compareNoAutoInc(antennaId, spectralWindowId, timeInterval, wvrMethod, polyFreqLimits, numInputAntenna, numChan, numPoly, pathCoeff, refTemp, inputAntennaId)[source]¶ Compare each attribute except the autoincrementable one of this WVMCalRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(wvrMethod, polyFreqLimits, numInputAntenna, numChan, numPoly, pathCoeff, refTemp, inputAntennaId)[source]¶
-
equalByRequiredValue(otherRow)[source]¶ Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
-
static
fromBin(eis, table, attributesSeq)[source]¶ Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.
The new row object is returned.
-
getAntennaUsingAntennaId()[source]¶ Returns the row in the Antenna table having Antenna.antennaId == antennaId
-
getAntennaUsingInputAntennaId(i)[source]¶ Returns the AntennaRow linked to this row via the Tag stored in inputAntennaId at position i.
-
getAntennasUsingInputAntennaId()[source]¶ Returns the array of AntennaRow linked to this row via the Tags stored in inputAntennaId
-
getSpectralWindowUsingSpectralWindowId()[source]¶ Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
-
static
inputAntennaIdFromBin(row, eis)[source]¶ Set the inputAntennaId in row from the EndianInput (eis) instance.
-
static
numChanFromBin(row, eis)[source]¶ Set the numChan in row from the EndianInput (eis) instance.
-
static
numInputAntennaFromBin(row, eis)[source]¶ Set the numInputAntenna in row from the EndianInput (eis) instance.
-
static
numPolyFromBin(row, eis)[source]¶ Set the numPoly in row from the EndianInput (eis) instance.
-
static
pathCoeffFromBin(row, eis)[source]¶ Set the pathCoeff in row from the EndianInput (eis) instance.
-
static
polyFreqLimitsFromBin(row, eis)[source]¶ Set the polyFreqLimits in row from the EndianInput (eis) instance.
-
static
refTempFromBin(row, eis)[source]¶ Set the refTemp in row from the EndianInput (eis) instance.
-
setAntennaId(antennaId)[source]¶ Set antennaId with the specified Tag value. antennaId The Tag value to which antennaId is to be set. The value of antennaId can be anything allowed by the Tag constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setFromXML(xmlrow)[source]¶ Fill the values of this row from an XML string that was produced by the toXML() method. If xmlrow is a minidom.Element with a nodeName of row then it will be used as is. Anything else that is not a string is an error.
-
setInputAntennaId(inputAntennaId)[source]¶ Set inputAntennaId with the specified Tag [] value. inputAntennaId The Tag [] value to which inputAntennaId is to be set. The value of inputAntennaId can be anything allowed by the Tag [] constructor.
-
setNumChan(numChan)[source]¶ Set numChan with the specified int value. numChan The int value to which numChan is to be set.
-
setNumInputAntenna(numInputAntenna)[source]¶ Set numInputAntenna with the specified int value. numInputAntenna The int value to which numInputAntenna is to be set.
-
setNumPoly(numPoly)[source]¶ Set numPoly with the specified int value. numPoly The int value to which numPoly is to be set.
-
setOneInputAntennaId(index, inputAntennaId)[source]¶ Set inputAntennaId[index] with the specified Tag value. index The index in inputAntennaId where to set the Tag value. inputAntennaId The Tag value to which inputAntennaId[index] is to be set.
-
setPathCoeff(pathCoeff)[source]¶ Set pathCoeff with the specified float [] [] [] value. pathCoeff The float [] [] [] value to which pathCoeff is to be set.
-
setPolyFreqLimits(polyFreqLimits)[source]¶ Set polyFreqLimits with the specified Frequency [] value. polyFreqLimits The Frequency [] value to which polyFreqLimits is to be set. The value of polyFreqLimits can be anything allowed by the Frequency [] constructor.
-
setRefTemp(refTemp)[source]¶ Set refTemp with the specified Temperature [] [] value. refTemp The Temperature [] [] value to which refTemp is to be set. The value of refTemp can be anything allowed by the Temperature [] [] constructor.
-
setSpectralWindowId(spectralWindowId)[source]¶ Set spectralWindowId with the specified Tag value. spectralWindowId The Tag value to which spectralWindowId is to be set. The value of spectralWindowId can be anything allowed by the Tag constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setTimeInterval(timeInterval)[source]¶ Set timeInterval with the specified ArrayTimeInterval value. timeInterval The ArrayTimeInterval value to which timeInterval is to be set. The value of timeInterval can be anything allowed by the ArrayTimeInterval constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setWvrMethod(wvrMethod)[source]¶ Set wvrMethod with the specified WVRMethod value. wvrMethod The WVRMethod value to which wvrMethod is to be set.
-
static
spectralWindowIdFromBin(row, eis)[source]¶ Set the spectralWindowId in row from the EndianInput (eis) instance.
-