Author Topic: Running a script on a bunch of images?  (Read 11850 times)

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: Running a script on a bunch of images?
« Reply #15 on: 2011 June 15 11:21:42 »
this retired life is tough

I bet it is  >:D

Offline Ioannis Ioannou

  • PixInsight Addict
  • ***
  • Posts: 202
Re: Running a script on a bunch of images?
« Reply #16 on: 2011 June 15 21:49:33 »
I took a quick view and seems that there was a bug in the original code that -for unknown reasons for me- did not made the script complaining, but now it does. I'll do a bit more debugging and maybe continue this to the developers forum before posting the changes.
Clear Skies
John (Ioannis)

FSQ106N+Robofocus+QHY-22+SX USB wheel+Baader filters
SX OAG+DSI Pro guiding a NEQ6
PI for the rest :)

Offline budguinn

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Running a script on a bunch of images?
« Reply #17 on: 2011 June 16 06:06:12 »
thanks John,

bud



Offline budguinn

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Running a script on a bunch of images?
« Reply #18 on: 2011 June 16 11:09:32 »
John,  I should have mentioned that when you double click on the new triangle/process Icon it opens and now gives you a global button at the bottom.  If you click this apply global button it opens a new instance and asks you to load the defect map, as before.  However, when the 'ok' is clicked it just does it to the top most image.

bud


Offline Ioannis Ioannou

  • PixInsight Addict
  • ***
  • Posts: 202
Re: Running a script on a bunch of images?
« Reply #19 on: 2011 June 16 11:57:39 »
That's reasonable, because the code inside says that in global context it should select the current image (reasonable assumption, what else to select ?)
I may be able to debug and make it workable this weekend if you are not in hurry
Clear Skies
John (Ioannis)

FSQ106N+Robofocus+QHY-22+SX USB wheel+Baader filters
SX OAG+DSI Pro guiding a NEQ6
PI for the rest :)

Offline Ioannis Ioannou

  • PixInsight Addict
  • ***
  • Posts: 202
Re: Running a script on a bunch of images?
« Reply #20 on: 2011 June 18 13:38:51 »
OK, with Juan's help and a bit of old-fashion debuging, I think it is ready now

BTW, according to Juan http://pixinsight.com/forum/index.php?topic=3159.0 you can not avoid placing the instance on the desktop before applying to the ImageContainer. And indeed you will need one of your images opened before starting the GUI.

Have fun

Clear Skies
John (Ioannis)

FSQ106N+Robofocus+QHY-22+SX USB wheel+Baader filters
SX OAG+DSI Pro guiding a NEQ6
PI for the rest :)

Offline budguinn

  • PixInsight Addict
  • ***
  • Posts: 106
Re: Running a script on a bunch of images?
« Reply #21 on: 2011 June 19 06:19:57 »
Hi John,

I just gave it a try and it works perfectly.....thanks for the hard work on doing this for me....it is appreciated.

best regards,

bud


Offline Ioannis Ioannou

  • PixInsight Addict
  • ***
  • Posts: 202
Re: Running a script on a bunch of images?
« Reply #22 on: 2011 June 19 06:30:09 »
Not mentioned it my friend.
I have years to actually write code and combining the hobby (astrophotography) with the old habit (code writing) is really fun.
Clear Skies
John (Ioannis)

FSQ106N+Robofocus+QHY-22+SX USB wheel+Baader filters
SX OAG+DSI Pro guiding a NEQ6
PI for the rest :)

Offline burbs

  • Newcomer
  • Posts: 4
Re: Running a script on a bunch of images?
« Reply #23 on: 2011 August 13 23:57:19 »
It looks like the OPs particular case was solved nicely by this very helpful community, however, the underlying issue seems to still be present.  How does one run any given script on multiple images?

I'm trying to use the Canon Debanding Reduction script on a set of 50+ images.  I am unable to apply the script after image integration because the subs were taken on different nights and there is a large amount of rotation between the subs.  I really don't want to have to apply the script to each individual subframe but at this point I see no other way.  This particular script lack the "triangle" so I am unable to crate a process icon.  I am no programmer so unfortunately I am unable to contribute much.

Any help would be greatly appreciated.


EDIT: Don't I feel silly.... I just noticed the triangle on this script so I am able to create a process icon of it and use the image container after all :) 
« Last Edit: 2011 August 14 00:05:06 by burbs »