I double-checked how WBPP handles the BAYERPAT keyword: if a frame contains that keyword, then it assumes that it's a CFA image, disregarding the value.I did not use any keywords. I even tried to use some keywords at one point to see if I could override the behavior (it did not, so I abandoned the idea). I fully reset the WBPP script settings in my own troubleshooting, so the issue I described happens after simply loading Lights into it.
Re: my previous message, removing the BAYERPAT FITS headers resolved the issue — so I believe the WBPP script (on some level) is grouping images based on this and not only the criteria you listed.
I remember that the telescope system I used had some camera / software pipeline issues around the time I took the images with "BAYERPAT = 'INVALID'". More recent images (after those issues were fixed) correctly do not show this header. Under most circumstances, I'd imagine that an 'INVALID' Bayer pattern entry wouldn't be present in the headers, so this is most likely an edge case. But it sounds like it's still revealing some unexpected behavior in WBPP?
When the files are added by WBPP, every single file is associated with the information of being a CFA image or not, and grey images are never grouped together with CFA images, in calibration mode.
When you change the group's CFA checkbox, the change occurs at the group level but nothing changes on the file descriptor level, this means that original grey files get always separated from CFA ones in calibration mode and you'll always see two groups, disregarding that they both appear as grey or CFA.
The difference occurs in the post-calibration panel, where files are recombined accordingly to the group's property, so in post-calibration, files may get grouped together, disregarding their initial file descriptor settings saying that they were CFA or grey.
This confirms the behaviour you've reported:
- files with BAYERPAT=INVALID are considered CFA and get separated from the grey ones
- overriding the group settings marks the files as grey but does not group them together with the other grey ones
- removing the BAYERPAT from the FITS header makes the files being interpreted as grey and grouped together with the others
So, all works as expected