2010-05-17T08:21:00
500
STC utype generator
This services converts the representations
of STC objects in XML, utypes, and STC-S into each other.
virtual-observatories
stcs to utype
In the below form, you can enter source strings
in some STC serializations and retrieve them in others. See
the `Service Info <info>`_ for more information and examples.
eqFrame ::= eqFrameName [ sym0102 ]
eqFrameName ::= "FK5" | "FK4" | "ECLIPTIC"
exactNumericLiteral ::= RE<[+-]?\d+(\.(\d+)?)?|[+-]?\.\d+>
fillfactor ::= "fillfactor" numberLiteral
flavor ::= RE
frame ::= eqFrame | "J2000" | "B1950" | "ICRS" | "GALACTIC" | "GALACTIC_I" | "GALACTIC_II" | "SUPER_GALACTIC" | "GEO_C" | "GEO_D" | "HPR" | "HGS" | "HGC" | "HPC" | "UNKNOWNFrame"
isoTimeLiteral ::= RE<\d\d\d\d-?\d\d-?\d\d(T\d\d:?\d\d:?\d\d(\.\d*)?Z?)?>
jdLiteral ::= "JD" exactNumericLiteral
mjdLiteral ::= "MJD" exactNumericLiteral
numberLiteral ::= RE<(?i)([+-]?\d+(\.(\d+)?)?|[+-]?\.\d+)(E[+-]?\d+)?>
position ::= "Position" frame [ refpos ] [ flavor ] [ sym0134 ] [ { numberLiteral } ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0155 ] [ sym0181 ] [ velocityInterval ]
positionInterval ::= "PositionInterval" [ fillfactor ] frame [ refpos ] [ flavor ] [ sym0134 ] { numberLiteral } [ positionSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0155 ] [ sym0181 ] [ velocityInterval ]
positionSpec ::= "Position" [ { numberLiteral } ]
redshift ::= "Redshift" [ refpos ] [ redshiftType ] [ dopplerdef ] [ { numberLiteral } ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
redshiftInterval ::= "RedshiftInterval" [ fillfactor ] [ refpos ] [ redshiftType ] [ dopplerdef ] { numberLiteral } [ redshiftSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
redshiftSpec ::= "Redshift" numberLiteral
redshiftSubPhrase ::= redshiftInterval | redshift
redshiftType ::= RE
refpos ::= sym0023 [ sym0025 ]
spaceSubPhrase ::= positionInterval | position | atomicGeometry | sym0202 | sym0237 | sym0242
spectral ::= "Spectral" [ refpos ] [ { numberLiteral } ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
spectralInterval ::= "SpectralInterval" [ fillfactor ] [ refpos ] { numberLiteral } [ spectralSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
spectralSpec ::= "Spectral" numberLiteral
spectralSubPhrase ::= spectralInterval | spectral
startTime ::= "StartTime" [ fillfactor ] [ sym0077 ] [ refpos ] timeLiteral [ sym0039 ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
stcsPhrase ::= [ timeSubPhrase ] [ spaceSubPhrase ] [ spectralSubPhrase ] [ redshiftSubPhrase ] [ systemDefinition ]
stopTime ::= "StopTime" [ fillfactor ] [ sym0077 ] [ refpos ] timeLiteral [ sym0039 ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
sym0023 ::= RE
sym0025 ::= "JPL-DE200" | "JPL-DE405"
sym0039 ::= "Time" timeLiteral
sym0077 ::= RE
sym0102 ::= RE<[BJ][0-9]+([.][0-9]*)?>
sym0134 ::= "Epoch"
sym0155 ::= "Size" numberLiteral { numberLiteral }
sym0181 ::= "PixSize" numberLiteral { numberLiteral }
sym0189 ::= "AllSky" | "Circle" | "Ellipse" | "Box" | "Polygon" | "Convex"
sym0202 ::= "Not" [ fillfactor ] frame [ refpos ] [ flavor ] [ sym0134 ] "(" _compoundGeoOperand ")" [ positionSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0155 ] [ sym0181 ] [ velocityInterval ]
sym0210 ::= sym0189 { numberLiteral }
sym0213 ::= _compoundGeoExprUnary | _compoundGeoExprBinary | _compoundGeoExprNary
sym0227 ::= "Union" | "Intersection"
sym0237 ::= "Difference" [ fillfactor ] frame [ refpos ] [ flavor ] [ sym0134 ] "(" _compoundGeoOperand _compoundGeoOperand ")" [ positionSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0155 ] [ sym0181 ] [ velocityInterval ]
sym0242 ::= sym0227 [ fillfactor ] frame [ refpos ] [ flavor ] [ sym0134 ] "(" _compoundGeoOperand _compoundGeoOperand { _compoundGeoOperand } ")" [ positionSpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0155 ] [ sym0181 ] [ velocityInterval ]
sym0266 ::= "Error" numberLiteral { numberLiteral }
sym0303 ::= "Resolution" numberLiteral { numberLiteral }
systemDefinition ::= "System" NOIMPL
time ::= "Time" [ sym0077 ] [ refpos ] [ timeLiteral ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
timeInterval ::= "TimeInterval" [ fillfactor ] [ sym0077 ] [ refpos ] { timeLiteral } [ sym0039 ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
timeLiteral ::= isoTimeLiteral | jdLiteral | mjdLiteral
timeSubPhrase ::= timeInterval | startTime | stopTime | time
timeUnit ::= "unit"
velocityInterval ::= "VelocityInterval" [ fillfactor ] { numberLiteral } [ velocitySpec ] [ timeUnit ] [ sym0266 ] [ sym0303 ] [ sym0181 ]
velocitySpec ::= "Velocity" numberLiteral { numberLiteral }
.. _STC: http://www.ivoa.net/Documents/latest/STC.html
.. _STC-X: http://www.ivoa.net/Documents/latest/STC-X.html
.. _STC-S: http://www.ivoa.net/Documents/Notes/STC-S/
.. _STC in VOTable note: http://www.ivoa.net/Documents/Notes/VOTableSTC/
]]>
/stctrans/q/utypes
self.assertHasStrings("stc:AstroCoords.Position2D.Value2.C1",
"ordSys#TT-ICR")
/stctrans/q/utypes
self.assertHasStrings("Invalid STCS expression", "Please correct")
/stctrans/q/utypes/form
self.assertHasStrings("*(dateObs)")