star_checker.py 文件源码

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

项目:pynephoscope 作者: neXyon 项目源码 文件源码
def prepare(self, path, star_finder):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore', AstropyWarning)
            self.calibration.selectImage(path)

        self.names, self.vmag, alt, az = self.calibration.catalog.filter(Configuration.min_alt * u.deg, Configuration.max_mag)

        altaz = np.array([alt.radian, az.radian]).transpose()

        self.pos = np.column_stack(self.calibration.project(altaz))

        self.finder = star_finder

        self.image = cv2.imread(path)

        self.finder.setImage(self.image)

        self.altaz = np.array([alt.degree, az.degree]).transpose()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号