Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
import cv2, time | |
cap = cv2.VideoCapture(0) | |
cap.set(3, 640) #WIDTH | |
cap.set(4, 480) #HEIGHT | |
face_cascade = cv2.CascadeClassifier('/home/okeefd3/.local/lib/python3.6/site-packages/cv2/data/haarcascade_frontalface_default.xml') | |
face_counter = 0 | |
while(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
from astropy.io import fits | |
import glob | |
import numpy as np | |
from astropy import units as u | |
from astropy.time import Time | |
from astropy.coordinates import SkyCoord, EarthLocation, AltAz | |
data_files = glob.glob('/home/dokeeffe/Pictures/xo-2b/*.fits') | |
for file in data_files: |
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 glob, os | |
from PIL import Image, ImageFont, ImageDraw | |
# Script used to generate https://www.youtube.com/watch?v=CYZBLVuM4nU | |
# run this command after this script runs > ffmpeg -framerate 15 -pattern_type glob -i '/home/dokeeffe/Desktop/xo-2b-transit-allsky/*.jpg' -c:v libx264 ~/Desktop/xo-2b-transit-allsky/allsky$.mp4 | |
plot_image = Image.open('/home/dokeeffe/Pictures/Selection_037.png') | |
fit_image = Image.open('/home/dokeeffe/Pictures/Selection_038.png') | |
data_files = glob.glob('/home/dokeeffe/Desktop/xo-2b-transit-allsky/all*.jpg') | |
start_whiteout = 220 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
# Convert a date time string to julian date using astropy Time | |
from astropy.time import Time | |
t = Time('2017-07-02 11:11:11', scale='utc') | |
print(t.jd) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder