Jeremy Sanders <jeremy@...> writes:
 
> This is tricky as Veusz tries to preserve the 2D grid spacing (WCS) 
> information when possible. I should add a WCS option to the fits import 
> dialog.
> 
> So you can either
> 1. Remove the WCS from the fits file by deleting the various header keywords
> 
> 2. Do something kludgy to create a new 2D dataset based on the imported 
> fits data. Unfortunately Veusz tries to preserve this information. You 
> can import your data, then go to Data->Create 2D. Choose from X,Y,Z 
> values based on 1D datasets. For the expressions use something like
> 
> X:       indices(img.shape)[0].ravel()
> Y:       indices(img.shape)[1].ravel()
> Z:       img.ravel()
> 
> Where img is your dataset name. You might have to swap the X and Y 
> expressions here.
> 


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?
  Pat Durrell






_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à