Package gavo :: Package stc :: Module conform
[frames] | no frames]

Module conform

source code

"Conforming" of STCSpecs, i.e., bringing one to the system and units of the other.

You can only conform STCSpecs rather than individual components, since usually you need the whole information for the transformation (e.g., space and time for velocities.

Classes
  SphercLoader
A hack to delay loading of spherc.
Functions
 
iterSpatialChanges(baseSTC, sysSTC, slaComp=False)
yields changes to baseSTC to bring places and velocities to the system and units of sysSTC.
source code
 
iterTemporalChanges(baseSTC, sysSTC) source code
 
conformUnits(baseSTC, sysSTC)
returns baseSTC in the units of sysSTC.
source code
 
conformSystems(baseSTC, sysSTC, relativistic=False, slaComp=False)
conforms places and velocities in fromSTC with toSTC including precession and reference frame fixing.
source code
 
conform(baseSTC, sysSTC, **kwargs)
returns baseSTC in the units and the system of sysSTC.
source code
 
getSimple2Converter(srcSTC, destSTC, slaComp=True)
returns a function that transforms lat and long in srcSTC to lat and long in destSTC.
source code
Variables
  spherc = <gavo.stc.conform.SphercLoader object>
  i = [0]
  __package__ = 'gavo.stc'
Function Details

iterSpatialChanges(baseSTC, sysSTC, slaComp=False)

source code 

yields changes to baseSTC to bring places and velocities to the system and units of sysSTC.

sixTrans is a sphermath.SVConverter instance.

If the frame or units are not defined in sysSTC, there are taken from baseSTC.

getSimple2Converter(srcSTC, destSTC, slaComp=True)

source code 

returns a function that transforms lat and long in srcSTC to lat and long in destSTC.

srcSTC and destSTC are ASTs. Of course, all this only works if srcSTC and destSTC are both SPHER2-flavored.