gavo.stc package¶
Submodules¶
- gavo.stc.bboxes module
- gavo.stc.cli module
- gavo.stc.common module
- gavo.stc.conform module
- gavo.stc.dm module
AllSky
Box
Circle
Convex
CooWiggle
CoordSys
Difference
Ellipse
Intersection
MatrixWiggle
Not
Polygon
PositionInterval
RadiusWiggle
RedshiftCoo
RedshiftFrame
RedshiftInterval
RedshiftType
RefPos
STCSpec
SpaceCoo
SpaceFrame
SpaceInterval
SpaceType
SpectralCoo
SpectralFrame
SpectralInterval
SpectralType
TimeCoo
TimeFrame
TimeInterval
TimeType
Union
VelocityCoo
VelocityInterval
VelocityType
binarizeCompound()
debinarizeCompound()
fromPgSphere()
- gavo.stc.eq module
- gavo.stc.geo module
- gavo.stc.spherc module
- gavo.stc.sphermath module
- gavo.stc.stcs module
- gavo.stc.stcsast module
- gavo.stc.stcsdefaults module
- gavo.stc.stcsgen module
- gavo.stc.stcx module
NamespaceWithSubsGroup
STC
STC.AZ_EL
STC.AllSky
STC.Area
STC.AstroCoordArea
STC.AstroCoordSystem
STC.AstroCoords
STC.BARYCENTER
STC.BODY
STC.Box
STC.C1
STC.C2
STC.C3
STC.CARTESIAN
STC.CValue2
STC.CValue3
STC.CYLINDRICAL
STC.Cart2DRefFrame
STC.Center
STC.Circle
STC.Convex
STC.Coord2VecInterval
STC.Coord3VecInterval
STC.CoordArea
STC.CoordRefPos
STC.CoordScalarInterval
STC.Coordinate
STC.Difference
STC.DopplerDefinition
STC.ECLIPTIC
STC.EMBARYCENTER
STC.Ellipse
STC.Epoch
STC.Equinox
STC.Error
STC.Error2
STC.Error2Matrix
STC.Error2Radius
STC.Error3
STC.Error3Matrix
STC.Error3Radius
STC.FK4
STC.FK5
STC.GALACTIC_CENTER
STC.GALACTIC_I
STC.GALACTIC_II
STC.GEOCENTER
STC.GEO_C
STC.GEO_D
STC.GSE
STC.GSM
STC.GenericCoordFrame
STC.HEALPIX
STC.HEE
STC.HEEQ
STC.HELIOCENTER
STC.HGC
STC.HGI
STC.HGS
STC.HPC
STC.HPR
STC.HRTN
STC.Halfspace
STC.HiLimit
STC.HiLimit2Vec
STC.HiLimit3Vec
STC.ICRS
STC.ISOTime
STC.Intersection
STC.JDTime
STC.JUPITER
STC.JUPITER_C_III
STC.LOCAL_GROUP_CENTER
STC.LSR
STC.LSRD
STC.LSRK
STC.LUNA_C
STC.LoLimit
STC.LoLimit2Vec
STC.LoLimit3Vec
STC.M11
STC.M12
STC.M13
STC.M21
STC.M22
STC.M23
STC.M31
STC.M32
STC.M33
STC.MAG
STC.MARS
STC.MARS_C
STC.MERCURY
STC.MERCURY_C
STC.MJDTime
STC.MOON
STC.NEPTUNE
STC.Name
STC.Name1
STC.Name2
STC.Name3
STC.Negation
STC.ObsDataLocation
STC.ObservationLocation
STC.ObservatoryLocation
STC.Offset
STC.OptionalSTCElement
STC.PLUTO
STC.POLAR
STC.PixSize
STC.PixSize2
STC.PixSize2Matrix
STC.PixSize2Radius
STC.PixSize3
STC.PixSize3Matrix
STC.PixSize3Radius
STC.Pixel
STC.Pixel1D
STC.Pixel2D
STC.Pixel3D
STC.PixelCoordArea
STC.PixelCoordFrame
STC.PixelCoordSystem
STC.PixelCoords
STC.PixelSpace
STC.PlanetaryEphem
STC.Point
STC.Pole
STC.Polygon
STC.PosAngle
STC.Position
STC.Position1D
STC.Position2D
STC.Position2VecInterval
STC.Position3D
STC.Position3VecInterval
STC.PositionScalarInterval
STC.RELOCATABLE
STC.Radius
STC.Redshift
STC.RedshiftFrame
STC.RedshiftInterval
STC.ReferencePixel
STC.Region
STC.Resolution
STC.Resolution2
STC.Resolution2Matrix
STC.Resolution2Radius
STC.Resolution3
STC.Resolution3Matrix
STC.Resolution3Radius
STC.SATURN
STC.SATURN_C_III
STC.SM
STC.SPHERICAL
STC.STCElement
STC.STCResourceProfile
STC.STCSpec
STC.STRING
STC.SUPER_GALACTIC
STC.ScalarCoordinate
STC.ScalarRefFrame
STC.Scale
STC.SemiMajorAxis
STC.SemiMinorAxis
STC.Size
STC.Size2
STC.Size2Matrix
STC.Size2Radius
STC.Size3
STC.Size3Matrix
STC.Size3Radius
STC.SmallCircle
STC.SpaceFrame
STC.SpatialInterval
STC.Spectral
STC.SpectralFrame
STC.SpectralInterval
STC.Sphere
STC.StartTime
STC.StopTime
STC.StringCoordinate
STC.T
STC.TOPOCENTER
STC.T_CoordFlavor
STC.T_Coords
STC.T_Interval
STC.T_Pixel
STC.T_ReferencePosition
STC.T_Region
STC.T_SpaceRefFrame
STC.T_astronTime
STC.T_coordinate
STC.T_double1
STC.T_double2
STC.T_double3
STC.T_matrix
STC.T_size2
STC.T_size3
STC.Time
STC.TimeFrame
STC.TimeInstant
STC.TimeInterval
STC.TimeOrigin
STC.TimeRefDirection
STC.TimeScale
STC.Timescale
STC.Transform2
STC.Transform3
STC.UNITSPHERE
STC.UNKNOWNFrame
STC.UNKNOWNRefPos
STC.URANUS
STC.Union
STC.VENUS
STC.VENUS_C
STC.Value
STC.Value2
STC.Value3
STC.Vector
STC.Vector2DCoordinate
STC.Velocity1D
STC.Velocity2D
STC.Velocity2VecInterval
STC.Velocity3D
STC.Velocity3VecInterval
STC.VelocityScalarInterval
STC.Vertex
STC.e
- gavo.stc.stcxast module
- gavo.stc.stcxgen module
Context
addId()
astToStan()
getSTCXProfile()
isoformatOrNull()
makeAreas()
nodeToStan()
serialize_AllSky()
serialize_Box()
serialize_Circle()
serialize_Convex()
serialize_CoordSys()
serialize_Difference()
serialize_Ellipse()
serialize_Intersection()
serialize_MultiCompound()
serialize_Not()
serialize_Polygon()
serialize_RedshiftCoo()
serialize_RedshiftFrame()
serialize_RedshiftInterval()
serialize_RefPos()
serialize_SpaceCoo()
serialize_SpaceFrame()
serialize_SpaceInterval()
serialize_SpectralCoo()
serialize_SpectralFrame()
serialize_SpectralInterval()
serialize_TimeCoo()
serialize_TimeFrame()
serialize_TimeInterval()
serialize_Union()
serialize_VelocityCoo()
serialize_VelocityInterval()
strOrNull()
- gavo.stc.syslib module
- gavo.stc.tapstc module
- gavo.stc.times module
TAItoTT()
TCBtoTT()
TCGtoTT()
TDBtoTT()
TTtoTAI()
TTtoTCB()
TTtoTCG()
TTtoTDB()
TTtoUTC()
UTCtoTT()
bYearToDateTime()
dateTimeToBYear()
dateTimeToJYear()
dateTimeToJdn()
dateTimeToMJD()
datetimeMapperFactory()
getLeapSeconds()
getSeconds()
getTransformFromSTC()
getTransformFromScales()
isMJD()
jYearToDateTime()
jdnToDateTime()
mjdToDateTime()
parseISODT()
- gavo.stc.units module
- gavo.stc.utypeast module
- gavo.stc.utypegen module
Module contents¶
Support for the IVOA Space-Time-Coordinate data model.
We’re dealing with a huge data model here that probably can’t be fully implemented in any sense of the word.
So, we have a stripped down data model in the form of an abstract syntax tree here (defined in the dm submodule). This can be built directly or from various input formats (XXXast submodules). From the AST, you can also build various output formats (XXXgen submodules).
All other operations should be performed on the AST.
Note that this is slow as a dog. I doubt we’ll ever see performant STC implementations. This is really intended for one-shot transformations, e.g. into functions or a query language. Don’t do any transformations in serious loops.