On 17/04/13 18:25, Patrick Durrell wrote:
Perhaps a related question, but I am using VEUSZ to read in a FITS file, and
the WCS information is not correctly incorporated -- I get pixel values and
intensity, and not RA/DEC. How can I go about extracting the X and Y pixel
locations (and intensity values) from the 2D file (and placing them into 1D
vectors) so that I can (manually) create new RA and DEC arrays to use for
plotting purposes?
I'm not quite sure what you mean. Do you want to plot a 2D dataset from
a fits file with your own coordinates?
You can manually create a 2d dataset in the command interface doing
something like
import pyfits
f = pyfits.open('example.fits')
SetData2D('dataset', f[0].data, xrange=(0.,1.,), yrange=(0.,1.))
Where 0 and 1 are the minimum and maximum values for the pixel centres
on the axis.
Jeremy
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss