readflat¶
- sofia_redux.spectroscopy.readflat.readflat(filename)[source]¶
Reads a Spextool flat field FITS image
Reads data and metadata from an FSpextool-processed flat field FITS image.
- Parameters:
- filenamestr
Filename for the processed flat image
- Returns:
- dict
"image"
(numpy.ndarray) -> (nrow, ncol) image array
"variance"
(numpy.ndarray) -> (nrow, ncol) variance array
"flags"
(numpy.ndarray) -> (nrow, ncol) flags array
"ncols"
(int) -> Number of columns in the image
"nrows"
(int) -> Number of rows in the image
"modename"
(str) -> The observing mode of the flat
"slth_pix"
(float) -> The approximate slit height in pixels
"slth_arc"
(float) -> The slit height in arcseconds
"sltw_pix"
(float) -> The slit width in pixels
"sltw_arc"
(float) -> The slit width in arcseconds
"ps"
(float) -> The plate scale in arcseconds per pixel
"rp"
(int) -> The resolving power
"norders"
(int) -> Number of orders on the array
"orders"
(list of int) -> The order numbers
"edgecoeffs"
(numpy.ndarray) -> (norders, 2, degree+1) array of polynomial coefficients which define the edges of the orders. edgecoeffs[0,0,:] are the coefficients of the bottom edge of the first order and edgecoeffs[0,1,:] are the coefficients of the top edge of the first order. Note that these coefficients are in the order required by numpy.poly1d (opposite order to IDL style coefficient ordering).
"xranges"
(numpy.ndarray) -> (norders, 2) array of columns numbers between which the orders are completely on the array.
"rms"
(numpy.ndarray) -> (norders,) An array of RMS deviations for each order
"rotation"
(int) -> The rotation direction (not angle) for
sofia_redux.toolkit.image.adjust.rotate90
."edgedeg"
(int) -> The degree of the edge coefficients