Spectral utilities#
excalibuhr.utils Module#
Functions#
|
Perform weighted least-square polynomial fit, iterratively cliping pixels above a certain sigma threshold |
|
Convolve the input spectrum to a lower resolution with a Gaussian kernel. |
|
Convolve the input spectrum to a lower resolution with a Voigt kernel, i.e. the convolution of a Gaussian and a Lorentzian kernel. |
|
apply flat fielding |
|
combine multiple images or spectra with error propogation |
|
tomasstolker/pycrires Internal method for creating a configuration file with default values for a specified EsoRex recipe. |
|
calculate the detector shotnoise map |
|
Collpase 2D image along the cross-dispersion direction in an order-by-order basis. |
|
Extract 1D spectra from detector images |
|
apply flat fielding |
|
cost function for optimizing wavelength solutions |
|
generate lamp model spectra for specific wavelength settings from linelist |
|
Get the PHOENIX stellar model. |
|
Look up the teff, vsini, and rv of a star by name |
|
Cut out individual orders from the detector image |
|
Method for calibrating spectral shape using standard star observations. |
|
normalize master flat frame and extract balze function |
|
measure the centers of lines by fitting guassian profiles |
|
A wrapper of molecfit for telluric correction |
|
Optimal extraction based on Horne(1986). |
|
Trace the spectral orders |
|
locate the peak signal along the slit |
|
Correct for readout noise artifacts that appear like vertical strips by subtracting the inter-order average value in each column on detector. |
|
Remove sky background in a 2D detector image. |
|
[EXPERIMENTAL!] Remove starlight contamination at the position of the widely separated companion in a 2D detector image. |
|
Adapted from Carvalho & Johns-Krull (2023). |
|
Trace the curvature of the slit and determine the wavelength solution |
|
evaluate slit curvature polynomials given the pixel grid |
|
Correct for the slit-tilt by interpolating to a pixel-grid |
|
evaluate trace polynomials given the pixel grid |
|
Correct for the curvature of traces by interpolating to a pixel-grid pivoting on the middle of the detector |
|
combine dark frames; generate bad pixel map and readout noise frame |
|
combine flat frames; generate bad pixel map |
|
Method for refining wavelength solution using a quadratic polynomial correction Poly(p0, p1, p2). |