padre_meddea.housekeeping.housekeeping#
Provides functions for housekeeping data
Functions
|
Clean the housekeeping data by replacing any bad times with interpolated times. |
Return the packet definiton for the register read response |
|
Return the packet definiton for the housekeeping packets. |
|
|
Given a raw binary file, read only the command response packets and return the data. |
|
Given a raw file, read only the housekeeping packets and return a timeseries. |
- padre_meddea.housekeeping.housekeeping.clean_hk_data(hk_ts: TimeSeries) TimeSeries[source]#
Clean the housekeeping data by replacing any bad times with interpolated times.
- Parameters:
hk_ts (TimeSeries) – The housekeeping data to clean.
- Returns:
TimeSeries – The cleaned housekeeping data.
- padre_meddea.housekeeping.housekeeping.packet_definition_cmd_response()[source]#
Return the packet definiton for the register read response
- padre_meddea.housekeeping.housekeeping.packet_definition_hk()[source]#
Return the packet definiton for the housekeeping packets.
- padre_meddea.housekeeping.housekeeping.parse_cmd_response_packets(filename: Path)[source]#
Given a raw binary file, read only the command response packets and return the data.
The packet is defined as follows
#
Description
0
CCSDS header 1 (0x00A5)
1
CCSDS header 2 (0b11 and sequence count)
2
CCSDS header 3 payload size (remaining packet size - 1 octet)
3
time_stamp_s 1
4
time_stamp_s 2
5
time_stamp_clocks 1
6
time_stamp_clocks 2
7
register address
8
register value
9
checksum
- Parameters:
filename (Path) – A file to read
- Returns:
cmd_resp_list (astropy.time.TimeSeries or None) – A list of register read responses.