Fixed Bug in Analysis Period

The component can now be run with short analysis periods and still
produce a correct header to the output data.