Page 1 of 1

Processing History from images changed using a script

Posted: 13 Feb 2026, 13:26
by Wayne Hawley
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

Re: Processing History from images changed using a script

Posted: 13 Feb 2026, 19:02
by Wayne Hawley
I have found the reason in the "Option" the "save processing history into FITS Header" was not selected.