Some necessary FITS keywords are not written to the FITS header of flat frames by SGP (v4.2.0.942). The following keywords are missing:
BAYERPAT
XBAYROFF
YBAYROFF
FOCUSER
FOCPOS
TELESCOP
FOCALLEN
plus 20 other keywords that are not relevant in this case.
The missing FITS keywords BAYERPAT, XBAYROFF and YBAYROFF effectuate that PixInsight’s WeightedBatchPreprocessing (WBPP) script cannot automatically recognize the flat frames as CFA data. I consider FOCPOS and FOCALLEN as important for flat frames as well.
Please include the listed 7 FITS keywords in the FITS header of flat frames.
I’ll see about adding them. I know we won’t have the Bayer info available for all cameras. There is really no standard for what FITs keywords should be included. They’re almost all optional and at the discretion of whomever is writing the file.
SGP is doing well in terms of FITS header for light frames, therefore I guess it must be a small step to also include the listed keywords for flat frames.
Oops - this is embarassing. I apologize for my mistake.
It turned out (as you supposed) that I had not set the bayer pattern in my (separate) sequence for capturing flat frames. This sequence did not contain telescope and focusser either, so SGP is doing what it is supposed to do. I am sorry.