Changes

Using QL outputs

853 bytes added, 08:17, 22 December 2016
Created page with "== Overview == The QL Tool produces quick-look products, but there are some straightforward steps allowing users to use these as a starting point for their science quality re..."
== Overview ==

The QL Tool produces quick-look products, but there are some straightforward steps allowing users to use these as a starting point for their science quality reductions

=== Important Notes ===
In going from the raw 2D images to the 1D extractions produce by the QL Tool:
* The x axis is flipped so that increasing wavelength runs in the same direction as increasing x
* The spectra are then trimmed to remove overscan, etc.
The exact values for these are stored in:
/usr/local/etc/qlgui/pars.json<br />

"badMax0": 98, <br />

"badMin1": 2145, <br />

in python 0-based numbering.<br />


i.e. in python, to reproduce the same transformation:<br />

from astropy.io import fits<br />
im2D = fits.getdata('image.fits')<br />

im2D = im2D[:,-:] # flip x<br />

im2D = im2D[:,98:2145] # trim<br />

fits.writeto('outimage.fits',im2D)<br />
118
edits