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.coordinates import ICRS, Distance, Angle | |
from astropy import units as u | |
import numpy as np | |
def correct_rgc(coord, glx_ctr=ICRS('00h42m44.33s +41d16m07.5s'), | |
glx_PA=Angle('37d42m54s'), | |
glx_incl=Angle('77.5d'), | |
glx_dist=Distance(783, unit=u.kpc)): | |
"""Computes deprojected galactocentric distance. |
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 python | |
import numpy as np | |
import emcee | |
class ProbWrapper(object): | |
def __init__(self, f): | |
super(ProbWrapper, self).__init__() | |
self._f = f |