In [1]:
# import
from xastropy.igm import cuba as xcuba # Location may move
In [104]:
reload(xcuba)
cuba = xcuba.CUBA()
cuba
Out[104]:
In [59]:
# Redshifts
cuba.z[0:10]
Out[59]:
In [60]:
# Wavelengths
cuba.wave[0:10]
Out[60]:
In [61]:
# Jnu
cuba.Jnu[0:10,0]
Out[61]:
In [62]:
%matplotlib inline
In [107]:
cuba.plot(2.1,xlim=(0.1,10))
In [113]:
jnu = cuba.zinterp_jnu(2.1)
jnu[0:5]
Out[113]:
In [119]:
phi = cuba.phi(2.1)#,min_energy=50*u.eV)
print('Ionizing flux = {:g}'.format(phi))
In [118]:
print(phi)
In [ ]: