ApCorrBase
- class jwst.extract_1d.apply_apcorr.ApCorrBase(input_model, apcorr_table, sizeunit, location=None, slit_name=None, **match_kwargs)[source]
Bases:
ABCBase class for aperture correction classes.
Create and apply an aperture correction.
- Parameters:
- input_model
JwstDataModel Input data model used to determine matching parameters.
- apcorr_table
FITS_rec Aperture correction table data from APCORR reference file.
- sizeunitstr
Units for the aperture correction data “row” values (assuming the aperture correction is a 2D array).
- locationtuple or None, optional
Reference location (RA, Dec) used to calculate the pixel scale used in converting values in arcsec to pixels. Default is None, however, if the input reference data contains size/radius data in units of arcsecs, a location is required.
- slit_namestr, optional
For
MultiSlitModel, the name of the slit being processed.- **match_kwargs
Additional keywords for matching data to reference table entries.
- input_model
- Raises:
- ValueError
If
apcorr_row_unitsare not supplied and units are undefined inapcorr_tablecolumns, or if the inputapcorr_tablecannot be reduced to a single row based on match criteria frominput_model.
Attributes Summary
Size key for the reference.
Methods Summary
apply(spec_table)Apply interpolated aperture correction to extraction results in-place.
Generate an approximate aperture correction function based on input data.
Attributes Documentation
- match_pars = {'MIRI': {'LRS': {'subarray': ['name']}, 'WFSS': {'subarray': ['name']}}, 'NIRCAM': {'NRC_GRISM': {'instrument': ['filter', 'pupil']}, 'WFSS': {'instrument': ['filter', 'pupil']}}, 'NIRISS': {'WFSS': {'instrument': ['filter', 'pupil']}}, 'NIRSPEC': {'BRIGHTOBJ': {'instrument': ['filter', 'grating']}, 'FIXEDSLIT': {'instrument': ['filter', 'grating']}, 'MSASPEC': {'instrument': ['filter', 'grating']}}}
- size_key
Size key for the reference.
The value is intended to index into
self.reference. Implementations of this abstract class should define this property as appropriate.
Methods Documentation