specreduce
specreduce copied to clipboard
Rectify spectra to linear wavelength & spatial co-ordinates
After having a solution for an image, resample the image along a set of specified coordinates
cc @jdavies-st
I'm trying to work on this for my own work: I need to align ('rectify'?) a stack of spectra that move slightly over the course of the observation. I need to align them along the pixel columns to co-add them in wavelength and spatial coordinates.
Do you have any suggestions for techniques or other people's code that I could use? If I get it working, I'll submit it here for review + (?)PR.
Thank you
We have some work in progress by @chris-simpson; not sure whether that might be helpful at this stage.
Gemini's draft pipeline "primitives" at https://github.com/GeminiDRSoftware/DRAGONS/blob/spectroscopy/geminidr/core/primitives_spect.py include distortionCorrect
and linearizeSpectra
. I hope to adapt these to use gwcs
.