Package pysynphot :: Module observationmode :: Class GraphTable
[hide private]
[frames] | no frames]

Class GraphTable

source code

object --+
         |
        GraphTable

GraphTable class; opens the specified graph table and populates 1-d arrays of keyword names, innodes, outnodes and component names in the members keywords, innodes, outnodes and compnames

Instance Methods [hide private]
 
__init__(self, GFile=None)
__init__ instantiates the GraphTable object, given the graph table name as an input string.
source code
 
GetNextNode(self, modes, innode)
GetNextNode returns the outnode that matches an element from the modes list, starting at the given innode.
source code
 
GetComponentsFromGT(self, modes, innode)
GetComponentsFromGT returns two lists of component names corresponding to those obtained by waling down the graph table starting at innode.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, GFile=None)
(Constructor)

source code 
__init__ instantiates the GraphTable object, given the graph
table name as an input string.

Input:  string GFile containing graph table name
Effect: populates four data members:
        keywords: CharArray of keyword names
        innodes:  Int32 array of innodes
        outnodes: Int32 array of outnodes
        compnames:CharArray of components names

Overrides: object.__init__

GetNextNode(self, modes, innode)

source code 

GetNextNode returns the outnode that matches an element from the modes list, starting at the given innode. This method isnt actually used, its just a helper method for debugging purposes

GetComponentsFromGT(self, modes, innode)

source code 

GetComponentsFromGT returns two lists of component names corresponding to those obtained by waling down the graph table starting at innode. The first list contains the optical components, the second list, the thermal components.