Spectral phase ripple associated with novel dispersive devices can distort broadband optical signals. We present a digital postprocessing algorithm to correct for this distortion by exploiting the static deterministic nature of the ripple. This algorithm is demonstrated with empirical data for several systems employing chirped fiber Bragg gratings (CFBGs). We employ this technique in a photonic time-stretch system incorporating CFBGs, improving the signal fidelity by 9 dB. Simulations and experiments show that this algorithm, which can be reduced to a simple interpolation and matrix multiplication, also mitigates additive noise. We see that the act of distortion correction yields signal fidelity superior to that of an ideal dispersive element.