本文整理匯總了Python中atpy.Table.log10jnu方法的典型用法代碼示例。如果您正苦於以下問題:Python Table.log10jnu方法的具體用法?Python Table.log10jnu怎麽用?Python Table.log10jnu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類atpy.Table
的用法示例。
在下文中一共展示了Table.log10jnu方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: glob
# 需要導入模塊: from atpy import Table [as 別名]
# 或者: from atpy.Table import log10jnu [as 別名]
import pylab as plt
from atpy import Table
prefix = "/Users/ncrighton/Projects/MPIA_QSO_LBG/Cloudy/J0004/comp1"
name, = glob(prefix + "/uvb_k04/*tilted*tbl")
fig1 = pl.figure(figsize=(7.1, 4.7))
fig1.subplots_adjust(left=0.15, bottom=0.15, top=0.96, right=0.96)
ax = fig1.add_subplot(111)
N0 = -21
ref = Table(name)
ind = ref.energy.searchsorted(0.99)
ref.log10jnu = ref.log10jnu - ref.log10jnu[ind] + N0
ax.plot(np.log10(ref.energy), ref.log10jnu - ref.log10jnu[ind] + N0, "-", color="k")
xvals = np.log10((IP * u.eV).to(u.Ry).value)
y = np.interp(xvals, np.log10(ref.energy), ref.log10jnu)
from barak.absorb import split_trans_name
xdiff = np.diff(xvals)
direction = ["up"]
previousdown = False
for i in xrange(len(xvals) - 1):
if xdiff[i] < 0.02 and not previousdown: