Skip to content

Time stamp in EpochPosition #85

@lmichel

Description

@lmichel

Problem

There are 2 issues with EpochPosition.epoch, which is currently typed as a Coords:Epoch primitive type (B/J<year>)

  1. (raised by @gilleslandais ) Mapping native data on this field is difficult because the epoch in column can be MJD/ISO/year/....
    If the EpochPosition.epoch attribute refers to one of these serializations, the model will miss the serialization mode.
  2. 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

  1. 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)
  2. Extend it with 2 ivoa:real subtypes: Year and Seconds
  3. Set EpochPosition.epoch as a mango:TimeInstant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions