AlmaRadiometerRow¶
-
class
AlmaRadiometerRow(table, row=None)[source]¶ Bases:
objectThe AlmaRadiometerRow class is a row of a AlmaRadiometerTable.
Generated from model’s revision -1, branch
Methods Summary
addSpectralWindowId(id)Append a Tag to spectralWindowId id the Tag to be appended to spectralWindowId
almaRadiometerIdFromBin(row, eis)Set the almaRadiometerId in row from the EndianInput (eis) instance.
clearNumAntenna()Mark numAntenna, which is an optional field, as non-existent.
clearSpectralWindowId()Mark spectralWindowId, which is an optional field, as non-existent.
compareRequiredValue()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.
getAlmaRadiometerId()Get almaRadiometerId.
getNumAntenna()Get numAntenna, which is optional.
getOneSpectralWindowId(i)Returns the Tag stored in spectralWindowId at position i.
getSpectralWindowId()Get spectralWindowId, which is optional.
getSpectralWindowUsingSpectralWindowId(i)Returns the SpectralWindowRow linked to this row via the Tag stored in spectralWindowId at position i.
getSpectralWindowsUsingSpectralWindowId()Returns the array of SpectralWindowRow linked to this row via the Tags stored in spectralWindowId
getTable()Return the table to which this row belongs.
initFromBinMethods()isAdded()isNumAntennaExists()The attribute numAntenna is optional.
isSpectralWindowIdExists()The attribute spectralWindowId is optional.
numAntennaFromBin(row, eis)Set the optional numAntenna in row from the EndianInput (eis) instance.
setAlmaRadiometerId(almaRadiometerId)Set almaRadiometerId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setNumAntenna(numAntenna)Set numAntenna with the specified int value.
setOneSpectralWindowId(index, spectralWindowId)Set spectralWindowId[index] with the specified Tag value.
setSpectralWindowId(spectralWindowId)Set spectralWindowId with the specified Tag [] value.
spectralWindowIdFromBin(row, eis)Set the optional spectralWindowId 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.
Methods Documentation
-
addSpectralWindowId(id)[source]¶ Append a Tag to spectralWindowId id the Tag to be appended to spectralWindowId
-
static
almaRadiometerIdFromBin(row, eis)[source]¶ Set the almaRadiometerId in row from the EndianInput (eis) instance.
-
clearSpectralWindowId()[source]¶ Mark spectralWindowId, which is an optional field, as non-existent.
-
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.
-
getNumAntenna()[source]¶ Get numAntenna, which is optional. return numAntenna as int raises ValueError If numAntenna does not exist.
-
getSpectralWindowId()[source]¶ Get spectralWindowId, which is optional. return spectralWindowId as Tag [] raises ValueError If spectralWindowId does not exist.
-
getSpectralWindowUsingSpectralWindowId(i)[source]¶ Returns the SpectralWindowRow linked to this row via the Tag stored in spectralWindowId at position i.
-
getSpectralWindowsUsingSpectralWindowId()[source]¶ Returns the array of SpectralWindowRow linked to this row via the Tags stored in spectralWindowId
-
isNumAntennaExists()[source]¶ The attribute numAntenna is optional. Return True if this attribute exists. return True if and only if the numAntenna attribute exists.
-
isSpectralWindowIdExists()[source]¶ The attribute spectralWindowId is optional. Return True if this attribute exists. return True if and only if the spectralWindowId attribute exists.
-
static
numAntennaFromBin(row, eis)[source]¶ Set the optional numAntenna in row from the EndianInput (eis) instance.
-
setAlmaRadiometerId(almaRadiometerId)[source]¶ Set almaRadiometerId with the specified Tag value. almaRadiometerId The Tag value to which almaRadiometerId is to be set. The value of almaRadiometerId 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.
-
setNumAntenna(numAntenna)[source]¶ Set numAntenna with the specified int value. numAntenna The int value to which numAntenna is to be set.
-
setOneSpectralWindowId(index, spectralWindowId)[source]¶ Set spectralWindowId[index] with the specified Tag value. index The index in spectralWindowId where to set the Tag value. spectralWindowId The Tag value to which spectralWindowId[index] is to be set. Raises an exception if that value does not already exist in this row
-
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.
-