Skip to content

Instantly share code, notes, and snippets.

View dokeeffe's full-sized avatar

Derek OKeeffe dokeeffe

  • Dell EMC
  • Cork Ireland
View GitHub Profile
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.
@dokeeffe
dokeeffe / Photometry with astropy photils and AAVSO.ipynb
Created March 11, 2017 21:14
Using photutils to measure magnitudes of stars
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from astropy.coordinates import EarthLocation,SkyCoord
from astropy.time import Time
from astropy import units as u
from astropy.coordinates import AltAz
observing_location = EarthLocation(lat='52.2532', lon='351.63910339111703', height=100*u.m)
observing_time = Time('2017-02-05 20:12:18')
aa = AltAz(location=observing_location, obstime=observing_time)
coord = SkyCoord('4h42m', '-38d6m50.8s')
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.