sofia_redux.spectroscopy: Spectroscopic Algorithms for SOFIA Pipelines¶
The sofia_redux.spectroscopy
package contains supporting algorithms
and helper functions for spectroscopic data reduction pipelines.
Reference/API¶
sofia_redux.spectroscopy.adjustguesspos Module¶
Functions¶
|
Adjust the guess positions via cross-correlation |
sofia_redux.spectroscopy.atmosdisp Module¶
Functions¶
|
Compute the atmospheric dispersion relative to wave0 |
sofia_redux.spectroscopy.binspec Module¶
Functions¶
|
Bin a spectrum between lmin and lmax with bins delta wide |
sofia_redux.spectroscopy.combflagstack Module¶
Functions¶
|
Combine bit-set flag arrays. |
sofia_redux.spectroscopy.earthvelocity Module¶
Functions¶
|
Find the radial LSR velocity towards sky coordinates. |
|
Calculate the Cartesian velocity of the Sun. |
|
Provide velocities of the Earth towards a celestial position. |
sofia_redux.spectroscopy.extinction_model Module¶
Classes¶
|
Extinction model for de-reddening spectra. |
Class Inheritance Diagram¶
digraph inheritanceec931576a8 { bgcolor=transparent; rankdir=LR; size=""; "ExtinctionModel" [URL="../../api/sofia_redux.spectroscopy.extinction_model.ExtinctionModel.html#sofia_redux.spectroscopy.extinction_model.ExtinctionModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,margin=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Extinction model for de-reddening spectra."]; }sofia_redux.spectroscopy.extspec Module¶
Functions¶
|
Fit background to a single column. |
|
Extracts spectra from a rectified spectral image. |
sofia_redux.spectroscopy.findapertures Module¶
Functions¶
|
Determine the position of the aperture(s) in a spatial profile. |
sofia_redux.spectroscopy.findorders Module¶
Functions¶
|
Determines the position of the order(s) in a spectral image |
sofia_redux.spectroscopy.flats Module¶
Classes¶
|
|
|
|
|
Class Inheritance Diagram¶
digraph inheritanceab506919f4 { bgcolor=transparent; rankdir=LR; size=""; "Flat" [URL="../../api/sofia_redux.spectroscopy.flats.Flat.html#sofia_redux.spectroscopy.flats.Flat",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,margin=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "FlatBase" -> "Flat" [arrowsize=1.2,arrowtail=empty,dir=back,style="setlinewidth(0.5)"]; "FlatBase" [URL="../../api/sofia_redux.spectroscopy.flats.FlatBase.html#sofia_redux.spectroscopy.flats.FlatBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,margin=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "FlatInfo" [URL="../../api/sofia_redux.spectroscopy.flats.FlatInfo.html#sofia_redux.spectroscopy.flats.FlatInfo",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,margin=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "FlatBase" -> "FlatInfo" [arrowsize=1.2,arrowtail=empty,dir=back,style="setlinewidth(0.5)"]; }sofia_redux.spectroscopy.fluxcal Module¶
Functions¶
|
Get pixel shift between flux and correction curve. |
|
Calibrate and telluric correct spectral flux. |
sofia_redux.spectroscopy.getapertures Module¶
Functions¶
|
Determine aperture radii for extraction. |
sofia_redux.spectroscopy.getspecscale Module¶
Functions¶
|
Determines the scale factors for a _stack of spectra |
sofia_redux.spectroscopy.interpflagspec Module¶
Functions¶
|
Performs a linear interpolation on a bit-set flag array |
sofia_redux.spectroscopy.interpspec Module¶
Functions¶
|
Perform a linear interpolation and propagate errors |
sofia_redux.spectroscopy.mergespec Module¶
Functions¶
|
Combine two spectra into a single spectrum |
sofia_redux.spectroscopy.mkapmask Module¶
Functions¶
|
Constructs a 2D aperture mask. |
sofia_redux.spectroscopy.mkspatprof Module¶
Functions¶
|
Construct average spatial profiles. |
sofia_redux.spectroscopy.nlambda Module¶
Functions¶
|
Compute the real part of the refractive index of air. |
sofia_redux.spectroscopy.radvel Module¶
Functions¶
|
Calculate the expected extrinsic radial velocity wavelength shift. |
sofia_redux.spectroscopy.readflat Module¶
Functions¶
|
Reads a Spextool flat field FITS image |
sofia_redux.spectroscopy.readspec Module¶
Functions¶
|
Reads a SpeX spectral FITS image |
sofia_redux.spectroscopy.readwavecal Module¶
Functions¶
|
Read a Spextool wavecal file |
sofia_redux.spectroscopy.rectify Module¶
Functions¶
|
Construct average spatial profiles over multiple orders |
sofia_redux.spectroscopy.rectifyorder Module¶
Functions¶
|
Given arrays of x and y coordinates, interpolate to defined grids |
|
Trim rows and columns from the edges of the coordinate arrays. |
|
Construct average spatial profiles for a single order |
|
Update a FITS header with spectral WCS information. |
|
Construct average spatial profiles for a single order |
sofia_redux.spectroscopy.rieke_unred Module¶
Functions¶
|
De-redden a flux vector. |
sofia_redux.spectroscopy.scaleimgs Module¶
Functions¶
|
Scales a set of images to the median flux level of all images |
sofia_redux.spectroscopy.si_index_of_refraction Module¶
Functions¶
|
Return the index of refraction for Si |
sofia_redux.spectroscopy.simwavecal2d Module¶
Functions¶
|
Simulate a 2D wavecal file using pixels for wavelengths |
sofia_redux.spectroscopy.smoothres Module¶
Functions¶
|
Smooth a data to a constant resolution |
sofia_redux.spectroscopy.speccor Module¶
Functions¶
|
Correct a _stack of spectra for shape differences |
sofia_redux.spectroscopy.tracespec Module¶
Functions¶
|
Trace spectral continua in a spatially/spectrally rectified image. |
sofia_redux.spectroscopy.wave_calibration Module¶
Functions¶
|
Retrieve wave calibration |
Classes¶
|
Initializes basic class |
|
Initializes basic class |
|
Initializes basic class |
|
Initializes basic class |
|
Initializes basic class |
|