ApCorrRadial

class jwst.extract_1d.apply_apcorr.ApCorrRadial(input_model, apcorr_table, location=None)[source]

Bases: ApCorrBase

Aperture correction class for spectra produced from an extraction aperture radius.

Parameters:
input_modelJwstDataModel

Input data model used to determine matching parameters.

apcorr_tableFITS_rec

Aperture correction table data from APCORR reference file.

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.

Methods Summary

apply(spec_table)

Apply interpolated aperture correction to extraction results in-place.

approximate()

Implement the approximation method.

find_apcorr_func(iwave, radius_ifu)

Interpolate aperture correction onto a specific wavelength and radius.

match_wavelengths(wavelength_ifu)

Interpolate aperture correction and radial size onto input wavelengths.

Methods Documentation

apply(spec_table)[source]

Apply interpolated aperture correction to extraction results in-place.

Parameters:
spec_tableFITS_rec

Table of aperture corrections values from apcorr reference file.

approximate()[source]

Implement the approximation method.

Has no effect for this class. The base class requires that it be implemented, but the equivalent functionality for this class is performed in find_apcorr_func().

find_apcorr_func(iwave, radius_ifu)[source]

Interpolate aperture correction onto a specific wavelength and radius.

The correction is appended to self.apcorr_correction.

Parameters:
iwaveint

Index for the wavelength.

radius_ifufloat

Radius to use.

match_wavelengths(wavelength_ifu)[source]

Interpolate aperture correction and radial size onto input wavelengths.

Interpolated correction and size values are stored in self.apcorr and self.size.

Parameters:
wavelength_ifundarray

Input wavelength array.