from astropy.constants import h, c
from astropy import units as u

# Calculate hc in keV*Å
hc = (h * c).to(u.keV * u.angstrom)
print(hc)

hc = 12.398419739640715 Angstrom keV


from astropy import units as u
(1 * u.erg / u.cm**2 / u.s).to(u.mJy, equivalencies=u.spectral_density(1. * u.keV))

1 erg/cm^2/s = 413566769.6923858 mJy @ 1 keV

  1. 忽略了光谱形状(如谱指数)
  2. 不考虑带宽(能量段),是一个点状转换
  3. 是一种“等价的点值转换”而不是“积分转换”
  4. 只需要指定一个能量(或频率)点,不需要谱指数或能量段宽度
转载请注明出处