This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.gridspec as gridspec | |
| from matplotlib.colorbar import Colorbar | |
| import sys | |
| import warnings | |
| with warnings.catch_warnings(): | |
| warnings.filterwarnings("ignore",category=FutureWarning) | |
| import h5py |
This file contains hidden or 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/bash | |
| echo $1 $2 $3 $4 $5 $6 | |
| # Run strf | |
| echo "Killing left over netcat" | |
| ps aux | grep -e "nc" | grep -e "45360" | awk '{printf("kill -9 %s\n",$2)}' | sh | |
| freq=`echo $3 | awk '{printf("%d\n",$1-100000)}'` | |
| fmin=`echo $3 | awk '{printf("%d\n",$1-100000)}'` | |
| fmax=`echo $3 | awk '{printf("%d\n",$1+100000)}'` |
This file contains hidden or 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 | |
| from sgp4.api import Satrec | |
| from sgp4.earth_gravity import wgs84 | |
| if __name__ == "__main__": | |
| with open("iss.txt", "r") as fp: | |
| lines = fp.readlines() | |
| sats = [] | |
| for i in range(len(lines) - 1): |
This file contains hidden or 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 re | |
| import glob | |
| import tqdm | |
| from datetime import datetime | |
| import numpy as np | |
| import matplotlib.pyplot as plt |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |