sg_bins.py 文件源码

python
阅读 14 收藏 0 点赞 0 评论 0

项目:bates_galaxies_lab 作者: aleksds 项目源码 文件源码
def __init__(self, name, z, x,y):
        self.z = z
        self.y = y
        self.x = x
        self.name = name
        #lDcm gives the luminosity distance in centimeters
        #self.lDcm = cosmo.luminosity_distance(0.603)*u.Mpc.to(u.cm)/u.Mpc
        #self.lDcm = cosmo.luminosity_distance(self.z)*u.Mpc.to(u.cm) / u.Mpc
        #pixtoKpc is the conversion betweem pixels to rad to kpc based on z value
        #self.pixtoKpc = conv.arcsec_per_kpc_proper(self.z)*0.05/u.arcsec*u.kpc
        self.lDcm = cosmo.luminosity_distance(self.z)*u.Mpc.to(u.cm) / u.Mpc
        self.radToKpc = conv.arcsec_per_kpc_proper(self.z)*0.05/u.arcsec*u.kpc
# Let's set up some stuff so that I can grab stuff from inside an excel sheet.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号