Page 1 of 1

Preprocessing script

Posted: 07 Oct 2021, 17:03
by NickQ
Hello,

Is there a way to delete images from the pre-processing window using a script?

I want to use something like the code below but embed it within a loop to automatically process sets of different images one after another.

Thanks.

dir = "D:\Astro-pics\misc\" ' my directory
pre$ = "#PREPROCESSING" + CRLF
pre$ = pre$ + "Dark=" + dir + "Dark-5.FIT" + CRLF ' my dark
pre$ = pre$ + "Flat=" + dir + "V-Flat.FIT" + CRLF ' my flat
pre$ = pre$ + "F.Dark=" + dir + "F-Dark.FIT" + CRLF 'my flat dark
pre$ = pre$ + "Image=" + dir + "V0836 CYG-V-5-5.FIT" + CRLF ' my image taken with photo-metric V filter of the variable star V0836 CYG (AAVSO) and a reference star of mag 9.066
pre$ = pre$ + "ExtraFilters=0" + CRLF
pre$ = pre$ + "AlignMethod=0" + CRLF
pre$ = pre$ + "CombineMethod=0" + CRLF
pre$ = pre$ + "CutBorders=0" + CRLF
Preprocessing(pre$)
Print "Pre-processing Done"

Re: Preprocessing script

Posted: 07 Oct 2021, 22:16
by NickQ
Answering my own question ...

All I needed to do was make sure that pre$ was re-initialised to "#PREPROCESSING" between each image set! My first attempt ended up with pre$ getting more and more image names appended to it.