/** @page Output Output

@tableofcontents

@section mc_output MC Output Files

The .mc output files are plain text files.  They contain 2 lines of text.  Lines are terminated using @p CRLF.

@subsection mc_one First Line

The first line has 23 fields, all comma-delimited.

Example:

~~~~{.txt}
0618,0000,0000,0002,0032,0152,0180,0161,0065,0019,0005,0001,0001,0000,0000,0000,0000,0000,000,000,0.711836997683014,13.2611650485437,000
~~~~
<br/>
Field Number	| Digits	| Example			| Description
----------------|-----------|-------------------|------------
1				| 4			| 0618				| Total number of boards.
2				| 4			| 0000				| Number of boards in 8% bucket.
3				| 4			| 0000				| Number of boards in 9% bucket.
4				| 4			| 0002				| Number of boards in 10% bucket.
5				| 4			| 0032				| Number of boards in 11% bucket.
6				| 4			| 0152				| Number of boards in 12% bucket.
7				| 4			| 0180				| Number of boards in 13% bucket.
8				| 4			| 0161				| Number of boards in 14% bucket.
9				| 4			| 0065				| Number of boards in 15% bucket.
10				| 4			| 0019				| Number of boards in 16% bucket.
11				| 4			| 0005				| Number of boards in 17% bucket.
12				| 4			| 0001				| Number of boards in 18% bucket.
13				| 4			| 0001				| Number of boards in 19% bucket.
14				| 4			| 0000				| Number of boards in 20% bucket.
15				| 4			| 0000				| Number of boards in 21% bucket.
16				| 4			| 0000				| Number of boards in 22% bucket.
17				| 4			| 0000				| Number of boards in 23% bucket.
18				| 4			| 0000				| Number of boards in 24% bucket.
19				| 3			| 000				| @b Unknown.  Always set to zero?
20				| 3			| 000				| @b Unknown.  Always set to zero?
21				| 17		| 0.711836997683014	| Standard deviation.
22				| 16		| 13.2611650485437	| Average.
23				| 3			| 000				| @b Unknown.  Always set to zero?

@todo Several fields marked as @b "unknown" in the previous table.  Need to confirm each one with Dominic.

@subsection mc_two Second Line

The second line has the exact moisture values for every board.  There are as many fields in the 2nd line as the value from field #1 in the 1st line.  The line is terminated with a period.

For example, if there were only 6 boards, the 2nd line might look like this:

~~~~{.txt}
13.9,15.2,11.9,12.9,11.6,12.9,.
~~~~

@subsection mc_filename File Naming

The .mc output files are named as follows:  <tt>K_RRRPPP.mc</tt> where:

@li @p K is the 1-digit kiln number.
@li @p RRR is the 3-digit run number.
@li @p PPP is the 3-digit package number.

The .mc output files are written once the package has finished.

@todo How do we decide that a package has finished?

Once a run has completed, a final summary file is also written to disk.

@section mc_summary MC Summary

The .mc summary file is named similarly to the other .mc files, but with a package number of @p 000.  It contains a single line with 24 fields.

For example:

~~~~{.txt}
28492,0160,0234,0630,2137,7261,8039,6897,2190,0707,0152,0039,0008,0005,0005,0005,0002,0021,000,000,1.10482656642135,12.98914783097,000370086.799999997,4870382.67999997
~~~~
<br/>
Field Number	| Digits		| Example				| Description
----------------|---------------|-----------------------|------------
1				| as necessary	| 28492					| The total number of boards
2				| 4				| 0160					| Number of boards in 8% bucket.
3				| 4				| 0234					| Number of boards in 9% bucket.
4				| 4				| 0630					| Number of boards in 10% bucket.
5				| 4				| 2137					| Number of boards in 11% bucket.
6				| 4				| 7261					| Number of boards in 12% bucket.
7				| 4				| 8039					| Number of boards in 13% bucket.
8				| 4				| 6897					| Number of boards in 14% bucket.
9				| 4				| 2190					| Number of boards in 15% bucket.
10				| 4				| 0707					| Number of boards in 16% bucket.
11				| 4				| 0152					| Number of boards in 17% bucket.
12				| 4				| 0039					| Number of boards in 18% bucket.
13				| 4				| 0008					| Number of boards in 19% bucket.
14				| 4				| 0005					| Number of boards in 20% bucket.
15				| 4				| 0005					| Number of boards in 21% bucket.
16				| 4				| 0005					| Number of boards in 22% bucket.
17				| 4				| 0002					| Number of boards in 23% bucket.
18				| 4				| 0021					| Number of boards in 24% bucket.
19				| 3				| 000					| @b Unknown.  Always zero?
20				| 3				| 000					| @b Unknown.  Always zero?
21				| as necessary	| 1.10482656642135		| Standard deviation.
22				| as necessary	| 12.98914783097		| Average.
23				| unknown		| 000370086.799999997	| @b Unknown.
24				| unknown		| 4870382.67999997		| @b Unknown.

@todo Several fields marked as @b "unknown" in the previous table.  Need to confirm each one with Dominic.

*/
