简体   繁体   English

APLpy坐标更改为像素值

[英]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.

相关问题 根据像素颜色的变化定位坐标 - Locate the coordinate based on change in pixel color APLpy / matplotlib:协调EPS质量图的网格Alpha级别 - APLpy/matplotlib: Coordinate grid alpha levels for EPS quality figure 如何从以下 function 返回像素坐标值? - How do I return pixel coordinate values from the following function? 在给定像素值而不是坐标的情况下,如何通过着色值更改灰度像素值 - How can I change a grayscale pixel value by a colored value given the value of the pixel not the coordinate 获取图像中每个像素的坐标 - get coordinate of each pixel in an image 蟒蛇| 我如何通过坐标从 geotiff 地图中获取像素值 - Python | How do i get the pixel values from an geotiff map by coordinate Python Bokeh - 可以将数据坐标和像素坐标混合用于绘图 - Python Bokeh - Possibility to use a blend of data coordinate and pixel coordinate for plot 如何在没有for循环的情况下更改python(opencv)中的像素值 - how to change pixel values in python (opencv) without for loops 为什么cv2.imread会更改像素值? - why does cv2.imread change the pixel values? 在阈值区域上循环不会改变像素值 - Looping over the threshold area does not change pixel values
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM