Author Topic: Batch preprocessing script  (Read 3402 times)

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Batch preprocessing script
« on: 2017 March 30 11:39:37 »
Two questions...I am running the script. Diagnostics return no errors.

1. - I specify a particular output directory. The processed files do not show up after running script.
2. - Harry's video shows that if I save a new instance before closing the script, I can reopen later with all my subframe entries. When I open the icon and apply global, the script opens but is blank.

Obviously I am doing something wrong. Have to be simple answers...

Tom

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #1 on: 2017 March 30 11:49:04 »
Number one solved, but still unable to save script entries...

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #2 on: 2017 March 30 12:12:57 »
I will add another question...this has been discussed before, but I can't seem to find an answer in the threads. I generate master flats, darks, bias frames from FITS format using SGP and I generate XISF files. When I try to run the batch preprocessing script, it looks in the FITS header for the file type. The FITS header is destroyed by generating the master files and all that's left is history labels so the script generates an error. I have been using single flat frames to get around this.  Is there a better solution?

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: Batch preprocessing script
« Reply #3 on: 2017 March 30 12:56:12 »
Enable  "Export calibration files" to save script entries
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #4 on: 2017 March 30 13:30:31 »
Thanks Geoff...that worked. Also having the script generate the master flat solved the other issue but I would still like to know the format for re-adding the fliter and IMAGETYP to allow my generated  master flat to work...having tried upper case, lower case and upper case first letter.

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #5 on: 2017 March 30 14:15:59 »
Got the last question figured out. For anyone needing the information, if you generate your own master flat, say, with the image integration tool, the fits header requires the addition of (and only of) FILTER  'Lum'  (case sensitive)  along with the existing history information.

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #6 on: 2017 March 30 14:25:27 »
I assume the above requirement is due to the fact that my light subs contain FILTER 'Lum' in the headers. My image integration-generated darks and bias masters do not require a FILTER entry, as expected, for BPP to work with no errors.

Offline Warhen

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 490
    • Billions and Billions
Re: Batch preprocessing script
« Reply #7 on: 2017 April 05 12:36:19 »
Just use 'Add Custom' to tell the script that a master flat is indeed a flat.
Best always, Warren

Warren A. Keller
www.ip4ap.com

Offline tloebl

  • PixInsight Addict
  • ***
  • Posts: 137
Re: Batch preprocessing script
« Reply #8 on: 2017 April 11 16:57:57 »
Could you elaborate on the 'add custom' option?