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

- Probably will modify soon. Not very clear in present format.