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:
  • refname (str) – Path to the APCORR reference file.

  • exptype (str) – EXP_TYPE of the input to the extract_1d step.

Returns:

A datamodel containing the reference file input.

Return type:

DataModel