Skip to content

Instantly share code, notes, and snippets.

View janvgils's full-sized avatar

Jan - PE0SAT janvgils

View GitHub Profile
@janvgils
janvgils / tle_filter.py
Created May 27, 2025 16:03
Filter TLE objects
#!/usr/bin/env python3
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser( description = 'TLE file filter')
parser.add_argument('-i', '--input', action='append')
parser.add_argument('-e', '--exclude', action='append')
parser.add_argument('-o', '--output')
args = parser.parse_args()
@janvgils
janvgils / tleupdate.sh
Created May 27, 2025 16:01
Generic STRF TLE Update script
#!/usr/bin/env bash
#
# Check script dependencies:
DEPS="dos2unix sed unzip wget tle_filter.py"
for check in ${DEPS}
do
if [ -z "$(command -v "${check}")" ]; then
echo "# dependency failure, install package ${check} and retry."
exit 1
@janvgils
janvgils / make-satdump.sh
Created February 7, 2025 10:26
Build Satdump package from source
#!/usr/bin/env bash
#
# Build Satdump package from source
#
NPROC=$(nproc --all)
REPO="${HOME}"/source/git/SatDump/SatDump
BUILD_NO=.$(date +%s) && export BUILD_NO && echo "${BUILD_NO}"
cd "${REPO}" || exit
git pull
@janvgils
janvgils / make-sdrpp.sh
Created February 7, 2025 10:16
Build SDR++ package from source
#!/usr/bin/env bash
#
# Build SDR++ package from source
#
#
NPROC=$(nproc --all)
BUILD_NO=.$(date +%s) && export BUILD_NO && echo "${BUILD_NO}"
cd "${HOME}"/source/git/AlexandreRouma/SDRPlusPlus || exit
git pull
@janvgils
janvgils / find_samp_rate.py
Created January 15, 2025 16:43
Get SatNOGS observation sample rate
#!/usr/bin/python3
# This script takes two arguments: {{BAUD}} {{SCRIPT_NAME}}
# and tries to figure out the IQ sample rate
# SA2KNG
import satnogs
import sys
sps=4
@janvgils
janvgils / raw2sharp.sh
Created November 9, 2024 19:15
Convert raw SatNOGS IQ to SDR# format
#!/usr/bin/env bash
#
# Convert raw SatNOGS IQ to SDR# format
# Check dependencies:
DEPS=(sox)
SAMP="${2:-48000}"
for check in "${DEPS[@]}"
@janvgils
janvgils / iobench.sh
Created September 18, 2024 08:38
iobench
#!/usr/bin/env bash
#
# Linux io benchmarks
# -----------------------------------------------------------------------------
# Date: 30-10-2018
# Version 1.0
#
# IT Security Infrastructure
#
# -----------------------------------------------------------------------------
@janvgils
janvgils / satnogs-post
Created July 18, 2024 06:13
SatNOGS post script for gr-satellites integration and saving Iq files
#!/usr/bin/env bash
#
# SATNOGS_POST_OBSERVATION_SCRIPT
#
# /usr/local/bin/satnogs-post {{ID}} {{FREQ}} {{TLE}} {{TIMESTAMP}} {{BAUD}} {{SCRIPT_NAME}}
grsat-wrapper.sh stop "$@"
# grsat.py stop "$@"
# Save IQ files
@janvgils
janvgils / sdr-to-baudline.sh
Last active April 4, 2023 06:48
SDR IQ to Baudline
#!/usr/bin/env bash
#
set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes
#
#
# Based on the following article:
# https://www.elttam.com/blog/intro-sdr-and-rf-analysis/
#
@janvgils
janvgils / strf-capture.sh
Last active September 27, 2025 19:00
STRF Captures
#!/usr/bin/env bash
#
set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes
#
# Run STRF observation
#
# Author: Jan van Gils - PE0SAT
#