const
Active member
I know, it is recommended to start with exposures high enough to decisively push the background areas off zero. Indeed, if number of image pixels that are less than master dark pixels is not so high, like 1%, you won't notice the problem.
For various reasons I often shoot short subs. One is my cheap mount that can handle 15s unguided and 60s guided. Another is exposing for stars of bright DSO cores, I intentionally shoot 2s at F/2.
Recently I shot the Eagle at F/7 through 6nm Ha filter with ASI2600MM-P. 60×60s subs at gain 100 (~0.25e/DN) offset 32 (zero=320 of 16-bit DNs). Each sub has about 20% pixels less than zero. And it is not bad data! After careful integration I got quite good picture with fainter dust at the edges.
OK, back to the problem. If I calibrate with output pedestal left at 0, I get those 20% pixels clipped to zero. Say, statistics shows median value 4.0 DNs if the Unclipped is checked. Otherwise it says the median is 7.0 DNs. So far so good. What is the true median sky background level? I would argue, it is 4. If it is not obvious, I have other data sets shots at two different exposures in the same night interleaved. Unclipped medians are very much proportional to exposures. SubframeSelector measures Median as clipped, or 7. I don't know what else follows from that. Likely, SNR is skewed similarly. It turns out, SubframeSelector not only uses 'non-unclipped statistics'. It clips all pixels with values less than or equal to 1 DN.
I usually calibrate with output pedestal high enough to avoid any clipping. 200 DN is usually good. In SubframeSelector I set pedestal to 200 accordingly and it mostly works. Except wrong medians and some other stats. I mostly use stars shape metrics that are not that much affected, so it worked for some time until I noticed.
Back to the experiment with subs having 20% zeros. I also tried to calibrate them without output pedestal. So the subs have 20% true zeros. Next I ran PixelMath on them with '$T + 1/65534'. Now SubframeSelector with Pedestal=0 shows Median=5, which is 1 more than true median, fine. If I change that Pedestal to 1, it says Median is 7 now. Notice, 1/65534 is a bit more than 1 DN, which would be 1/65535. Otherwise it would not be enough to convince SubframeSelector to not clip the pixels. As I trick the SubframeSelector to compute the median differently, SNRWeight also changes significantly. Other metrics also change, but I have not played with them extensively to conclude if that is significant or not.
It is unclear whether this clipping behavior exists in other processes and how much it affects them. For example, star detection in StarAlignment and location estimate in ImageIntegration.
Is this behavior intentional? If yes, how should I work with my data correctly?
For various reasons I often shoot short subs. One is my cheap mount that can handle 15s unguided and 60s guided. Another is exposing for stars of bright DSO cores, I intentionally shoot 2s at F/2.
Recently I shot the Eagle at F/7 through 6nm Ha filter with ASI2600MM-P. 60×60s subs at gain 100 (~0.25e/DN) offset 32 (zero=320 of 16-bit DNs). Each sub has about 20% pixels less than zero. And it is not bad data! After careful integration I got quite good picture with fainter dust at the edges.
OK, back to the problem. If I calibrate with output pedestal left at 0, I get those 20% pixels clipped to zero. Say, statistics shows median value 4.0 DNs if the Unclipped is checked. Otherwise it says the median is 7.0 DNs. So far so good. What is the true median sky background level? I would argue, it is 4. If it is not obvious, I have other data sets shots at two different exposures in the same night interleaved. Unclipped medians are very much proportional to exposures. SubframeSelector measures Median as clipped, or 7. I don't know what else follows from that. Likely, SNR is skewed similarly. It turns out, SubframeSelector not only uses 'non-unclipped statistics'. It clips all pixels with values less than or equal to 1 DN.
I usually calibrate with output pedestal high enough to avoid any clipping. 200 DN is usually good. In SubframeSelector I set pedestal to 200 accordingly and it mostly works. Except wrong medians and some other stats. I mostly use stars shape metrics that are not that much affected, so it worked for some time until I noticed.
Back to the experiment with subs having 20% zeros. I also tried to calibrate them without output pedestal. So the subs have 20% true zeros. Next I ran PixelMath on them with '$T + 1/65534'. Now SubframeSelector with Pedestal=0 shows Median=5, which is 1 more than true median, fine. If I change that Pedestal to 1, it says Median is 7 now. Notice, 1/65534 is a bit more than 1 DN, which would be 1/65535. Otherwise it would not be enough to convince SubframeSelector to not clip the pixels. As I trick the SubframeSelector to compute the median differently, SNRWeight also changes significantly. Other metrics also change, but I have not played with them extensively to conclude if that is significant or not.
It is unclear whether this clipping behavior exists in other processes and how much it affects them. For example, star detection in StarAlignment and location estimate in ImageIntegration.
Is this behavior intentional? If yes, how should I work with my data correctly?