Skip to content

Instantly share code, notes, and snippets.

choco install authy-desktop -y
choco install git –y
choco install putty -y
choco install gitextensions -y
choco install vscode –y
choco install 7zip –y
choco install googlechrome -y
choco install firefox –y
choco install powershell –y
choco install powershell-core -y
@alastairtree
alastairtree / PacketSplitter.py
Last active January 11, 2024 10:27
This scripts takes a binary file containing CCSDS packets and splits them into one file per packet. Assumes CCSDS packets always have a secondary header, and that the first 4 bytes of data are a SCLK timestamp in seconds with 2010-01-01 as epoch as per the NASA IMAP Mission spec.
#!/usr/bin/python
# This scripts takes a binary file containing CCSDS packets and splits them into one file per packet
# Usage > python3 PacketSplitter.py -i <InputFile> -o <outputFiles>
import datetime
import sys, getopt, os
from os.path import exists