To try to figure out the root cause of the problem I would need to have more details on your calibration process: which sequence of steps did you do for calibration/integration of bias/dark. There can be an error or issue in multiple places.
There are also a few threads on this subject, look if they can help.
And finally the (hopefully) helpful section, assuming that you calibrate the lights with some master flat/bias/dark.
First the context:
- In a classical (non optimized) calibration, your dark must have the same exposure and temperature than your lights and they are supposed to represent faithfully the additive 'dark current', which is more or less the same on all images. The calibration just subtract the master dark. You do not need to calibrate the darks for this operation.
- Other astro programs than PI generally uses the term 'optimized' calibration to use a dark made for a different exposure time (preferably longer) and the program scales it. The program uses the ratio of the effective and desired exposure time as a factor. This assumes that the dark current is proportional to the time of exposure. For this to work the bias must first be subtracted from the dark, as the scaling factor assume that a zero exposure result in zero values.
- In PI the optimization is more subtle. PI does not use the time or temperature to find the scaling factor. Instead it tries a bunch of factors and use the best one (I somewhat simplifies). How does it find the 'best' one? By minimizing an estimate of the noise in the resulting image. The details are explained somewhere, but I am not even sure I understand them fully. Anyhow it will print the factor on the console and you should always check if it is in an expected range (for example if you darks are around the same time and temperature of your images, the factor should be near 1 (say 0.8 to 1.2, but not 0.05 !). This methods requires a very good bias (low noise AND correct, this second aspect being often forgotten). It is recommended that you take at least twice the number of bias than dark. It assumes that the dark current is linearly proportional to some factor that it tries to discover. If it find that the best case is when not subtracting the dark (a scale factor 0 or very very small), then it do write the Warning: No correlation between the master dark and target frames. For all practical purpose you could as well not have bothered with darks for that image from PI perspective.
Now the possible problems. Beyond gross errors (taking the wrong image set or, like I did, taking the dark at home with a program that saved them in the other direction than the lights taken at the telescope) and operational errors (subtracting the bias twice from the darks and so on) the common issues are to be looked in the assumptions of the different methods.
- Do your original bias and dark faithfully represent a zero current and dark current? Look at the median of these images. On DLSR (and some CCD) you will see that median of the bias is the same or even higher than the median of dark. Subtracting the bias will truncate many values and make it not correlated (not proportional) to your lights. In that case you are better of not using optimize or you can play with PEDESTAL and the like.
- How does your master dark look? Does it have a lot of values at zero ? You may have the problem above, a double calibration or the noise of your dark make their low pixels lower than the bias (with very short darks - you probably do not need dark).
- Blink your dark and images. The hot pixels should largely be at the same place. Otherwise you are not working with the dark you expect.
- If it happens on a single image/channel, check that the image itself is correct
The PixInsight 'optimize' has some limitations. Because the assumption of linearity is not perfect, hot pixels are not so well corrected. However they are easy to remove at integration time (with dithering) or with CosmeticCorrection.
All rescaling will work better scaling down (using a long dark for a short exposure) than up (interpolation is more reliable than extrapolation).
It also optimize some noise characteristic, which is probably the best criteria for many good CCD. On a DSLR you may want to optimize the rejection of amplifier noise.
You can get rid of the message by disabling 'optimize', but first make sure that you understand if your dark is good or bad, or if the optimization does not help in your case.
-- bitli