Author Topic: subframeSelector warning message  (Read 2736 times)

Offline rockyraccoon

  • Member
  • *
  • Posts: 63
    • My gallery of astrophotos
subframeSelector warning message
« on: 2016 December 09 12:25:25 »
When trying to run subframeSelector I get this warning message:
"the image contains an astrometric solution that will be removed by the geometrical transformation"
What geometric transformation? I thought subframe selector was just quantifying information about the image, not applying geometrical transforms.
I don't think I've ever seen this warning before.
Is this a bug?

[EDIT1 - additional information]: If I respond to "not proceed" to the warning message, the script terminates with this error:
*** Error [000]: /Applications/PixInsight/src/scripts/mschuster/SubframeSelector/SubframeSelector.js, line 1344: Error:

I went and looked at line 1344. It's:
               crop.executeOn(imageWindow.mainView, false);

So, I suspect the geometric transformation that the warning message refers to is the cropping to provide an ROI for analysis.
If that's the case, then it doesn't make a lot of sense to warn the user about irreversible changes to the original files.
« Last Edit: 2016 December 09 12:41:37 by rockyraccoon »

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: subframeSelector warning message
« Reply #1 on: 2016 December 09 13:08:14 »
Yes, ROI for analysis and the PI system's Crop process generates the warning, which as you say is not necessary in this case.

Crop appears to have no obvious scripting API to disable the warning. I will investigate.

Thanks, sorry for the trouble,
Mike

Offline rockyraccoon

  • Member
  • *
  • Posts: 63
    • My gallery of astrophotos
Re: subframeSelector warning message
« Reply #2 on: 2016 December 09 13:18:42 »
Thanks Mike.
Do you know of a workaround to silence this warning message - even at a global level?
The popup appears for every single file that sfs wants to process, making it really painful to use.



Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: subframeSelector warning message
« Reply #3 on: 2016 December 09 13:24:07 »
I agree its painful. I can't think of anything good. Is there any way to batch strip the FITS keywords? Or somehow make a copy of the files without the keywords? Or disable ROI for the time being.

Offline rockyraccoon

  • Member
  • *
  • Posts: 63
    • My gallery of astrophotos
Re: subframeSelector warning message
« Reply #4 on: 2016 December 09 14:50:35 »
Thanks - I will disable the ROI option for now.
Since you are looking at the script, there is another peculiarity I have  found:

If I choose to "move" files that pass a certain set of criteria, the new weight keyword (and related value) does not get added to the FITS files before moving it.
Note that it does get added, if I choose to "copy" the files instead.

It that's the expected behavior, then selecting "move" should grey out the option to add a new FITS keyword.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: subframeSelector warning message
« Reply #5 on: 2016 December 09 16:17:24 »
These warning messages come from a new feature recently implemented in the Geometry module. I'll add a new parameter to all of these processes to disable these warning messages programmatically. I'll release an update in a few days. Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/