DataGonio.py 文件源码

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

项目:chxanalys 作者: yugangzhang 项目源码 文件源码
def get_q_per_pixel(self):
        '''Gets the delta-q associated with a single pixel. This is computed in
        the small-angle limit, so it should only be considered approximate.
        For instance, wide-angle detectors will have different delta-q across
        the detector face.'''

        if self.q_per_pixel is not None:
            return self.q_per_pixel

        c = (self.pixel_size_um/1e6)/self.distance_m
        twotheta = np.arctan(c) # radians

        self.q_per_pixel = 2.0*self.get_k()*np.sin(twotheta/2.0)

        return self.q_per_pixel


    # Maps
    ########################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号