Hi,
I tried to do the same without using darks during the flat calibration. The result is not really different. I also tried to use different options (with or without bias/dark/flat calibration/optimazation) when calibrating the light frames. Either no improvement, or even worse results. The integrated bias/dark/flat frames seem to be reasonable, see debayered and strongly STFed versions it the screenshot below.
I am getting the feeling that this may be related to the use of "Create RAW Bayer" image in the DSLR_RAW format settings. When reading RAW/CR2 frames in this format, for each pixel either R or G or B are set, the other values being zero. As a consequence, this is also true for the bias/dark/flat/light frames. I get the feeling that the calibration process is thorughly irritated by this.
I tried to reproduce what Image Calibration does, using ($T-bias-dark)/flat as a fomula. As long as I used the images created with "Create RAW Bayer", the results were always unusuble, no matter if I used Rescale Result or with int or float as result. I guess the reason is the numerous divisions by 0 caused by the flat frame. When going to monochrome versions generated with max($T[0],$T[1],$T[2]]), things improved a lot.
Any comments anyone?
Georg