added a plot to of snr vs ap to save to file. switched over from mag_aper to flux_aper