Data reduction and processing for photon science detectors Article in Frontiers in Physics (February 2024)