shrinkwrap3D.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:CoherentXrayImaging 作者: susannahammarberg 项目源码 文件源码
def crystal():
    # look at crystal and their ffts
    crystal3D = np.zeros((201,201,201), dtype= np.int32)
    crystal3D_fourier = np.zeros((201,201,201), dtype= np.complex64)

    dx = 1

    for row in range(60,140,dx):
        for col in range(80,120,dx):
            for time in range(90,110,dx):
                crystal3D[row,col,time] = 1

    crystal3D_fourier = fft.fftshift(fft.fftn(crystal3D))
    #del crystal3D
    diffPattern3D = (abs(crystal3D_fourier)**2)
    del crystal3D_fourier
    return diffPattern3D
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号