FeedRow

class FeedRow(table, row=None)[source]

Bases: object

The FeedRow class is a row of a FeedTable.

Generated from model’s revision -1, branch

Methods Summary

addReceiverId(id)

Append a new id or list of ids to receiverId

antennaIdFromBin(row, eis)

Set the antennaId in row from the EndianInput (eis) instance.

beamOffsetFromBin(row, eis)

Set the beamOffset in row from the EndianInput (eis) instance.

clearFeedNum()

Mark feedNum, which is an optional field, as non-existent.

clearIllumOffset()

Mark illumOffset, which is an optional field, as non-existent.

clearNumChan()

Mark numChan, which is an optional field, as non-existent.

clearPosition()

Mark position, which is an optional field, as non-existent.

clearSkyCoupling()

Mark skyCoupling, which is an optional field, as non-existent.

clearSkyCouplingSpectrum()

Mark skyCouplingSpectrum, which is an optional field, as non-existent.

compareNoAutoInc(antennaId, …)

Compare each attribute except the autoincrementable one of this FeedRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(numReceptor, …)

equalByRequiredValue(otherRow)

Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.

feedIdFromBin(row, eis)

Set the feedId in row from the EndianInput (eis) instance.

feedNumFromBin(row, eis)

Set the optional feedNum in row from the EndianInput (eis) instance.

focusReferenceFromBin(row, eis)

Set the focusReference in row from the EndianInput (eis) instance.

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

getBeamOffset()

Get beamOffset.

getFeedId()

Get feedId.

getFeedNum()

Get feedNum, which is optional.

getFocusReference()

Get focusReference.

getIllumOffset()

Get illumOffset, which is optional.

getNumChan()

Get numChan, which is optional.

getNumReceptor()

Get numReceptor.

getOneReceiver(i)

Using the receiverId at location i in this row, return the corresponding row from ReceiverTable

getPolResponse()

Get polResponse.

getPolarizationTypes()

Get polarizationTypes.

getPosition()

Get position, which is optional.

getReceiverId()

Get receiverId.

getReceivers()

Get all of the rows at ReceiverTable corresponding to each of the values of receiverId from this row.

getReceptorAngle()

Get receptorAngle.

getSkyCoupling()

Get skyCoupling, which is optional.

getSkyCouplingSpectrum()

Get skyCouplingSpectrum, which is optional.

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.

illumOffsetFromBin(row, eis)

Set the optional illumOffset in row from the EndianInput (eis) instance.

initFromBinMethods()

isAdded()

isFeedNumExists()

The attribute feedNum is optional.

isIllumOffsetExists()

The attribute illumOffset is optional.

isNumChanExists()

The attribute numChan is optional.

isPositionExists()

The attribute position is optional.

isSkyCouplingExists()

The attribute skyCoupling is optional.

isSkyCouplingSpectrumExists()

The attribute skyCouplingSpectrum is optional.

numChanFromBin(row, eis)

Set the optional numChan in row from the EndianInput (eis) instance.

numReceptorFromBin(row, eis)

Set the numReceptor in row from the EndianInput (eis) instance.

polResponseFromBin(row, eis)

Set the polResponse in row from the EndianInput (eis) instance.

polarizationTypesFromBin(row, eis)

Set the polarizationTypes in row from the EndianInput (eis) instance.

positionFromBin(row, eis)

Set the optional position in row from the EndianInput (eis) instance.

receiverIdFromBin(row, eis)

Set the receiverId in row from the EndianInput (eis) instance.

receptorAngleFromBin(row, eis)

Set the receptorAngle in row from the EndianInput (eis) instance.

setAntennaId(antennaId)

Set antennaId with the specified Tag value.

setBeamOffset(beamOffset)

Set beamOffset with the specified float [] [] value.

setFeedId(feedId)

Set feedId with the specified int value.

setFeedNum(feedNum)

Set feedNum with the specified int value.

setFocusReference(focusReference)

Set focusReference with the specified Length [] [] value.

setFromXML(xmlrow)

Fill the values of this row from an XML string that was produced by the toXML() method.

setIllumOffset(illumOffset)

Set illumOffset with the specified Length [] value.

setNumChan(numChan)

Set numChan with the specified int value.

setNumReceptor(numReceptor)

Set numReceptor with the specified int value.

setOneReceiverId(index, receiverId)

Set receiverId[index] with the specified int value.

setPolResponse(polResponse)

Set polResponse with the specified Complex [] [] value.

setPolarizationTypes(polarizationTypes)

Set polarizationTypes with the specified PolarizationType [] value.

setPosition(position)

Set position with the specified Length [] value.

setReceiverId(receiverId)

Set receiverId with the specified int [] value.

setReceptorAngle(receptorAngle)

