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 astropy.io import fits # or import pyfits
with fits.open(filename) as hdus:
data = hdus.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.
Asked in February 2016
Viewed 3,005 times
Answered 1 times
Leave an answer
Quote of the day: live life