EphemerisRow

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

Bases: object

The EphemerisRow class is a row of a EphemerisTable.

Generated from model’s revision -1, branch

Methods Summary

clearNumPolyRadVel()

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

clearRadVel()

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

compareNoAutoInc(timeInterval, ephemerisId, …)

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

compareRequiredValue(observerLocation, …)

dirFromBin(row, eis)

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

distanceFromBin(row, eis)

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

ephemerisIdFromBin(row, eis)

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

equinoxEquatorFromBin(row, eis)

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

getDir()

Get dir.

getDistance()

Get distance.

getEphemerisId()

Get ephemerisId.

getEquinoxEquator()

Get equinoxEquator.

getNumPolyDir()

Get numPolyDir.

getNumPolyDist()

Get numPolyDist.

getNumPolyRadVel()

Get numPolyRadVel, which is optional.

getObserverLocation()

Get observerLocation.

getOrigin()

Get origin.

getRadVel()

Get radVel, which is optional.

getTable()

Return the table to which this row belongs.

getTimeInterval()

Get timeInterval.

getTimeOrigin()

Get timeOrigin.

initFromBinMethods()

isAdded()

isNumPolyRadVelExists()

The attribute numPolyRadVel is optional.

isRadVelExists()

The attribute radVel is optional.

numPolyDirFromBin(row, eis)

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

numPolyDistFromBin(row, eis)

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

numPolyRadVelFromBin(row, eis)

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

observerLocationFromBin(row, eis)

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

originFromBin(row, eis)

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

radVelFromBin(row, eis)

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

setDir(dir)

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

setDistance(distance)

Set distance with the specified float [] value.

setEphemerisId(ephemerisId)

Set ephemerisId with the specified int value.

setEquinoxEquator(equinoxEquator)

Set equinoxEquator with the specified float value.

setFromXML(xmlrow)

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

setNumPolyDir(numPolyDir)

Set numPolyDir with the specified int value.

setNumPolyDist(numPolyDist)

Set numPolyDist with the specified int value.

setNumPolyRadVel(numPolyRadVel)

Set numPolyRadVel with the specified int value.

setObserverLocation(observerLocation)

Set observerLocation with the specified float [] value.

setOrigin(origin)

Set origin with the specified str value.

setRadVel(radVel)

Set radVel with the specified float [] value.

setTimeInterval(timeInterval)

Set timeInterval with the specified ArrayTimeInterval value.

setTimeOrigin(timeOrigin)

Set timeOrigin with the specified ArrayTime value.

timeIntervalFromBin(row, eis)

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

timeOriginFromBin(row, eis)

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

clearNumPolyRadVel()[source]

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

clearRadVel()[source]

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

compareNoAutoInc(timeInterval, ephemerisId, observerLocation, equinoxEquator, numPolyDir, dir, numPolyDist, distance, timeOrigin, origin)[source]

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

compareRequiredValue(observerLocation, equinoxEquator, numPolyDir, dir, numPolyDist, distance, timeOrigin, origin)[source]
static dirFromBin(row, eis)[source]

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

static distanceFromBin(row, eis)[source]

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

static ephemerisIdFromBin(row, eis)[source]

Set the ephemerisId 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 equinoxEquatorFromBin(row, eis)[source]

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

getDir()[source]

Get dir. return dir as float [] []

getDistance()[source]

Get distance. return distance as float []

getEphemerisId()[source]

Get ephemerisId. return ephemerisId as int

getEquinoxEquator()[source]

Get equinoxEquator. return equinoxEquator as float

getNumPolyDir()[source]

Get numPolyDir. return numPolyDir as int

getNumPolyDist()[source]

Get numPolyDist. return numPolyDist as int

getNumPolyRadVel()[source]

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

getObserverLocation()[source]

Get observerLocation. return observerLocation as float []

getOrigin()[source]

Get origin. return origin as str

getRadVel()[source]

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

getTable()[source]

Return the table to which this row belongs.

getTimeInterval()[source]

Get timeInterval. return timeInterval as ArrayTimeInterval

getTimeOrigin()[source]

Get timeOrigin. return timeOrigin as ArrayTime

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

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

isRadVelExists()[source]

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

static numPolyDirFromBin(row, eis)[source]

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

static numPolyDistFromBin(row, eis)[source]

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

static numPolyRadVelFromBin(row, eis)[source]

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

static observerLocationFromBin(row, eis)[source]

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

static originFromBin(row, eis)[source]

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

static radVelFromBin(row, eis)[source]

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

setDir(dir)[source]

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

setDistance(distance)[source]

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

setEphemerisId(ephemerisId)[source]

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

setEquinoxEquator(equinoxEquator)[source]

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

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.

setNumPolyDir(numPolyDir)[source]

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

setNumPolyDist(numPolyDist)[source]

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

setNumPolyRadVel(numPolyRadVel)[source]

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

setObserverLocation(observerLocation)[source]

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

setOrigin(origin)[source]

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

setRadVel(radVel)[source]

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

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.

setTimeOrigin(timeOrigin)[source]

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

static timeIntervalFromBin(row, eis)[source]

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

static timeOriginFromBin(row, eis)[source]

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