dtf_from_jd12#

spacekernel.time.dtf_from_jd12(jd12: ndarray[jd_t], str scale: str) ndarray[DTF]#

Convert a NumPy array of two-part Julian Dates to a structured DTF array.

Parameters:
jd12ndarray of float, shape (N, 2)

Two-part Julian Dates [JD1, JD2] for each epoch.

scalestr

Time scale to use (e.g., ‘UTC’, ‘TT’, ‘UT1’).

Returns:
dtfndarray of DTF, shape (N,)
Structured array with fields:
  • year (uint16)

  • month (uint8)

  • day (uint8)

  • hour (uint8)

  • minute (uint8)

  • second (double)

Raises:
ValueError

If the C conversion function fails (invalid scale or date).

See also

c_dtf_from_jd12

C-accelerated core routine wrapping IAU SOFA conversion.