Create and map phase values to frame numbers. Used by other functions for phase averaging