Convert Julian date to ephemeris time (seconds from J2000 epoch).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | jd |
Julian date [days] |
ephemeris time [sec from J2000 epoch]
pure function jd_to_et(jd) result(et) use conversion_module, only: day2sec implicit none real(wp),intent(in) :: jd !! Julian date [days] real(wp) :: et !! ephemeris time [sec from J2000 epoch] et = (jd - jd_j2000) * day2sec end function jd_to_et