MAVENSDC / cdflib

A python module for reading NASA's Common Data Format (cdf) files
MIT License
82 stars 45 forks source link

Error conversion with cdflib.epochs.CDFepoch.breakdown_tt2000() #277

Open SpaceWalker162 opened 1 month ago

SpaceWalker162 commented 1 month ago
t = np.array([708633032184000000, 536463012184000000])
print(cdflib.epochs.CDFepoch.breakdown_tt2000(t)[0])
print(cdflib.epochs.CDFepoch.breakdown_tt2000(t[0]))

The two prints here give inconsistent results. This seems related to the value of overflow in cdflib.epochs.CDFepoch._LeapSecondsfromJ2000. But I cannot understand this function.