libera_utils.l1a.ground_ccsds#

Helpers for scanning demuxed ground-test CCSDS files.

Ground captures (TVAC/DITL/ISTR/IOV) are demuxed outside the pipeline into one file per APID, named LIBERA_SDC_<apid>_ccsds_<yyyy>_<doy>_<hh>_<mm>_<ss> with the record header already stripped. These helpers return the packet and science data time spans that File Metadata ingest needs for one such file.

Functions

apid_from_ground_ccsds_filename(packet_file)

Return the APID encoded in a demuxed ground CCSDS basename.

scan_ground_ccsds_file(packet_file, *[, ...])

Scan one demuxed ground CCSDS file for its packet and science data time spans.

Classes

GroundCcsdsTimeSpan(apid, first_packet_time, ...)

Packet and optional science data time span for one demuxed ground CCSDS file.