Author Topic: SubFrameSelector Graphs  (Read 7953 times)

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
SubFrameSelector Graphs
« on: 2020 February 18 04:52:57 »
Hi,

Running PixInsight 1.8.8.4 Ripley on a Windows 10 version 1909 build18363.657

Just re-processing some older images and SFS crunches all the images and calculates the weighting and all is good, except that the graphs do not display.

The other issue is not a bug, but I suspect bad data.... I add the "bad images" and Measure Subframes and then the Weighting formula has a red X next to it and in the Measurements window the FWHM and ECC show -nan(ind) ..... any ideas as to what is wrong?

space is not black
John
APM 107/700 apo on CGX mount
ZWO Optics - Autoguiding
ZWO1600mm and filters
... when there are no clouds ...

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Re: SubFrameSelector Graphs
« Reply #1 on: 2020 February 18 06:26:07 »
NaN in javascript means Not A Number, i.e. a calculation does not give a numeric answer. This is a problem with many of the scripts they just don't handle errors very well, and very few give a graceful error.....they just blow up!!

Check your formula is giving a numeric answer etc.
Dave

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
Re: SubFrameSelector Graphs
« Reply #2 on: 2020 February 18 06:54:23 »
I think it is just bad data cos the formula works with everything else ... I was just curious.

Any ideas about the graphs?

John
APM 107/700 apo on CGX mount
ZWO Optics - Autoguiding
ZWO1600mm and filters
... when there are no clouds ...

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 261
    • QDigital Astro
Re: SubFrameSelector Graphs
« Reply #3 on: 2020 February 18 07:21:40 »
Yes it is probably bad data that is causing a non-numeric calculation result, but I think it should handle it more gracefully.
Dave

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
Re: SubFrameSelector Graphs
« Reply #4 on: 2020 February 20 22:42:51 »
About the graphs not displaying, I did a shutdown and restart of the laptop and "Hey Presto" the graphs are back ...  ::)

Oh well...when in doubt, reboot and restart ...

John
APM 107/700 apo on CGX mount
ZWO Optics - Autoguiding
ZWO1600mm and filters
... when there are no clouds ...

Offline pkomatovic

  • Newcomer
  • Posts: 3
Re: SubFrameSelector Graphs
« Reply #5 on: 2020 February 27 11:50:51 »
Hi,

I have same problem after update to 1.8.8.3. Before that all my expressions worked fine.

I get same error as John. After applying expression for weighting  the graph disappears and i get the Nan massage in the console...

My expressions are for approval: FWHM < 6 && Eccentricity <= 0.7
and for Weighting:
(15*(1-(FWHM-FWHMMin)/(FWHMMax-FWHMMin)) + 15*(1-(Eccentricity-EccentricityMin)/(EccentricityMax-EccentricityMin)) + 20*(SNRWeight-SNRWeightMin)/(SNRWeightMax-SNRWeightMin))+50

Any help would be appreciated.

Peter
 

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
Re: SubFrameSelector Graphs
« Reply #6 on: 2020 February 28 02:16:21 »
Hi,

My formula does not have the +50 and I do not use the "expression" for approval.

John
APM 107/700 apo on CGX mount
ZWO Optics - Autoguiding
ZWO1600mm and filters
... when there are no clouds ...

Offline pkomatovic

  • Newcomer
  • Posts: 3
Re: SubFrameSelector Graphs
« Reply #7 on: 2020 February 29 04:17:44 »
Ok, but the approval expression does work on its own without the weighting. Both worked fine until version 1.8.8.3.
So something must have changed in the script engine why this formula is no good anymore.

Peter
 

Offline pkomatovic

  • Newcomer
  • Posts: 3
Re: SubFrameSelector Graphs
« Reply #8 on: 2020 March 02 04:04:36 »
Just tried 1.8.8.5 and new updates and all works fine again!
There must have been some bug in 1.8.8.3 an 1.8.8.4  ;)

Peter