Nat February 2016

APLpy coordinate change to pixel values

Does anyone know how to change the coordinate values to the pixel values of a fits file image in APLpy?


MSeifert February 2016

The only way I could think of is just pass in the data-array instead of the fits file. If it has no WCS information it must operate in pixel-space.

from import fits # or import pyfits
with 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.

Post Status

Asked in February 2016
Viewed 3,005 times
Voted 5
Answered 1 times


Leave an answer