rats function

Robust Alignment to a Target Spectrum (RATS).