read_apcorr_ref

jwst.extract_1d.extract.read_apcorr_ref(refname, exptype)[source]

Read the apcorr reference file.

Determine the appropriate DataModel class to use for an APCORR reference file and read the file into it.

Parameters:
refnamestr

Path to the APCORR reference file.

exptypestr

EXP_TYPE of the input to the extract_1d step.

Returns:
DataModel

A datamodel containing the reference file input.