Observation: After the fact, the result is obvious but should the software handle the case?
Case: I took several shot of M47 a few weeks ago spread in different days at different times.
In one of the series, the data was obtained after M47 was past the Meridian so the data was rotated 180°.
Rookie error (presumably!) I rotated the corrected but still bayered FITS.
Debayered the whole set. Did the alignment, stacking, ... blah blah blah and the stars had the wrong color. What should have been a blue star was red and vice-versa.
So I figured it out by processing each data set independently. The corrupted one was the one I had rotated. Aha! The debayering step. The color matrix was wrong. I had used the default GBRG and should have used (for that set only) GRBG.
But... come to think of it... and since we are using computers... and astronomical software, I was thinking that this should be taken care of automatically... Are there keywords in the FIT linguistic which would indicate the proper debayering matrix to apply and if so, when a frame is rotated, be changed appropriately?
I'd like to keep my data bayered as it takes less physical room on disk. And after a while I won't remember which data got rotated or not and this is a problem when I want to stack data gathered over several years.
So, to sum, should I debayer my (dark-bias-flat corrected) data ASAP and store it that way to keep my then "raw" data? What do you guys do for that scenario?