Preprocessing script
Posted: 07 Oct 2021, 17:03
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"
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"