CalPositionRow

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

Bases: object

The CalPositionRow class is a row of a CalPositionTable.

Generated from model’s revision -1, branch

Methods Summary

antennaNameFromBin(row, eis)

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

antennaPositionFromBin(row, eis)

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

atmPhaseCorrectionFromBin(row, eis)

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

axesOffsetErrFromBin(row, eis)

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

axesOffsetFixedFromBin(row, eis)

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

axesOffsetFromBin(row, eis)

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

calDataIdFromBin(row, eis)

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

calReductionIdFromBin(row, eis)

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

clearDelayRms()

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

clearPhaseRms()

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

compareNoAutoInc(antennaName, …)

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

compareRequiredValue(startValidTime, …)

delayRmsFromBin(row, eis)

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

endValidTimeFromBin(row, eis)

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

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.

getAntennaName()

Get antennaName.

getAntennaPosition()

Get antennaPosition.

getAtmPhaseCorrection()

Get atmPhaseCorrection.

getAxesOffset()

Get axesOffset.

getAxesOffsetErr()

Get axesOffsetErr.

getAxesOffsetFixed()

Get axesOffsetFixed.

getCalDataId()

Get calDataId.

getCalDataUsingCalDataId()

Returns the row in the CalData table having CalData.calDataId == calDataId

getCalReductionId()

Get calReductionId.

getCalReductionUsingCalReductionId()

Returns the row in the CalReduction table having CalReduction.calReductionId == calReductionId

getDelayRms()

Get delayRms, which is optional.

getEndValidTime()

Get endValidTime.

getNumAntenna()

Get numAntenna.

getPhaseRms()

Get phaseRms, which is optional.

getPositionErr()

Get positionErr.

getPositionMethod()

Get positionMethod.

getPositionOffset()

Get positionOffset.

getReceiverBand()

Get receiverBand.

getReducedChiSquared()

Get reducedChiSquared.

getRefAntennaNames()

Get refAntennaNames.

getStartValidTime()

Get startValidTime.

getStationName()

Get stationName.

getStationPosition()

Get stationPosition.

getTable()

Return the table to which this row belongs.

initFromBinMethods()

isAdded()

isDelayRmsExists()

The attribute delayRms is optional.

isPhaseRmsExists()

The attribute phaseRms is optional.

numAntennaFromBin(row, eis)

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

phaseRmsFromBin(row, eis)

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

positionErrFromBin(row, eis)

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

positionMethodFromBin(row, eis)

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

positionOffsetFromBin(row, eis)

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

receiverBandFromBin(row, eis)

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

reducedChiSquaredFromBin(row, eis)

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

refAntennaNamesFromBin(row, eis)

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

setAntennaName(antennaName)

Set antennaName with the specified str value.

setAntennaPosition(antennaPosition)

Set antennaPosition with the specified Length [] value.

setAtmPhaseCorrection(atmPhaseCorrection)

Set atmPhaseCorrection with the specified AtmPhaseCorrection value.

setAxesOffset(axesOffset)

Set axesOffset with the specified Length value.

setAxesOffsetErr(axesOffsetErr)

Set axesOffsetErr with the specified Length value.

setAxesOffsetFixed(axesOffsetFixed)

Set axesOffsetFixed with the specified bool value.

setCalDataId(calDataId)

Set calDataId with the specified Tag value.

setCalReductionId(calReductionId)

Set calReductionId with the specified Tag value.

setDelayRms(delayRms)

Set delayRms with the specified float value.

setEndValidTime(endValidTime)

Set endValidTime with the specified ArrayTime 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.

setPhaseRms(phaseRms)

Set phaseRms with the specified Angle value.

setPositionErr(positionErr)

Set positionErr with the specified Length [] value.

setPositionMethod(positionMethod)

Set positionMethod with the specified PositionMethod value.

setPositionOffset(positionOffset)

Set positionOffset with the specified Length [] value.

setReceiverBand(receiverBand)

Set receiverBand with the specified ReceiverBand value.

setReducedChiSquared(reducedChiSquared)

Set reducedChiSquared with the specified float value.

setRefAntennaNames(refAntennaNames)

Set refAntennaNames with the specified str [] value.

setStartValidTime(startValidTime)

Set startValidTime with the specified ArrayTime value.

setStationName(stationName)

Set stationName with the specified str value.

setStationPosition(stationPosition)

Set stationPosition with the specified Length [] value.

startValidTimeFromBin(row, eis)

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

stationNameFromBin(row, eis)

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

stationPositionFromBin(row, eis)

Set the stationPosition 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

static antennaNameFromBin(row, eis)[source]

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

static antennaPositionFromBin(row, eis)[source]

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

static atmPhaseCorrectionFromBin(row, eis)[source]

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

static axesOffsetErrFromBin(row, eis)[source]

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

static axesOffsetFixedFromBin(row, eis)[source]

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

static axesOffsetFromBin(row, eis)[source]

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

static calDataIdFromBin(row, eis)[source]

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

static calReductionIdFromBin(row, eis)[source]

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

clearDelayRms()[source]

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

clearPhaseRms()[source]

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

compareNoAutoInc(antennaName, atmPhaseCorrection, calDataId, calReductionId, startValidTime, endValidTime, antennaPosition, stationName, stationPosition, positionMethod, receiverBand, numAntenna, refAntennaNames, axesOffset, axesOffsetErr, axesOffsetFixed, positionOffset, positionErr, reducedChiSquared)[source]

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

