ifu_extract1d
- jwst.extract_1d.ifu.ifu_extract1d(input_model, ref_file, source_type, subtract_background, bkg_sigma_clip, apcorr_ref_file=None, center_xy=None, ifu_autocen=False, ifu_rfcorr=False, ifu_rscale=None, ifu_covar_scale=1.0)[source]
Extract a 1D spectrum from an IFU cube.
- Parameters:
- input_modelJWST data model for an IFU cube (IFUCubeModel)
The input model.
- ref_filestr
File name for the extract1d reference file, in ASDF format.
- source_typestr
“POINT” or “EXTENDED”
- subtract_backgroundbool or None
User supplied flag indicating whether the background should be subtracted. If None, the value in the extract_1d reference file will be used. If not None, this parameter overrides the value in the extract_1d reference file.
- bkg_sigma_clipfloat
Background sigma clipping value to use to remove noise/outliers in background
- apcorr_ref_filestr or None, optional
File name for aperture correction reference file.
- center_xyfloat or None, optional
A list of 2 pixel coordinate values at which to place the center of the extraction aperture for IFU data, overriding any centering done by the step. Two values, in x,y order, are used for extraction from IFU cubes. Default is None.
- ifu_autocenbool, optional
Switch to turn on auto-centering for point source spectral extraction in IFU mode. Default is False.
- ifu_rfcorrbool, optional
Switch to select whether or not to apply a 1d residual fringe correction for MIRI MRS IFU spectra. Default is False.
- ifu_rscalefloat, optional
For MRS IFU data, a value for changing the extraction radius. The value provided is the number of PSF FWHMs to use for the extraction radius. Values accepted are between 0.5 to 3.0. The default extraction size is set to 2 * FWHM. Values below 2 will result in a smaller radius, a value of 2 results in no change to radius and a value above 2 results in a larger extraction radius.
- ifu_covar_scalefloat, optional
Scaling factor by which to multiply the ERR values in extracted spectra to account for covariance between adjacent spaxels in the IFU data cube.
- Returns:
- output_modelMultiSpecModel
This will contain the extracted spectrum.