用python打开ccd相机_用python测量CCD图像

我正在尝试实现一个非常简单的天体测量代码。我已经手动在我的照片中找到了几个星星的坐标(RA/DEC和x/y像素)。

一切似乎都是直截了当的,但我还是得到了奇怪的结果,偏离了几度。在

我正在尝试求解我拍摄的一张CCD图像的板常数,在那里我用手找到了照片中的恒星坐标和位置,现在我想尝试找到(0,0)点的真实世界坐标。在

我希望有人能帮助我的代码或告诉我如何正确地做。

提前谢谢你!在

这是我的代码:import numpy as np

import os

def astrometry(star_pos, xpix, ypix, focallength, target_RA, target_DEC):

pi = np.pi

DegToRad = pi / 180

RadToDeg = 180 / pi

n = len(star_pos)

(target_RA, target_DEC) = (target_RA, target_DEC)

print(target_RA, target_DEC)

# 1) Obtain star coordinates in pixel and RA/DEC

x_pix = [row[0] for row in star_pos]

y_pix = [row[1] for row in star_pos]

ra_star = [row[2] for row in star_pos]

dec_star = [row[3] for row in star_pos]

# 2) Calculate the standard coordinates of the stars

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值