specreduce
specreduce copied to clipboard
Tools for the reduction of spectroscopic observations from Optical and NIR instruments
(incomplete draft, just look at tracing and background for now)
This PR adds functions to find and centroid lines in a calibration, e.g. arc lamp, spectrum and then match pixel positions to wavelengths using an input WCS. More work is...
The following should return flux in DN, not DN**2: `img = np.tile((np.arange(1., 13)), (13, 1)) * u.DN` `trace = FlatTrace(img, 2)` `background = Background(img, trace)` `background.bkg_image()`
The "Spectro-Perfectionism" technique described by Bolton & Schlagel (2010; https://iopscience.iop.org/article/10.1086/651008/meta) provides a way to much more precisely extract 1D spectra from 2D data. It is correct for any 2D PSF,...
This issue is meant to be a catchall issue to summarize meetings and internal tickets at Space Telescope on the topic of improving masks / treatment of NaNs in data...
This PR implements the [Kelson (2003)](https://www.jstor.org/stable/10.1086/375502) technique for subtracting the sky background from 2D spectra without the need for rectification or interpolation.
Currently, this block is not tested: https://github.com/astropy/specreduce/blob/aa4ceabbfb69595ac58c2ff29a220aabe1e37f68/specreduce/fluxcal.py#L262 Since it is plotting, you might want to write a test where you compare the image, like how `astropy.visualization` does it. That would...
We should add a specreduce recipe to conda-forge
While it is not used internally yet, it will eventually be required. When it is added, some tests should be added to make sure that cases where `astropy.wcs` is used...
Algorithms exist to optimally subtract the sky background from 2D spectra that account for optical distortions and other effects. These effects create non-linear relations between spatial/wavelength coordinates and pixel-based detector...