Skip to content

Instantly share code, notes, and snippets.

View cbassa's full-sized avatar

Cees Bassa cbassa

  • ASTRON Netherlands Institute for Radio Astronomy
  • Netherlands
View GitHub Profile
@cbassa
cbassa / vdif_convert.py
Created October 17, 2022 09:22
Tool to convert VLBI VDIF format to complex floats
#!/usr/bin/env python3
import os
import sys
import argparse
import numpy as np
import baseband
import astropy.units as u
@cbassa
cbassa / artemis_1_tle.txt
Created November 16, 2022 07:15
Artemis 1 TLE estimates
These are TLE estimates for the actual launch time of 2022-11-16T06:47:44.
Orbital elements have been estimated from the timeline and parameters by Jonathan
McDowell (https://planet4589.org/space/misc/artemis1.txt).
The TLE describing translunar orbit is only valid for the first 2 days after launch,
as TLEs do not properly model the influence of the Moon at large distances from Earth.
Parking orbit (valid until 2022-11-16T08:32UTC)
1 84001U 22320.31928241 .00000000 00000-0 50000-4 0 04
2 84001 34.0000 15.0000 1103405 21.0000 180.0000 13.71415011 08
@cbassa
cbassa / keogram.py
Created January 5, 2023 09:00
Create a keogram for 24h of images
#!/usr/bin/env python3
import sys
import tqdm
from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
import astropy.units as u
from astropy.time import Time
@cbassa
cbassa / uhd_capture_s-band.sh
Created February 26, 2023 14:26
S-band capture script for B-200
# Settings
FREQ=2242e6
RATE=4e6
FIFO=$HOME/satobs/s-band/fifo
export UHD_IMAGES_DIR=/opt/uhd/share/uhd/images
# Start channelizer
nice -20 rffft -i $FIFO -p $HOME/satobs/s-band -f $FREQ -s $RATE &
@cbassa
cbassa / sky_imagers.py
Created February 3, 2024 10:36
Different implementations of sky imagers for speed testing
#!/usr/bin/env python3
import time
import numpy as np
import matplotlib.pyplot as plt
import numba
import cupy as cp