Processing History from images changed using a script

Scripts and programs to automate Astroart
Post Reply
Wayne Hawley
Posts: 13
Joined: 04 Mar 2020, 17:14

Processing History from images changed using a script

Post by Wayne Hawley » 13 Feb 2026, 13:26

I have written a script that uses a macro to subtract the dark frame and divide by the flat frame but the saved images do not have any processing history and there is nothing in the FITS Header to say they have been changed from the raw images. Is this something I would have to write into the FITS header?

new = "M:\Reduced images\"
old = "M:\Old images\"
dark = "M:\Master Dark\Master Dark 180s 2x2.fit"
flat = "M:\Master Flat\Master Flat 2x2 C.fit"
im = FindFiles(old,"*.fit")
n = Count(im)
Image.Open(dark)
Image.Open(flat)
for i = 1 to n
Print im

Image.Open(old+im{i})
Image.Macro(1)
' The macro was created after processing one image with dark and flat and then adding Visualization percentage 5 99.5
Image.Save(new+im{i})
Image.Close
next i
' pause (1)
end

Wayne Hawley
Posts: 13
Joined: 04 Mar 2020, 17:14

Re: Processing History from images changed using a script

Post by Wayne Hawley » 13 Feb 2026, 19:02

I have found the reason in the "Option" the "save processing history into FITS Header" was not selected.

Post Reply