For reduction of speckle images of binary and multiple stars we use algorithm described in paper Pluzhnik (2005).
Calculate statistics for object file
Calculate statistics for dark file
dark_filename <- file.choose() # Choose file with dark frames
dark_stat <- speckle_stat(dark_filename)
Calculate statistics for flat file
flat_filename <- file.choose() # Choose file with flat field frames
flat_stat <- speckle_stat(flat_filename)
Calculate average dark frame
zero_matrix <- matrix(0, 512, 512)
mid_dark <- middle_frame(filename = dark_filename, subtrahend = zero_matrix)
Calculate average flat field frame with average dark subtraction
Calculate power spectrum with subtraction of neighboring frame
Calculate acf
Calculate power spectrum