Package gavo :: Package stc :: Module dm :: Class SpaceFrame
[frames] | no frames]

Class SpaceFrame

source code

             object --+            
                      |            
utils.autonode.AutoNode --+        
                          |        
             common.ASTNode --+    
                              |    
                    _CoordFrame --+
                                  |
                                 SpaceFrame

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
getEquinox(self)
returns a datetime.datetime instance for the frame's equinox.
source code
 
asTriple(self)
returns a triple defining the space frame for spherc's purposes.
source code
 
__init__(self, equinox=None, flavor='SPHERICAL', id=None, nDim=None, name=None, refFrame=None, refPos=None, ucd=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from _CoordFrame: isSpherical

Inherited from common.ASTNode: __eq__, __hash__, __ne__, ensureId

Inherited from utils.autonode.AutoNode: __repr__, change, iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables

Inherited from common.ASTNode: inexactAttrs

Properties

Inherited from object: __class__

Method Details

getEquinox(self)

source code 

returns a datetime.datetime instance for the frame's equinox.

It will return None if no equinox is given, and it may raise an STCValueError if an invalid equinox string has been set.

asTriple(self)

source code 

returns a triple defining the space frame for spherc's purposes.

This is for the computation of coordinate transforms. Since we only do coordinate transforms for spherical coordinate systems, this will, for now, raise STCValueErrors if everything but 2 or 3D SPHERICAL flavours. The other cases need more thought anyway.

__init__(self, equinox=None, flavor='SPHERICAL', id=None, nDim=None, name=None, refFrame=None, refPos=None, ucd=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)