Author Topic: Eccentricity = 0 in Subframe Selector  (Read 586 times)

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Eccentricity = 0 in Subframe Selector
« on: 2019 September 28 14:20:59 »
For the last month or two, every time I use subframe selector, the eccentricity plot and chart data are completely flat at zero.  All the other parameters look correct.  This used to work.  I'm using version 1.08.06.1475 64 bit on Mac OS X 10.14.6.  I don't think I've changed anything in my workflow or settings.  Is this a known bug? Or am I doing something wrong?

Offline smccully

  • Newcomer
  • Posts: 20
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #1 on: 2019 October 05 23:22:15 »
I am seeing this error for the first time, when i try to change the Weighting Algorithm i get an error "nan is not defined". While the Weight is nan for all values, and cannot be changed. Appears to have to do with Eccentricity being zero.

Offline smccully

  • Newcomer
  • Posts: 20
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #2 on: 2019 October 05 23:26:39 »
Removing the weighting expression, will reset the values to zero and then a new expression can be used that does not make use of Eccentricity. Not sure why Eccentricity is zero though, never seen this before.

Offline smccully

  • Newcomer
  • Posts: 20
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #3 on: 2019 October 19 10:23:44 »
Is there any insight into whats causing Eccentricity to always show as zero in SubFrameSelector?

Online pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4443
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #4 on: 2019 October 19 10:38:15 »
so the thing is, no one can look into these things unless you provide some sample data. do you have a minimal set of data that causes this problem?

rob

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #5 on: 2019 October 19 11:13:26 »
pfile: This is 100% consistent, repeatable, and works with any and all images.  There is no sample data required.

I just did some additional testing.  This appears to only be an issue in the Macintosh version.  I have the same release number installed on an older Windows laptop and there is no problem with eccentricity.  Unfortunately, that laptop runs far too slow to use Pixinsight effectively.

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #6 on: 2019 October 19 11:25:57 »
But, if you really need some images, here is a handful of images in a google drive folder:

https://drive.google.com/drive/folders/1XijAQgkRhpZTd8hFiWNHwbw_HuqCuw14?usp=sharing

-Dan

Online pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4443
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #7 on: 2019 October 19 13:00:39 »
these appear to be bayered images - are you running SFS directly on these files or on debayered versions?

the new staralignment routine does PSF fitting which may not work against the bayered data.

also are you using the SFS process or script?

rob

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #8 on: 2019 October 19 13:27:34 »
I'm running the SFS Script, and I run it directly on these subs.  Yes they are from an OSC camera so they are bayered.  Also, as mentioned, these exact same images work fine on the Windows version of PI, so I don't suspect that there's any incompatibility between the algorithms and the images ... unless, of course, the algorithms are different on the Mac.

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 152
    • View Profile
    • QDigital Astro
Re: Eccentricity = 0 in Subframe Selector
« Reply #9 on: 2019 October 19 13:38:58 »
In javascript by definition, NaN is the return value from operations which have an undefined numerical result, so it may be a javascript program error.
Dave

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #10 on: 2019 October 19 13:59:16 »
I just tried it with the Subframe selector process on the Mac, with the same images and there is no problem with eccentricity.  So it appears that the problem is limited to the SFS Script in the Mac version.

Online pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4443
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #11 on: 2019 October 19 14:09:11 »
it kind of doesnt make sense to run an eccentricity calculation on bayered data... the intensity of the star is not going to be consistent in adjacent pixels. what happens if you debayer the frames first?

having said that it is possible the SFS script has not been updated to work properly with the new SA process. the difference in behavior could come down to the implementation of the javascript interpreter between windows and mac. juan might be rolling in a prepackaged binary - i am not sure if it is compiled or just provided as libraries.

rob

Offline dkuchta5

  • Newcomer
  • Posts: 9
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #12 on: 2019 October 19 18:09:17 »
>> it kind of doesnt make sense to run an eccentricity calculation on bayered data... the intensity of the star is not going to be consistent in adjacent pixels. what happens if you debayer the frames first?

I never tried to debayer first because the docs said it could take raw images and didn't mention debayering.  What you say makes some sense, however I've been using it with bayered image for quite some time with no problem.  It has always accurately represented the elongation of stars in poorly guided images and let me cull them out.  It just started giving me all zeroes lately.

And the fact is, it still continues to work well. It works in the Mac SFS process, and on Windows it works in both the SFS process and the SFS script.  It just doesn't work on the Mac in the script.

Offline dave_galera

  • PixInsight Addict
  • ***
  • Posts: 152
    • View Profile
    • QDigital Astro
Re: Eccentricity = 0 in Subframe Selector
« Reply #13 on: 2019 October 20 03:18:21 »
I am seeing this error for the first time, when i try to change the Weighting Algorithm i get an error "nan is not defined". While the Weight is nan for all values, and cannot be changed. Appears to have to do with Eccentricity being zero.

If you are getting 'nan' for all values then this is possibly a program bug as per previous post.
Dave

Offline smccully

  • Newcomer
  • Posts: 20
    • View Profile
Re: Eccentricity = 0 in Subframe Selector
« Reply #14 on: 2019 October 20 14:25:23 »
Hold on, i am using MonoChrome Images and Windows and i still see this issue.