generated from ivoa-std/doc-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Problem
There are 2 issues with EpochPosition.epoch
, which is currently typed as a Coords:Epoch
primitive type (B/J<year>
)
- (raised by @gilleslandais ) Mapping native data on this field is difficult because the epoch in column can be MJD/ISO/year/....
If theEpochPosition.epoch
attribute refers to one of these serializations, the model will miss the serialization mode. - The B/J prefix can make the mapped epoch conflicting with the time coordinate system attached to the
EpochPosition
.
Solution
To solve these 2 issues, EpochPositio.Epoch
can be typed as a coords:TimeInstant
(see standard P 18) which is an abstract type with 3 subtypes currently supported: JD, MJD and ISO.
In addition to this, Mango should extend coords:TimeInstant
with 2 types: Years
and Seconds
Proposed actions
- Duplicate
coords:TimeInstant
in Mango to avoid mixing components of different models in one Mango class (see Error types and relation to Measurement model Uncertainty #60) - Extend it with 2
ivoa:real
subtypes:Year
andSeconds
- Set
EpochPosition.epoch
as amango:TimeInstant
Metadata
Metadata
Assignees
Labels
No labels