private static void WriteWeatherStatistics(SessionModel session)
{
WriteLine();
WriteLine("+------------------------------------------------------------------------------------------+");
WriteLine("| WEATHER STATISTICS |");
WriteLine("+------------------+-----------+-----------+-----------+-----------+-----------+-----------+");
WriteLine("| | Current | Avg | Min | Max | Range | STD DEV |");
WriteLine("+------------------+-----------+-----------+-----------+-----------+-----------+-----------+");
WriteLine("|Air Temperature |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.Temperature(session.Weather.AirTemperature.Current.Value),
Format.Temperature(session.Weather.AirTemperature.Mean),
Format.Temperature(session.Weather.AirTemperature.Minimum),
Format.Temperature(session.Weather.AirTemperature.Maximum),
Format.Temperature(session.Weather.AirTemperature.Range),
Format.Temperature(session.Weather.AirTemperature.StandardDeviation));
WriteLine("|Track Temperature |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.Temperature(session.Weather.TrackTemperature.Current),
Format.Temperature(session.Weather.TrackTemperature.Mean),
Format.Temperature(session.Weather.TrackTemperature.Minimum),
Format.Temperature(session.Weather.TrackTemperature.Maximum),
Format.Temperature(session.Weather.TrackTemperature.Range),
Format.Temperature(session.Weather.TrackTemperature.StandardDeviation));
WriteLine("|Pressure: |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.Pressure(session.Weather.Pressure.Current),
Format.Pressure(session.Weather.Pressure.Mean),
Format.Pressure(session.Weather.Pressure.Minimum),
Format.Pressure(session.Weather.Pressure.Maximum),
Format.Pressure(session.Weather.Pressure.Range),
Format.Pressure(session.Weather.Pressure.StandardDeviation));
WriteLine("|Wind Speed: |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.WindSpeed(session.Weather.WindSpeed.Current),
Format.WindSpeed(session.Weather.WindSpeed.Mean),
Format.WindSpeed(session.Weather.WindSpeed.Minimum),
Format.WindSpeed(session.Weather.WindSpeed.Maximum),
Format.WindSpeed(session.Weather.WindSpeed.Range),
Format.WindSpeed(session.Weather.WindSpeed.StandardDeviation));
WriteLine("|Wind Direction: |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.WindDirection(session.Weather.WindAngle.Current.Value),
Format.WindDirection(session.Weather.WindAngle.Mean),
Format.WindDirection(session.Weather.WindAngle.Minimum),
Format.WindDirection(session.Weather.WindAngle.Maximum),
Format.WindDirection(session.Weather.WindAngle.Range),
Format.WindDirection(session.Weather.WindAngle.StandardDeviation));
WriteLine("|Humidity: |{0,11}|{1,11}|{2,11}|{3,11}|{4,11}|{5,11}|",
Format.Humidity(session.Weather.Humidity.Current),
Format.Humidity(session.Weather.Humidity.Mean),
Format.Humidity(session.Weather.Humidity.Minimum),
Format.Humidity(session.Weather.Humidity.Maximum),
Format.Humidity(session.Weather.Humidity.Range),
Format.Humidity(session.Weather.Humidity.StandardDeviation));
WriteLine("+------------------+-----------------------------------------------------------------------+");
}