Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Requirement:

  • Store the way the user enters the value to display it back in the same format
  • Store in "canonical" units for calculations where canonical units are SI units unless explicitly specified.

In Scheduler Tools, we need a common display output regardless of the OSD's unit

https://www.roe.ac.uk/ukatc/projects/alma/APDM-Cycle7/Indexs/indexLeft.html


Chapter 25 of the Algorithms Document details Proposal Creation unit requirements.


Entities affectedAttributeData TypeStored UnitSupported Conversions
Time Reservationtime_reservation_idintegerNoneNone
Time Reservationavailable_time_model_idintegerNoneNone
Time Reservationlabel            character varyingNoneNone
Time Reservationdescriptioncharacter varyingNoneNone
for UI displayNote
ATM, Time Reservation, OSD, OSstart_date
YYYY-MM-DD in UTC(LST, GST, UTC)↔ (LST, GST, UTC); YYYY-MM-DDastropy stores a split Julian Date where JD1 is integer portion of the date and JD2 is the fractional portion for precision. Postgres stores datetime as 64-bit integer in UTC.
ATMend_date
YYYY-MM-DD in UTC(LST, GST, UTC)↔ (LST, GST, UTC); YYYY-MM-DD
Time Reservation, OSD, OSrepeat_countintegerNoneNone
Time Reservation, OSD, OScadenceintegerper 24h cycle → a day

Nonethere's a definition of cadence in older conceptual doc; Dana promised to findNone
Time Reservation, OSD, OSstart_time
UTCHH:MM:SS in UTC
Time Reservation, OSD, OSstop_time
UTCHH:MM:SS in UTC
Time Reservation, OSD, OSdurationintegers

(d,h,m,s,ms,micros,ns) ↔ (d,h,m,s,ms,micros,ns)
Time Reservation, OSD, OStemporal_reference
UTC(LST, GST, UTC)↔ (LST, GST, UTC)
ATM, Time Reservation, OSD, OSarrayfacility_configurationcharacter varyingfacility specificNone
OSD, OSlongitude
HH:MM:SS.SS of Equatorial RA(RA, galactic longitude) ↔ (RA, galactic longitude)
OSD, OSlatitude
DD:MM:SS.SS of Equatorial DEC(DEC, galactic latitude) ↔ (DEC, galactic latitude)