Skip to content

Instantly share code, notes, and snippets.

View evanhazey's full-sized avatar

Evan Haze Nunez evanhazey

View GitHub Profile
@evanhazey
evanhazey / bowshock_cat_generator.py
Created December 14, 2017 17:09
Creates a telescope useable catalog of sources given some table of latitude and longitude in galactic coordinates
import csv
import numpy
from astropy import units as u
from astropy.coordinates import SkyCoord
def deg_ra_hr(deg):
hr = int((long(deg)*24)/360.)
#Must add this if/then for proper formatting of numbers less than 10
#so that they are written as 08:xx:xx.x vs 8:xx:xx.x
if hr < 10: