subroutine earthbarycen check if earthbarycentering has been applied already - if yes, exit locate ODF orbit file locate earth ephemeris file foreach row in table compute TBD from time value of current row end update timing related attributes foreach GTI extension forach row in GTI table compute TBD of START and STOP time end end end subroutine earthbarycen