Author Topic: Batch Pre-Processing  (Read 3929 times)

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
Batch Pre-Processing
« on: 2016 July 06 04:03:31 »
Hi,

After I add my Bias, Darks, Flats and Lights, I would like to save my file list, so if I want to change some setting and then re-process them, I will not have to re-load all the files again.

Another handy feature would be to show the number of files selected in the Bias, Darks, Flats and Lights section.

Lastly, after the batch processing has completed, the "Process Console" should show a summary of images used, rejected or any other errors or issues.  That would eliminate setting the log file to 3000 lines and then scrolling thru these the file .

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

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Batch Pre-Processing
« Reply #1 on: 2016 July 06 04:48:23 »
Hi,

After I add my Bias, Darks, Flats and Lights, I would like to save my file list, so if I want to change some setting and then re-process them, I will not have to re-load all the files again.
You can save the current status of the script dragging the triangle at the bottom-left of the window to the desktop of PI.

Quote
Lastly, after the batch processing has completed, the "Process Console" should show a summary of images used, rejected or any other errors or issues.  That would eliminate setting the log file to 3000 lines and then scrolling thru these the file .

I think it would be very useful to have a checkbox that when activated the full log of the process would be written to the output directory. I could program this improvement myself but Juan should agree to this. I do not want to touch code written by other people without their permission.

Andrés

Offline John_Gill

  • PixInsight Old Hand
  • ****
  • Posts: 368
Re: Batch Pre-Processing
« Reply #2 on: 2016 July 06 04:57:11 »
Thank you for your prompt reply, I sure it will help everyone.

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

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Batch Pre-Processing
« Reply #3 on: 2016 July 20 10:12:26 »
Hi Andrés,

Yes, it would be useful and indeed is easy to implement. You can use the following static methods:

void Console.beginLog()
ByteArray Console.endLog()


along with:

File File.createFileForWriting( String path )
void File.write( ByteArray obj )
void File.close()


to generate the text file. Please feel free to carry out the necessary modifications; thank you for your help.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Batch Pre-Processing
« Reply #4 on: 2016 August 08 09:33:37 »
Please feel free to carry out the necessary modifications; thank you for your help.
Done  :)
I've just created a PullRequest with the changes.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Batch Pre-Processing
« Reply #5 on: 2016 August 08 11:44:43 »
Great! Thank you so much, Andrés.

I am supposed to be on vacation, more or less, so I don't have full access to the usual development systems where I am. So I'll delay a little the release of this update. A few days.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/