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

Module common

source code

Definitions and shared code for STC processing.

Classes
  STCError
  STCSParseError
is raised if an STC-S expression could not be parsed.
  STCLiteralError
is raised when a literal is not well-formed.
  STCInternalError
is raised when assumptions about the library behaviour are violated.
  STCValueError
is raised when some STC specification is inconsistent.
  STCUnitError
is raised when some impossible operation on units is requested.
  STCXBadError
is raised when something is wrong with STC-X.
  STCNotImplementedError
is raised when the current implementation limits are reached.
  ASTNode
The base class for all nodes in STC ASTs.
  ColRef
A column reference instead of a true value, occurring in an STC-S tree.
  GeometryColRef
A ColRef that refers to an in-DB geometry.
Functions
 
clampLong(val)
returns val standardized as a latitude.
source code
 
clampLat(val)
returns val standardized as a latitude.
source code
Variables
  TWO_PI = 6.28318530718
  tropicalYear = 365.242198781
  secsPerJCy = 3155760000.0
  STCNamespace = 'http://www.ivoa.net/xml/STC/stc-v1.30.xsd'
  XlinkNamespace = 'http://www.w3.org/1999/xlink'
  stcSpaceRefFrames = set(['AZ_EL', 'BODY', 'ECLIPTIC', 'FK4', '...
  stcRefPositions = set(['BARYCENTER', 'CoordRefPos', 'EMBARYCEN...
  stcCoordFlavors = set(['CARTESIAN', 'CYLINDRICAL', 'HEALPIX', ...
  stcTimeScales = set(['ET', 'IAT', 'LST', 'TAI', 'TCB', 'TCG', ...
  __package__ = 'gavo.stc'
Function Details

clampLong(val)

source code 

returns val standardized as a latitude.

Our latitudes are always in [0, 2*pi].

clampLat(val)

source code 

returns val standardized as a latitude.

Our latitudes are always in [-pi, pi].


Variables Details

stcSpaceRefFrames

Value:
set(['AZ_EL',
     'BODY',
     'ECLIPTIC',
     'FK4',
     'FK5',
     'GALACTIC_I',
     'GALACTIC_II',
     'GEO_C',
...

stcRefPositions

Value:
set(['BARYCENTER',
     'CoordRefPos',
     'EMBARYCENTER',
     'GALACTIC_CENTER',
     'GEOCENTER',
     'HELIOCENTER',
     'JUPITER',
     'LOCAL_GROUP_CENTER',
...

stcCoordFlavors

Value:
set(['CARTESIAN',
     'CYLINDRICAL',
     'HEALPIX',
     'POLAR',
     'SPHERICAL',
     'STRING',
     'UNITSPHERE'])

stcTimeScales

Value:
set(['ET',
     'IAT',
     'LST',
     'TAI',
     'TCB',
     'TCG',
     'TDB',
     'TDT',
...