wavelength.py 文件源码

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

项目:goodman 作者: soar-telescope 项目源码 文件源码
def predicted_wavelength(self, pixel):
        """Find the predicted wavelength value for a given pixel

        It is possible to estimate the wavelength position of any pixel given
        the instrument configuration.

        Notes:
            The equations are not precise enough so the value returned here has
            to be used as an estimate only.

        Args:
            pixel (int): Pixel number.

        Returns:
            Wavelength value in angstrom.

        """
        # TODO (simon): Update with bruno's new calculations
        alpha = self.alpha
        beta = self.beta
        # pixel_count = self.pixel_count
        binning = self.serial_binning

        grating_frequency = self.grating_frequency

        wavelength = 10 * (1e6 / grating_frequency) * \
                     (np.sin(alpha * np.pi / 180.) +
                      np.sin((beta * np.pi / 180.) +
                             np.arctan((pixel * binning - 2048) *
                                       0.015 / 377.2)))
        return wavelength
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号