[Volute] r5252 - trunk/projects/time-domain/timesysnote

Volute commit messages volutecommits at g-vo.org
Tue Dec 4 09:41:18 CET 2018


Author: msdemlei
Date: Tue Dec  4 09:41:18 2018
New Revision: 5252

Log:
timesysnote: Adding timeorigin aliases.

Modified:
   trunk/projects/time-domain/timesysnote/VOTable-1.4-draft.xsd
   trunk/projects/time-domain/timesysnote/timesysnote.tex

Modified: trunk/projects/time-domain/timesysnote/VOTable-1.4-draft.xsd
==============================================================================
--- trunk/projects/time-domain/timesysnote/VOTable-1.4-draft.xsd	Tue Dec  4 09:24:17 2018	(r5251)
+++ trunk/projects/time-domain/timesysnote/VOTable-1.4-draft.xsd	Tue Dec  4 09:41:18 2018	(r5252)
@@ -247,11 +247,27 @@
   </xs:simpleContent>
 </xs:complexType>
 
+<xs:simpleType name="Timeorigin">
+	<xs:annotation>
+  	<xs:documentation>
+  		A time origin.  This is usually a floating point literal giving
+  		a Julian date (for timescale and refposition of the embedding
+  		timesys element).  For convenience, the magic strings "MJD-origin" 
+  		(standing for 2400000.5) and "JD-origin" (standing for 0) are also 
+  		allowed.
+  	</xs:documentation>
+  </xs:annotation>
+  <xs:restriction base="xs:token">
+     <xs:pattern value="[+-]?([0-9]+\.?[0-9]*|\.[0-9]+)([eE][+-]?[0-9]+)?|(JD|MJD)-origin">
+     </xs:pattern>
+  </xs:restriction>
+</xs:simpleType>
+
 <xs:complexType name="TimeSystem">
   <xs:simpleContent>
     <xs:extension base="xs:string">
       <xs:attribute name="ID" type="xs:ID" use="required"/>
-      <xs:attribute name="timeorigin" type="xs:double"/>
+      <xs:attribute name="timeorigin" type="Timeorigin"/>
       <xs:attribute name="timescale" use="required">
         <xs:simpleType>
           <xs:restriction base="xs:NMTOKEN">
@@ -267,7 +283,7 @@
         	</xs:restriction>
         </xs:simpleType>
       </xs:attribute>
-      <xs:attribute name="refposition" use="required>
+      <xs:attribute name="refposition" use="required">
         <xs:simpleType>
           <xs:restriction base="xs:NMTOKEN">
             <xs:enumeration value="TOPOCENTER"/>

Modified: trunk/projects/time-domain/timesysnote/timesysnote.tex
==============================================================================
--- trunk/projects/time-domain/timesysnote/timesysnote.tex	Tue Dec  4 09:24:17 2018	(r5251)
+++ trunk/projects/time-domain/timesysnote/timesysnote.tex	Tue Dec  4 09:41:18 2018	(r5252)
@@ -228,8 +228,9 @@
 \begin{bigdescription}
 \item[\xmlel{timeorigin}] This is the time origin of the time coordinate,
 given as a Julian Date for the the time scale and reference point
-defined.  It is given as a floating point
-literal (specifically, the type is \xmlel{xs:double}).
+defined.  It is usually given as a floating point
+literal; for convenience, the magic strings \verb|MJD-origin| (standing
+for 2400000.5) and \verb|JD-origin| (standing for 0) are also allowed.
 The timeorigin attribute MUST be given unless the time's representation
 contains a year of a calendar era, in which case it MUST NOT be present.  
 In VOTables, these


More information about the Volutecommits mailing list