def create_cube(df, bins, bin_range):
_, x_edges, y_edges = np.histogram2d(
df.alt, df.az, bins=bins, range=bin_range)
slices = []
N = 100
for df in np.array_split(df, N):
H, _, _ = np.histogram2d(df.alt, df.az, bins=[
x_edges, y_edges], range=bin_range)
slices.append(H)
slices = np.array(slices)
return slices
cta_transient_analysis.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录