Author Topic: Subframe Selector--does weight influence integration?  (Read 3648 times)

Offline rmaddy

  • Newcomer
  • Posts: 3
Subframe Selector--does weight influence integration?
« on: 2016 October 03 15:40:40 »
Please pardon a noob.

I have become familiar with navigating and using the subframe selector script.  What I want to know is whether the assigned weights (or SNRweight) is used during integration, i.e. does a better frame have more influence on the final mix, or are the data simply FYI?

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Subframe Selector--does weight influence integration?
« Reply #1 on: 2016 October 03 20:26:52 »
By default no, not used by ImageIntegration.

SNRWeight is effectively the weight ImageIntegration would use if you were to set the ImageIntegration option Image Integration > Weights to Noise Evaluation and Image Integration > Scale estimator to Average absolute deviation from the median.

To use the script's assigned weight in ImageIntegration you need to do the following in the script:

Set Output > Approved action to Copy.
Set Output > Weight keyword to some value, for example IWEIGHT.
Set Expressions > Weighting to the weighting expression that you want to use.

Then click the script's Output subframes button, which will copy all of the approved frames, including the weight keyword and value in the copy's FITS header.

Then, in ImageIntegration:

Set Image Integration > Weights to FITS keyword.
Set Image Integration > Weight keyword to the weight keyword you are using, eg IWEIGHT.

As an example weighting expression, you might try the expression SNRWeight / FWHM^2. Frames with (1) higher contrast (scale), (2) lower noise, and (3) lower FWHM will tend to be weighted higher. (The squaring of FWHM is a heuristic that in some sense "matches" the squaring of scale and noise in SNRWeight, the later done for technical optimality reasons.)

Thanks,
Mike


Offline rmaddy

  • Newcomer
  • Posts: 3
Re: Subframe Selector--does weight influence integration?
« Reply #2 on: 2016 October 03 23:00:27 »
Ok, I see those steps. 

So, if I understand correctly, following them toggles from the "noise evaluation" weighting routine of the ImageIntegration process to a user defined weighting technique, for example "SNRWeight/FWHN^2" in your scenario.  Either way, there is a weighting of subs during integration--the only choice is whether or not to tweak the subroutine.

Correct?

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Subframe Selector--does weight influence integration?
« Reply #3 on: 2016 October 04 06:41:59 »
Yes. Basically ImageIntegration itself provides some weighting options, the script provides even more options.

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Subframe Selector--does weight influence integration?
« Reply #4 on: 2016 October 04 07:13:44 »
but the subframeselector doesn't use, as far as i know, the "new" robust and efficient noise estimator to compute the SNR (biweight midvariance and alike)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Subframe Selector--does weight influence integration?
« Reply #5 on: 2016 October 04 08:35:08 »
Wrong. The script uses exactly the same noise estimator. However, the script uses a scale estimator that is no longer the default. This problem will be corrected eventually.

Offline ChoJin

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Subframe Selector--does weight influence integration?
« Reply #6 on: 2016 October 04 10:00:51 »
sorry I misused words, I was talking about the scaling estimator