ApCorrPhase

class jwst.extract_1d.apply_apcorr.ApCorrPhase(*args, pixphase=0.5, **kwargs)[source]

Bases: ApCorrBase

Produce and apply aperture correction for input data with pixel phase.

Parameters:
*argstuple

Input arguments as defined in ApCorrBase.

pixphasefloat, optional

Pixel phase of the input data.

**kwargs

Additional parameters as defined in ApCorrBase.

Attributes Summary

size_key

Methods Summary

apply(spec_table[, use_tabulated])

Apply interpolated aperture correction value to source-related extraction results in-place.

approximate()

Generate an approximate function for interpolating APCORR values.

tabulate_correction(spec_table)

Tabulate the interpolated aperture correction value.

Attributes Documentation

size_key = 'size'

Methods Documentation

apply(spec_table, use_tabulated=False)[source]

Apply interpolated aperture correction value to source-related extraction results in-place.

Parameters:
spec_tableFITS_rec

Table of aperture corrections values from APCORR reference file.

use_tabulatedbool, optional

Use self.tabulated_correction to perform the aperture correction? Default is False (recompute correction from scratch).

approximate()[source]

Generate an approximate function for interpolating APCORR values.

Returns:
callable

The approximation function.

tabulate_correction(spec_table)[source]

Tabulate the interpolated aperture correction value.

Storing the values saves time when applying it later, especially if it is to be applied to multiple integrations.

Modifies self.tabulated_correction.

Parameters:
spec_tableFITS_rec

Table of aperture corrections values from APCORR reference file.