compareRequiredValue(startValidTime, endValidTime, antennaPosition, stationName, stationPosition, positionMethod, receiverBand, numAntenna, refAntennaNames, axesOffset, axesOffsetErr, axesOffsetFixed, positionOffset, positionErr, reducedChiSquared)[source]
static delayRmsFromBin(row, eis)[source]

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

static endValidTimeFromBin(row, eis)[source]

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

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.

getAntennaName()[source]

Get antennaName. return antennaName as str

getAntennaPosition()[source]

Get antennaPosition. return antennaPosition as Length []

getAtmPhaseCorrection()[source]

Get atmPhaseCorrection. return atmPhaseCorrection as AtmPhaseCorrection

getAxesOffset()[source]

Get axesOffset. return axesOffset as Length

getAxesOffsetErr()[source]

Get axesOffsetErr. return axesOffsetErr as Length

getAxesOffsetFixed()[source]

Get axesOffsetFixed. return axesOffsetFixed as bool

getCalDataId()[source]

Get calDataId. return calDataId as Tag

getCalDataUsingCalDataId()[source]

Returns the row in the CalData table having CalData.calDataId == calDataId

getCalReductionId()[source]

Get calReductionId. return calReductionId as Tag

getCalReductionUsingCalReductionId()[source]

Returns the row in the CalReduction table having CalReduction.calReductionId == calReductionId

getDelayRms()[source]

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

getEndValidTime()[source]

Get endValidTime. return endValidTime as ArrayTime

getNumAntenna()[source]

Get numAntenna. return numAntenna as int

getPhaseRms()[source]

Get phaseRms, which is optional. return phaseRms as Angle raises ValueError If phaseRms does not exist.

getPositionErr()[source]

Get positionErr. return positionErr as Length []

getPositionMethod()[source]

Get positionMethod. return positionMethod as PositionMethod

getPositionOffset()[source]

Get positionOffset. return positionOffset as Length []

getReceiverBand()[source]

Get receiverBand. return receiverBand as ReceiverBand

getReducedChiSquared()[source]

Get reducedChiSquared. return reducedChiSquared as float

getRefAntennaNames()[source]

Get refAntennaNames. return refAntennaNames as str []

getStartValidTime()[source]

Get startValidTime. return startValidTime as ArrayTime

getStationName()[source]

Get stationName. return stationName as str

getStationPosition()[source]

Get stationPosition. return stationPosition as Length []

getTable()[source]

Return the table to which this row belongs.

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

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

isPhaseRmsExists()[source]

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

static numAntennaFromBin(row, eis)[source]

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

static phaseRmsFromBin(row, eis)[source]

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

static positionErrFromBin(row, eis)[source]

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

static positionMethodFromBin(row, eis)[source]

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

static positionOffsetFromBin(row, eis)[source]

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

static receiverBandFromBin(row, eis)[source]

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

static reducedChiSquaredFromBin(row, eis)[source]

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

static refAntennaNamesFromBin(row, eis)[source]

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

setAntennaName(antennaName)[source]

Set antennaName with the specified str value. antennaName The str value to which antennaName 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.

setAntennaPosition(antennaPosition)[source]

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

setAtmPhaseCorrection(atmPhaseCorrection)[source]

Set atmPhaseCorrection with the specified AtmPhaseCorrection value. atmPhaseCorrection The AtmPhaseCorrection value to which atmPhaseCorrection 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.

setAxesOffset(axesOffset)[source]

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

setAxesOffsetErr(axesOffsetErr)[source]

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

setAxesOffsetFixed(axesOffsetFixed)[source]

Set axesOffsetFixed with the specified bool value. axesOffsetFixed The bool value to which axesOffsetFixed is to be set.

setCalDataId(calDataId)[source]

Set calDataId with the specified Tag value. calDataId The Tag value to which calDataId is to be set. The value of calDataId 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.

setCalReductionId(calReductionId)[source]

Set calReductionId with the specified Tag value. calReductionId The Tag value to which calReductionId is to be set. The value of calReductionId 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.

setDelayRms(delayRms)[source]

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

setEndValidTime(endValidTime)[source]

Set endValidTime with the specified ArrayTime value. endValidTime The ArrayTime value to which endValidTime is to be set. The value of endValidTime can be anything allowed by the ArrayTime 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.

setNumAntenna(numAntenna)[source]

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

setPhaseRms(phaseRms)[source]

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

setPositionErr(positionErr)[source]

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

setPositionMethod(positionMethod)[source]

Set positionMethod with the specified PositionMethod value. positionMethod The PositionMethod value to which positionMethod is to be set.

setPositionOffset(positionOffset)[source]

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

setReceiverBand(receiverBand)[source]

Set receiverBand with the specified ReceiverBand value. receiverBand The ReceiverBand value to which receiverBand is to be set.

setReducedChiSquared(reducedChiSquared)[source]

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

setRefAntennaNames(refAntennaNames)[source]

Set refAntennaNames with the specified str [] value. refAntennaNames The str [] value to which refAntennaNames is to be set.

setStartValidTime(startValidTime)[source]

Set startValidTime with the specified ArrayTime value. startValidTime The ArrayTime value to which startValidTime is to be set. The value of startValidTime can be anything allowed by the ArrayTime constructor.

setStationName(stationName)[source]

Set stationName with the specified str value. stationName The str value to which stationName is to be set.

setStationPosition(stationPosition)[source]

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

static startValidTimeFromBin(row, eis)[source]

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

static stationNameFromBin(row, eis)[source]

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

static stationPositionFromBin(row, eis)[source]

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