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
import lightkurve as lk | |
import numpy as np | |
from tqdm import tqdm | |
# lc = download or read in a lk.LightCurve object | |
fap = 1e-3 # False Alarm Probability level to calculate | |
nruns = 5000 # number of simulations to run (should be > 1/fap) | |
times = lc.time |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/Users/keatonb/anaconda3/bin/python | |
import speedtest | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
sns.set(style="whitegrid", rc={'axes.edgecolor':'.5'}) | |
servers = [1782] #Seattle | |
threads = None |
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
"1–2, Crush on You" B-side of "Tommy Gun" | |
"1977" B-side of "White Riot" | |
"48 Hours" The Clash | |
"All the Young Punks" Give 'Em Enough Rope | |
"Are You Red..Y" Cut the Crap | |
"Armagideon Time" B-side of "London Calling" | |
"Atom Tan" Combat Rock | |
"Bankrobber" Non-album single | |
"Brand New Cadillac" London Calling | |
"Broadway" Sandinista! |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Mar 8 18:47:26 2020 | |
@author: keatonb | |
Example of script that takes command line arguments | |
Call from terminal as `python scriptexample.py arg1 arg2 ...` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#All Agile frames are currently saved with "IMAGETYP" = "object" in the headers as of 01.18.2020 | |
#This script assumes that all bias, dark, and flat filenames start with "bias", "dark", "flat" | |
#Run in folder containing files | |
#WARNING: will overwrite files with modified headers | |
from astropy.io import fits | |
from glob import glob | |
from tqdm import tqdm | |
for imagetype in ['bias','dark','flat']: |