glenco / lensed

forward reconstruction of lenses and sources from strong lensing observations
http://glenco.github.io/lensed/
MIT License
5 stars 3 forks source link

FITS extension names and weight map output #227

Closed ntessore closed 8 years ago

ntessore commented 8 years ago

This PR gives names to the individual FITS extensions that Lensed outputs and adds a new extension that prints the weight map used in the reconstruction.

The image extensions now written are the following:

  1. IMG, the reconstructed image,
  2. RES, the residuals of the reconstruction,
  3. RAW, the raw model pixels before application of a PSF,
  4. ERR, error estimates from the pixel integration, and
  5. WHT, the weight map used for the reconstruction.

Furthermore, there is an empty primary HDU that records the version of Lensed used to create the file, and the date the file was generated. It would be possible to store more information there, e.g. the input configuration used for the reconstruction.