Author Topic: Understanding My Linear Fit Clipping Result  (Read 5112 times)

Offline GaryI

  • Newcomer
  • Posts: 19
Understanding My Linear Fit Clipping Result
« on: 2016 September 09 14:51:49 »
I have been having a problem for several days with amp glow appearing in some, but not all, of my final integrated images.  I think I have isolated the problem and I would like your help understanding what I am doing wrong. 

I am running the batchpreprocessing script for a narrowband 3 channel image of NGC7380 (Wizard Nebula).  I am using 50 lights, applying cosmetic correction, and using masters for bias, dark and flat.  I am using defaults for all of the parameters.  If I use Winsorized Sigma Clipping for my rejection algorithm, the final image looks great.  If I use Linear Fit Clipping, which I usually do when the number of lights is over 20, it looks like the final image does not account for the master dark.  There is amp glow along the edges.  This is a repeatable result. 

I have attached 2 images which compare the final OIII result for each of the above rejection algorithms.  Any help you could provide would be appreciated.

Thanks,
Gary

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #1 on: 2016 September 09 14:56:31 »
The jpg images above don't shown the amp glow very well.  When viewed in PI in its native form, it is obvious.

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #2 on: 2016 September 09 15:01:12 »
Also, to help, the amp glow is mainly in the upper right and lower right of the 2nd image.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Understanding My Linear Fit Clipping Result
« Reply #3 on: 2016 September 09 15:03:54 »
are you scaling (optimizing) the darks?

in the presence of certain chip artifacts (like RBI preflush and presumably amp glow) if you scale the dark you won't completely remove the artifact.

what do the calibrated subs look like?

rob

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #4 on: 2016 September 09 17:21:56 »
Rob,

Thanks so much for your reply. 
Two answers:
1.  The calibrated subs are exactly the same in each case (blinking between them)
2.  You are right - optimizing the darks has a significant effect!  My darks are the same length as my lights, so I didn't think it would matter.  When I unchecked the box to optimize the darks, the resulting integrated image looks much better.  The amp glow is almost gone.  I don't understand it, but I am happy with the result.

Thanks,
Gary

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Understanding My Linear Fit Clipping Result
« Reply #5 on: 2016 September 09 18:30:52 »
cool!

the reason is that the amp glow isn't necessarily a function of exposure time, as the dark current itself is. PI optimizes darks by varying a linear scaling factor and finding the scaling factor for which the noise in the calibrated frame is minimized... it does not care about exposure times or temperatures, but instead takes this purely numeric approach.

scaling the dark works great if your darks contain only the dark signal (the bias signal is not a function of time, but that's why you first subtract a master bias from the master dark before scaling it). the amp glow in the dark is attenuated by the scaling and then when you subtract the dark from the light, the amp glow in the light is not fully removed.

rob

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Understanding My Linear Fit Clipping Result
« Reply #6 on: 2016 September 10 23:07:12 »
Does it mean we shouldn't use optimize if we have amp glows in the master dark? (e.g. with a dslr)

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #7 on: 2016 September 11 06:11:15 »
ChoJin,

I suspect that amp glows are most often due to mismatched settings (exposure time, gain, temp, etc.) between the calibration frames (darks, bias, flats) and the light frames.
I think that my case may have been a bit unusual, and may have been specifically associated with my use of linear fit clipping.  But, in my case, it DID help reduce the glow to NOT optimize darks, especially since my dark exposure time was matched exactly to my lights time.

Gary

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Understanding My Linear Fit Clipping Result
« Reply #8 on: 2016 September 11 09:48:01 »
I was asking because I'm currently processing M31 (my first-light of my own equipment) using a canon 6D.

I carefully matched my darks using BatchStatistics (using temp, BWMV, MAD, Qn and Sn mostly) and I do see an amp glows on my resulting master dark. I also did use linear fit for my integration and I let imageintegration optimize my darks. That's why I was worrying when reading this thread.

But I don't think I'm seeing the amp glow in my resulting integrated image though (but I'm still worrying because I lack experiences, I therefore don't trust myself too much, even though I'm trying to be as throughout as possible). So maybe I'm ok on that aspect, you guys will tell me I guess when I'm done and I'll post my resulting image in the gallery :-)

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Understanding My Linear Fit Clipping Result
« Reply #9 on: 2016 September 12 15:30:05 »
Gary,

When you calibrated your lights with the Optimize button checked did you get any "No Correlation" errors reporting during the process.  I have had an issue that using the "Optimize" switch is resulting in me getting the "no correlation" warning with most images and when that happens, the darks are not subtracted for those lights.  I have reported the issue and am working it with Vicent to resolve , but any third party data would be helpful.  To check, try rerunning your calibration and just watching the results coming out of the process container window.

Thanks,

Jim   
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #10 on: 2016 September 13 10:51:37 »
Jim,

Your post had me very excited, as that would well explain why I am sometimes seeing amp glow.  Alas, I reran the script and didn't see any "no correlation" messages, and I don't remember seeing any from the previous runs.  Oh well.  I believe that my issue may be due to the CMOS-style sensor (ZWO ASI1600mm camera) that I am using, due to the amp glow possibly not being consistent from day to day.  I see the glow in my final image when I run the Batchpreprocessing script using the Linear Fit Clipping rejection algorithm and settings of 5.0/3.5 for Linear Fit Low/High.   If I run it with a different algorithm, or with LFC settings of  5.0/2.5, the glow is barely noticeable.

By the way, thanks for the information that you have provided to me indirectly through your informative posts on other subjects.  I am on the verge of moving from LRGB to RGB imaging.  I have read your conversation with Juan on that subject, but I'll confess to not understanding everything yet.  Have you now moved in that direction?

I really enjoyed reading through your web site.  It is excellent and well done.  If you don't mind sharing, what hosting service are you using?  I would like to utilize something similar some day.

Also, I enjoyed a previous post where you alluded to your occupation.  We may have crossed paths - I spend 20 years working in West Houston in the same business, but as an engineer.  I am now retired and observing from the shores of Lake Livingston.  Much better skies for observing than West Houston, but not as nice as New Mexico of course.

All the best,

Gary Imm
Onalaska, TX

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Understanding My Linear Fit Clipping Result
« Reply #11 on: 2016 September 13 11:31:56 »
Since you are mentioning it, could you link the topic about the LRGB vs RGB flow you are referring to?

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #12 on: 2016 September 13 13:22:18 »

Offline GaryI

  • Newcomer
  • Posts: 19

Offline GaryI

  • Newcomer
  • Posts: 19
Re: Understanding My Linear Fit Clipping Result
« Reply #14 on: 2016 September 13 13:32:18 »
Sorry to flood you with links, but this is another good one by Juan - http://pixinsight.com/forum/index.php?topic=1636.0