Set receptorAngle with the specified Angle [] value.

setSkyCoupling(skyCoupling)

Set skyCoupling with the specified float value.

setSkyCouplingSpectrum(skyCouplingSpectrum)

Set skyCouplingSpectrum with the specified float [] value.

setSpectralWindowId(spectralWindowId)

Set spectralWindowId with the specified Tag value.

setTimeInterval(timeInterval)

Set timeInterval with the specified ArrayTimeInterval value.

skyCouplingFromBin(row, eis)

Set the optional skyCoupling in row from the EndianInput (eis) instance.

skyCouplingSpectrumFromBin(row, eis)

Set the optional skyCouplingSpectrum in row from the EndianInput (eis) instance.

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.

Methods Documentation

addReceiverId(id)[source]

Append a new id or list of ids to receiverId

static antennaIdFromBin(row, eis)[source]

Set the antennaId in row from the EndianInput (eis) instance.

static beamOffsetFromBin(row, eis)[source]

Set the beamOffset in row from the EndianInput (eis) instance.

clearFeedNum()[source]

Mark feedNum, which is an optional field, as non-existent.

clearIllumOffset()[source]

Mark illumOffset, which is an optional field, as non-existent.

clearNumChan()[source]

Mark numChan, which is an optional field, as non-existent.

clearPosition()[source]

Mark position, which is an optional field, as non-existent.

clearSkyCoupling()[source]

Mark skyCoupling, which is an optional field, as non-existent.

clearSkyCouplingSpectrum()[source]

Mark skyCouplingSpectrum, which is an optional field, as non-existent.

compareNoAutoInc(antennaId, spectralWindowId, timeInterval, numReceptor, beamOffset, focusReference, polarizationTypes, polResponse, receptorAngle, receiverId)[source]

