In previous versions, to get the stellar continuum you need to compute STCNT = MODEL - EMLINE - EMLINE_BASE . In the HYB binning scheme, you have to construct this model if you want to compare the model to the binned spectra in the model cube (FLUX extension). The associated mask for the stellar-continuum fit is in MASK. The model determined from the combined fit is just MODEL; to compare data to model for the HYB scheme, you have to use the spectra in the DRP file. The associated combined fit mask is then in EMLINE_MASK. Just to emphasize, the previous model/mask pairings were MODEL/EMLINE_MASK and (MODEL-EMLINE-EMLINE_BASE)/MASK.
I have changed the relevant extensions to MODEL, MASK, EMLINE, STCNT, STCNT_MASK. The stellar continuum and its relevant mask are provided directly and named appropriately, STCNT and STCNT_MASK; the combined model and its mask are MODEL and MASK; and EMLINE has the same meaning. So now, the model/mask pairings are MODEL/MASK and STCONT/STCONT_MASK. This is much more clear.
I've also fixed some mask issues, particularly for the emission-line module. There were some inconsistencies in what ppxf was masking and what was being reported by the DAP. Given the rearrangement of the masks above, I've also effectively removed the ELFAILED and ELIGNORED masks from the model cube file, replacing them with simply FITFAILED and FITIGNORED. I can do this because there's no longer any ambiguity for whether the pixel was flagged in the stellar-continuum-fitting module or the emission-line-fitting module. Any fit-related bit in the MASK extension is associated with the emission-line fitting module, and any fit-related bit in the STCNT_MASK is associated with the stellar-continuum fitting module.
This changes the extensions of the Model cube.
In previous versions, to get the stellar continuum you need to compute
STCNT = MODEL - EMLINE - EMLINE_BASE
. In theHYB
binning scheme, you have to construct this model if you want to compare the model to the binned spectra in the model cube (FLUX
extension). The associated mask for the stellar-continuum fit is inMASK
. The model determined from the combined fit is just MODEL; to compare data to model for theHYB
scheme, you have to use the spectra in the DRP file. The associated combined fit mask is then inEMLINE_MASK
. Just to emphasize, the previous model/mask pairings wereMODEL
/EMLINE_MASK
and(MODEL-EMLINE-EMLINE_BASE)
/MASK
.I have changed the relevant extensions to
MODEL
,MASK
,EMLINE
,STCNT
,STCNT_MASK
. The stellar continuum and its relevant mask are provided directly and named appropriately,STCNT
andSTCNT_MASK
; the combined model and its mask areMODEL
andMASK
; andEMLINE
has the same meaning. So now, the model/mask pairings areMODEL
/MASK
andSTCONT
/STCONT_MASK
. This is much more clear.I've also fixed some mask issues, particularly for the emission-line module. There were some inconsistencies in what
ppxf
was masking and what was being reported by the DAP. Given the rearrangement of the masks above, I've also effectively removed theELFAILED
andELIGNORED
masks from the model cube file, replacing them with simplyFITFAILED
andFITIGNORED
. I can do this because there's no longer any ambiguity for whether the pixel was flagged in the stellar-continuum-fitting module or the emission-line-fitting module. Any fit-related bit in theMASK
extension is associated with the emission-line fitting module, and any fit-related bit in theSTCNT_MASK
is associated with the stellar-continuum fitting module.