Hi Paul,
I assume that you have tried all the different 'options' in my Batch deBayer Script? It has been a while since I sued it, but I do remember all sorts of 'nasties' if the fundamental setup was not 'just right'.
You might want to look at the optiona available when you press the <deBayer Setup> button from the main GUI:-
In the first section, DeBayer Parameters, there is nothing much to be gained by changing the colour-conversion array from "Theorectical_1" to any other method. In the new versions of PI, the BackgroundNeutralisation and ColourCorrection processes are now powerful enough to void any attempts at colour correction 'during' the DeBayer process.
The same argument can be applied to the third section as well - especially the colour correction curve (which, in any case, requires that you have created an appropriate curve for YOUR camera). I would therefore recommend that you un-tick ALL the boxes in this section whilst we try to identify any other problems - this is now actually very much the best way forward, as ImageIntegrtaion within PixInsight is FAR, FAR, FAR more powerful than my trivial attempts at 'intensity matching' within the script.
Which just leaves the 'middle section' of this part of the GUI.
Here I am giving you the option of determining 'where' on your CCD pixel-grid the actual CFA 'starts'. And, there are EIGHT possible start points - one for each location on a two-column by four-row CFA array. Now, this was the 'key' to my deBayer approach - as, from what I could tell at the time, no other package was providing this level of flexibility. I now know that Nebulosity 'does', but - if this was available at the time I needed it - it was buried in an illogical menu location that I was not able to find (and remains there even to this day!!!).
What I recommend is that you, somehow, obtain a DAYLIGHT exposure of a bright and colourful still-life scene. Yes, I know that British Winter Time is upon us already - so 'bright and colourful' doesn't come easy - but, be inventive. If you can't, then I have provided a TESTCARD that I used elsewhere on this Forum (have a look at
http://pixinsight.com/forum/index.php?topic=1997.0) which you can try and image, providing that you can find the best print size to suit whatever lens you can attach to your camera.
Then, having acquired a RAW frame of such a scene (or the test card) you should try deBayering the image using ALL EIGHT possible options - and decide which of these gives you the 'closest' result. Four of the options should be noticeably 'wrong' - there will be LOADS of horrible banding. Three of the remaining options will be better than the last one - but only one of the three options will really 'pop'.
You can ignore the X-flop and Y-flip options as well - I found that applying either, or both, of these options simply provided an identical 'group' of eight possible options as described above - only in a different 'order',
Once you have determined, empirically, which CFA-offset option seemed to be 'best', you can try applying this offset to a RAW astronomical image. You still will not have 'perfect colours' though - remember, BackgroundNeutralisation and ColourCorrection will sort that out for you later on.
Then, please let me know what X and Y offset values worked best for you, so that I can include them in the PJSR code for the future, so that any other users may be able to benefit. You could also try the same process (and X/Y offset values) in Nebulosity as well - I can't remember the convoluted menu path to get to these options, but I do remember it was something 'like' >File >Preferences, or some such.
Let us know if this helps.