Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Problems with flat subtraction


Recommended Posts

Hello! Recently I succeeded in debayering a Canon 450D through polishing, which left me with a mono sensor. However, I've been having some issues with flat subtraction. Here's the stacked file:

image.thumb.png.98a97d324654d9c9c40fddc3d71bd5e3.png

And here is the master flat:
image.thumb.png.a6e8b4a1b18e7b1f791cfddde114cd30.png

To me it kinda looks like the flat is being over-subtracted in certain areas. For context, here are an uncalibrated and a calibrated single light frame:
image.thumb.png.d5d28cc82ff4eceda1d6089f4be3a626.png

You can start seeing those patterns appear in the calibrated image, although they are more subtle than in the stacked image. Any idea how I could fix this?

Link to comment
Share on other sites

Are you sure, you are doing it right?

Flats should not be subtracted - they should be divided with.

calibrated file = (light - dark) / flat

Ignore the above (I did not properly read the post).

Can you post single light, single flat and master flat cr2 files for inspection?

 

Edited by vlaiv
Link to comment
Share on other sites

4 hours ago, Ovi said:

Here they are. Unlike the ones I sent before, these are uncropped.

There seems to be something wrong with your master flat.

I took only single flat - which looks good and calibrated single sub with it. I had to bin it quite extensively to get good snr - but here is result after calibration, binning and background gradient removal:

image.png.415e72a689969616e2a87a8831911308.png

I see absolutely no trace of issues with flat calibration.

Here it is again with black point adjusted to maximally show nebulosity vs background:

image.png.f9b34c492d62cb4293de00027350c7c2.png

(this is linear stretch so nebula is blown completely - but point is to look at background around it).

But if we inspect single flat vs master flat - we get interesting thing:

image.png.f8cee97441353deee07f4c13830b4a86.png

Median and mean values differ by about ~3.1 (3.1 and 3.15) between single sub and master.

This should not happen - they should contain roughly the same average and median values.

Can you inspect all your flat subs for average value and see if there are significant differences? Maybe you should discard some of your flat files from master flat - those that are significantly different from the rest?

Link to comment
Share on other sites

I, too, think the sensor is badly damaged. The flat has patches of black which presumably have no signal, or very little, so there is little or no information there for the calibration to adjust. We often see this when there is dust on the sensor: there is nothing the flats can do to correct for that.

Olly

 

Link to comment
Share on other sites

On 13/03/2022 at 15:23, ollypenrice said:

I, too, think the sensor is badly damaged. The flat has patches of black which presumably have no signal, or very little, so there is little or no information there for the calibration to adjust. We often see this when there is dust on the sensor: there is nothing the flats can do to correct for that.

Olly

 

The black patches are actually around 60% of the brightness of the rest (they're patches where the cfa wasn't completely removed), it's just that the flat is very stretched. While I do not think the sensor is damaged, I'm starting to think I might not get flat calibration to work at all. I'll probably try again with another sensor since I wouldn't be able to sleep at night knowing I abandoned this project while this close to success.

  • Like 1
Link to comment
Share on other sites

10 hours ago, Ovi said:

The black patches are actually around 60% of the brightness of the rest (they're patches where the cfa wasn't completely removed), it's just that the flat is very stretched. While I do not think the sensor is damaged, I'm starting to think I might not get flat calibration to work at all. I'll probably try again with another sensor since I wouldn't be able to sleep at night knowing I abandoned this project while this close to success.

A 40% fall-off in signal is a lot. However, I have a 23% vignetting fall-off on one setup and it does calibrate out.

What's still to be explained, tough, is why the flats don't calibrate out the patterns formed on the sensor by debayering.

I have to ask this: would you not be better off sticking with a standard sensor and using a dual or tri-band filter?

Olly

Link to comment
Share on other sites

5 hours ago, ollypenrice said:

A 40% fall-off in signal is a lot. However, I have a 23% vignetting fall-off on one setup and it does calibrate out.

What's still to be explained, tough, is why the flats don't calibrate out the patterns formed on the sensor by debayering.

I have to ask this: would you not be better off sticking with a standard sensor and using a dual or tri-band filter?

Olly

I prefer seeing it as the debayered area being 60% more sensitive :)

As for why not sticking with a color sensor, the allure of increased sensitivity and resolution are too strong to resist. If I can't the flats to work, I'll give this project one last chance and after that I'll be content with putting it down to sleep and going down the duo-band filter path.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.