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_idintegerNoneNoneTime Reservationavailable_time_model_idintegerNoneNoneTime Reservationlabel            character varyingNoneNone
for UI displayNote
Time Reservationdescriptioncharacter varyingNoneNone
ATM, Time Reservation, OSD, OSstart_date
UTC
integerUTC
(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
integerUTC

UTC(LST, GST, UTC)↔ (LST, GST, UTC); YYYY-MM-DD
Time Reservation, OSD, OSrepeat_countintegerNoneNone
Time Reservation, OSD, OScadence
integerper 24h cycle → a dayNone


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


(d,h,m,s,ms,micros,ns) ↔ (d,h,m,s,ms,micros,ns)
Time Reservation, OSD, OStemporal_reference
character varying

UTC(LST, GST, UTC)↔ (LST, GST, UTC)
ATM, Time Reservation, OSD, OS
array
facility_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)