This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import numba | |
import cupy as cp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import argparse | |
import numpy as np | |
import baseband | |
import astropy.units as u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wcsfit | |
for file in 2*.fits; do | |
if [ ! -e $file.cal ]; then | |
addwcs -f $file -r test.fits -m 9 -R 20 | |
satid $file $file.png/png 2>/dev/null | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy first file | |
if [ ! -e "test.fits" ]; then | |
ls -1 2*.fits | head -n1 | awk '{printf("cp %s test.fits\n",$1)}' | sh | |
fi | |
# Loop over files | |
for file in *.fits; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wait for nearest full second | |
waitfor | |
# Log date | |
timestamp=`date -u +%FT%T` | |
echo $timestamp >>log.txt | |
# Capture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from astropy.io import ascii | |
if __name__ == "__main__": | |
d = ascii.read(sys.argv[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import json | |
from spacetrack import SpaceTrackClient | |
from sgp4.earth_gravity import wgs84 | |
from sgp4.io import twoline2rv | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
from astropy.time import Time |
NewerOlder