Author Topic: ImageIntegration: invalid weight keyword  (Read 3435 times)

Offline fneyer

  • Newcomer
  • Posts: 31
ImageIntegration: invalid weight keyword
« on: 2015 March 13 06:42:42 »
Hi,

I would like to weight my images based on weights determined in SubframeSelector. After StarAlignment, I set the Weights in ImageIntegration to 'Fits Keyword' and write the corresponding Keyword in the 'Weight Keyword' tab. Although each file contains the Keyword, Image Integration fails because of "Nonexistent or invalid weight keyword".

Can anybody help me with this?

Thanks,
Fabian

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: ImageIntegration: invalid weight keyword
« Reply #1 on: 2015 March 13 09:19:48 »
Hi Fabian,

I may be able to help. I need a frame generated by SubframeSelector, the corresponding aligned frame generated by StarAlignment, and the name of the keyword you used. Please place the frames in Dropbox and post a link.

Thanks,
Mike

Offline fneyer

  • Newcomer
  • Posts: 31
Re: ImageIntegration: invalid weight keyword
« Reply #2 on: 2015 March 13 10:05:02 »
Hi Mike,

Here is the dropbox link:
https://www.dropbox.com/sh/jhfxs0ve1dv6edx/AABFonXcmEN4d5giG0YbyVs2a?dl=0

I used the keyword 'WEI' for the weights.

Thanks for your help!
Fabian

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: ImageIntegration: invalid weight keyword
« Reply #3 on: 2015 March 13 12:58:28 »
Hi Fabian,

Thank you!

The WEI keyword value is -0.7439. Weight values should be positive, and the ImageIntegration process is probably complaining about the negative value. SubframeSelector also probably should alert for negative weights, but it does not do so now. Anyway, you will have to change you weighting formula to generate positive weights somehow.

Regards,
Mike

Offline fneyer

  • Newcomer
  • Posts: 31
Re: ImageIntegration: invalid weight keyword
« Reply #4 on: 2015 March 13 13:17:20 »
Thanks Mike,

You are right, some of the weights turned negative. I actually followed the documentation and wasn't really thinking about getting into these cases. Of course negative weights are nonsense - would be good to have that written in a future update of the documentation or in the command output when running into such cases.

Thanks again for your fast help!

Fabian