Compare each attribute except the autoincrementable one of this FeedRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(numReceptor, beamOffset, focusReference, polarizationTypes, polResponse, receptorAngle, receiverId)[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 feedIdFromBin(row, eis)[source]

Set the feedId in row from the EndianInput (eis) instance.

static feedNumFromBin(row, eis)[source]

Set the optional feedNum in row from the EndianInput (eis) instance.

static focusReferenceFromBin(row, eis)[source]

Set the focusReference in row from the EndianInput (eis) instance.

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.

getAntennaId()[source]

Get antennaId. return antennaId as Tag

getAntennaUsingAntennaId()[source]

Returns the row in the Antenna table having Antenna.antennaId == antennaId

getBeamOffset()[source]

Get beamOffset. return beamOffset as float [] []

getFeedId()[source]

Get feedId. return feedId as int

getFeedNum()[source]

Get feedNum, which is optional. return feedNum as int raises ValueError If feedNum does not exist.

getFocusReference()[source]

Get focusReference. return focusReference as Length [] []

getIllumOffset()[source]

Get illumOffset, which is optional. return illumOffset as Length [] raises ValueError If illumOffset does not exist.

getNumChan()[source]

Get numChan, which is optional. return numChan as int raises ValueError If numChan does not exist.

getNumReceptor()[source]

Get numReceptor. return numReceptor as int

getOneReceiver(i)[source]

Using the receiverId at location i in this row, return the corresponding row from ReceiverTable

getPolResponse()[source]

Get polResponse. return polResponse as Complex [] []

getPolarizationTypes()[source]

Get polarizationTypes. return polarizationTypes as PolarizationType []

getPosition()[source]

Get position, which is optional. return position as Length [] raises ValueError If position does not exist.

getReceiverId()[source]

Get receiverId. return receiverId as int []

getReceivers()[source]

Get all of the rows at ReceiverTable corresponding to each of the values of receiverId from this row. returns a list of ReceiverRow

getReceptorAngle()[source]

Get receptorAngle. return receptorAngle as Angle []

getSkyCoupling()[source]

Get skyCoupling, which is optional. return skyCoupling as float raises ValueError If skyCoupling does not exist.

getSkyCouplingSpectrum()[source]

Get skyCouplingSpectrum, which is optional. return skyCouplingSpectrum as float [] raises ValueError If skyCouplingSpectrum does not exist.

getSpectralWindowId()[source]

Get spectralWindowId. return spectralWindowId as Tag

getSpectralWindowUsingSpectralWindowId()[source]

Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId

getTable()[source]

Return the table to which this row belongs.

getTimeInterval()[source]

Get timeInterval. return timeInterval as ArrayTimeInterval

static illumOffsetFromBin(row, eis)[source]

Set the optional illumOffset in row from the EndianInput (eis) instance.

static initFromBinMethods()[source]
isAdded()[source]
isFeedNumExists()[source]

The attribute feedNum is optional. Return True if this attribute exists. return True if and only if the feedNum attribute exists.

isIllumOffsetExists()[source]

The attribute illumOffset is optional. Return True if this attribute exists. return True if and only if the illumOffset attribute exists.

isNumChanExists()[source]

The attribute numChan is optional. Return True if this attribute exists. return True if and only if the numChan attribute exists.

isPositionExists()[source]

The attribute position is optional. Return True if this attribute exists. return True if and only if the position attribute exists.

isSkyCouplingExists()[source]

The attribute skyCoupling is optional. Return True if this attribute exists. return True if and only if the skyCoupling attribute exists.

isSkyCouplingSpectrumExists()[source]

The attribute skyCouplingSpectrum is optional. Return True if this attribute exists. return True if and only if the skyCouplingSpectrum attribute exists.

static numChanFromBin(row, eis)[source]

Set the optional numChan in row from the EndianInput (eis) instance.

static numReceptorFromBin(row, eis)[source]

Set the numReceptor in row from the EndianInput (eis) instance.

static polResponseFromBin(row, eis)[source]

Set the polResponse in row from the EndianInput (eis) instance.

static polarizationTypesFromBin(row, eis)[source]

Set the polarizationTypes in row from the EndianInput (eis) instance.

static positionFromBin(row, eis)[source]

Set the optional position in row from the EndianInput (eis) instance.

static receiverIdFromBin(row, eis)[source]

Set the receiverId in row from the EndianInput (eis) instance.

static receptorAngleFromBin(row, eis)[source]

Set the receptorAngle 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.

setBeamOffset(beamOffset)[source]

Set beamOffset with the specified float [] [] value. beamOffset The float [] [] value to which beamOffset is to be set.

setFeedId(feedId)[source]

Set feedId with the specified int value. feedId The int value to which feedId is to be set.

Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.

setFeedNum(feedNum)[source]

Set feedNum with the specified int value. feedNum The int value to which feedNum is to be set.

setFocusReference(focusReference)[source]

Set focusReference with the specified Length [] [] value. focusReference The Length [] [] value to which focusReference is to be set. The value of focusReference can be anything allowed by the Length [] [] constructor.

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.

setIllumOffset(illumOffset)[source]

Set illumOffset with the specified Length [] value. illumOffset The Length [] value to which illumOffset is to be set. The value of illumOffset can be anything allowed by the Length [] constructor.

setNumChan(numChan)[source]

Set numChan with the specified int value. numChan The int value to which numChan is to be set.

setNumReceptor(numReceptor)[source]

Set numReceptor with the specified int value. numReceptor The int value to which numReceptor is to be set.

setOneReceiverId(index, receiverId)[source]

Set receiverId[index] with the specified int value. index The index in receiverId where to set the int value. receiverId The int value to which receiverId[index] is to be set.

setPolResponse(polResponse)[source]

Set polResponse with the specified Complex [] [] value. polResponse The Complex [] [] value to which polResponse is to be set. The value of polResponse can be anything allowed by the Complex [] [] constructor.

setPolarizationTypes(polarizationTypes)[source]

Set polarizationTypes with the specified PolarizationType [] value. polarizationTypes The PolarizationType [] value to which polarizationTypes is to be set.

setPosition(position)[source]

Set position with the specified Length [] value. position The Length [] value to which position is to be set. The value of position can be anything allowed by the Length [] constructor.

setReceiverId(receiverId)[source]

Set receiverId with the specified int [] value. receiverId The int [] value to which receiverId is to be set.

setReceptorAngle(receptorAngle)[source]

Set receptorAngle with the specified Angle [] value. receptorAngle The Angle [] value to which receptorAngle is to be set. The value of receptorAngle can be anything allowed by the Angle [] constructor.

setSkyCoupling(skyCoupling)[source]

Set skyCoupling with the specified float value. skyCoupling The float value to which skyCoupling is to be set.

setSkyCouplingSpectrum(skyCouplingSpectrum)[source]

Set skyCouplingSpectrum with the specified float [] value. skyCouplingSpectrum The float [] value to which skyCouplingSpectrum is to be set.

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.

static skyCouplingFromBin(row, eis)[source]

Set the optional skyCoupling in row from the EndianInput (eis) instance.

static skyCouplingSpectrumFromBin(row, eis)[source]

Set the optional skyCouplingSpectrum in row from the EndianInput (eis) instance.

static spectralWindowIdFromBin(row, eis)[source]

Set the spectralWindowId in row from the EndianInput (eis) instance.

static timeIntervalFromBin(row, eis)[source]

Set the timeInterval in row from the EndianInput (eis) instance.

toBin(eos)[source]

Write this row out to the EndianOutput instance, eos.

toXML()[source]

Return this row in the form of an XML string.