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
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.
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')
@dokeeffe
dokeeffe / Photometry with astropy photils and AAVSO.ipynb
Created March 11, 2017 21:14
Using photutils to measure magnitudes of stars
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.
@dokeeffe
dokeeffe / spectra.ipynb
Created July 14, 2017 21:17
Spectra plot with astropy and matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.