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
""" | |
Packages required to run this script: | |
lxml | |
PyYAML | |
Requests | |
BeautifulSoup | |
""" |
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
""" | |
https://astroquery.readthedocs.io/en/latest/index.html | |
Tested for astroquery-0.4.7 | |
""" | |
from astropy.time import Time | |
from astroquery.jplhorizons import Horizons | |
def sod_to_hhmmss(seconds, use_codes=False): | |
hours = int(seconds / 3600) |
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
""" | |
Calculates light-travel time between two spacecraft given source position | |
""" | |
import numpy as np | |
c = 299792.458 # km/s | |
class SC: | |
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
from numpy import sin, cos, arcsin, arctan2, deg2rad, rad2deg | |
import numpy as np | |
import matplotlib as mpl | |
mpl.use('Agg') | |
mpl.rcParams['xtick.direction'] = 'in' | |
mpl.rcParams['ytick.direction'] = 'in' | |
mpl.rcParams['xtick.top'] = True | |
mpl.rcParams['ytick.right'] = True |
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
Date Time HHMMSS Det Mode Channels Duration_s Comment | |
20150902 63340.850 17:35:40.850 S1 Trig G1,G2,G3 32 GRB150902A | |
20150905 21055 05:50:55 S2 Bg G1 6 possible GRB | |
20150906 31340.560 08:42:20.560 S1 Trig G1,G2,G3 3 GRB150906B | |
20150909 2512.131 00:41:50.131 S2 Trig G1,G2 40 possible GRB | |
20150910 32748 09:05:48 S2 Bg G2 140 possible GRB | |
20150911 45094 12:31:34 S2 Bg G2 100 possible GRB | |
20150911 50771.269 14:06:11.269 S1 Trig G1,G2 20 GRB, GBM#463673167 | |
20150911 67234 18:40:34 S1 Bg G1,G2 13 GRB, GBM#463689737 | |
20150911 82085 22:48:05 S1,S2 Bg G2 130 possible GRB |