def test_from_fnu(self):
fluxd = 6.161081515869728 * u.mJy
nu = 2.998e14 / 11.7 * u.Hz
aper = 1 * u.arcsec
eph = dict(rh=1.5 * u.au, delta=1.0 * u.au)
S = 1.711e14 * u.Jy
afrho = Afrho.from_fluxd(nu, fluxd, aper, eph, S=S)
assert np.isclose(afrho.cm, 1000.0)
评论列表
文章目录