jd12_from_dtf#
- spacekernel.time.jd12_from_dtf(dtf: ndarray[DTF], str scale: str) ndarray[jd_t]#
Convert a DTF struct array into a NumPy array of two-part Julian Dates.
- Parameters:
- dtfndarray of DTF, shape (N,)
Structured array of calendar fields (year, month, day, hour, minute, second).
- scalestr
Time scale to use (e.g.
'UTC','TT','UT1').
- Returns:
- ndarray of float, shape (N, 2)
Each row is the two-part Julian Date [jd1, jd2] for the corresponding entry in dtf.
- Raises:
- ValueError
If c_jd12_from_dtf raises due to an invalid time scale or SOFA error.
See also
c_jd12_from_dtfC-accelerated core routine wrapping IAU SOFA.