[英]APLpy coordinate change to pixel values
有谁知道如何将坐标值更改为APLpy中适合文件图像的像素值?
The only way I could think of is just pass in the data-array instead of the fits file. 我能想到的唯一方法就是传递数据数组而不是fits文件。 If it has no WCS information it must operate in pixel-space.
如果没有WCS信息,则必须在像素空间中操作。
from astropy.io import fits # or import pyfits
with fits.open(filename) as hdus:
data = hdus[0].data
f1 = aplpy.FITSFigure(data)
# ... whatever you want to do thereafter.
I haven't used APLpy maybe there is a better way but I haven't found anything in the documentation. 我没有使用过APLpy,也许有更好的方法,但是我没有在文档中找到任何东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.