protected void OneTrajectoryINM()
        {
            var aircraft            = new Aircraft("GP7270", "wing");
            var trajectoryGenerator = new TrajectoryGenerator(aircraft, referencePoint);

            if (_view.TrajectoryFile.Contains("."))
            {
                var reader = new TrajectoryFileReader(CoordinateUnit.metric, trajectoryGenerator);
                trajectory = reader.CreateTrajectoryFromFile(_view.TrajectoryFile);
            }

            trajectory.Aircraft = aircraft;
            noiseModel          = new IntegratedNoiseModel(trajectory, aircraft);
            bool integrateToCurrentPosition = true;
            int  metric = 0;

            switch (_view.NoiseMetric)
            {
            case 0:
                metric = 1;
                integrateToCurrentPosition = false;
                break;

            case 1:
                metric = 1;
                break;

            case 2:
                metric = 0;
                break;

            case 3:
                metric = 2;
                break;

            case 4:
                metric = 3;
                break;
            }
            noiseModel.IntegrateToCurrentPosition = integrateToCurrentPosition;
            noiseModel.NoiseMetric = metric;

            noiseModel.StartCalculation(ProgressChanged);
            temporalGrid = noiseModel.TemporalGrid;
            _view.Invoke(delegate { _view.NoiseCalculationCompleted(); });
        }
        private void Test_Load(object sender, EventArgs e)
        {
            var aircraft   = new Aircraft("GP7270", "wing");
            var generator  = new TrajectoryGenerator(aircraft, new ReferencePointRD());
            var reader     = new TrajectoryFileReader(CoordinateUnit.metric, generator);
            var trajectory = reader.CreateTrajectoryFromFile(Globals.currentDirectory + "track_schiphol.dat");


            for (int t = 0; t < trajectory.Duration; t++)
            {
                chartGroundPath.Series["Groundpath"].Points.AddXY(trajectory.Longitude(t), trajectory.Latitude(t));
            }
            AutoScaleChart(chartGroundPath);
            chartGroundPath.ChartAreas[0].AxisY.LabelStyle.Format = "{0.00}";
            chartGroundPath.ChartAreas[0].AxisX.LabelStyle.Format = "{0.00}";
            chartGroundPath.Series["Groundpath"].ChartType        = SeriesChartType.FastLine;



            for (int t = 0; t < trajectory.Duration; t++)
            {
                chartAltitude.Series["Altitude [m]"].Points.AddXY(t, trajectory.Z(t));
            }
            chartAltitude.Series["Altitude [m]"].ChartType = SeriesChartType.FastLine;


            /*
             * var reader = new TrajectoryFileReader(CoordinateUnit.metric);
             * trajectory = reader.createTrajectoryFromFile(Globals.currentDirectory + "track_schiphol.dat");
             *
             * aircraft = new Aircraft("GP7270", "wing");
             * noiseModel = new IntegratedNoiseModel(trajectory, aircraft);
             * noiseModel.StartCalculation(progressChanged);
             *
             * var legend = new LegendCreator();
             * legend.OutputLegendImage();
             * legend.OutputLegendTitle();
             *
             * TemporalGrid temporalGrid = noiseModel.TemporalGrid;
             * //temporalGrid.LowerLeftCorner = new Point3D(104062, 475470, 0, CoordinateUnit.metric);
             * //temporalGrid.GridSize = 125;
             *
             * var population = new PopulationData(Globals.currentDirectory + "population.dat");
             *
             * var camera = new FollowKMLAnimatorCamera(aircraft, trajectory);
             * var sections = new List<KMLAnimatorSectionInterface>() {
             *  new LegendKMLAnimator(),
             *  new AircraftKMLAnimator(aircraft, trajectory),
             *  new AirplotKMLAnimator(trajectory),
             *  new GroundplotKMLAnimator(trajectory),
             *  new ContourKMLAnimator(temporalGrid, trajectory, new List<int>() { 65, 70, 75 }),
             *  new AnnoyanceKMLAnimator(temporalGrid, population.getPopulationData())
             * };
             * var animator = new KMLAnimator(sections, camera);
             * animator.AnimationToFile(trajectory.Duration, Globals.currentDirectory + "test.kml");
             *
             * GoogleEarthServerForm googleEarthForm = new GoogleEarthServerForm();
             *
             * this.Hide();
             * googleEarthForm.Closed += (s, args) => this.Close();
             * googleEarthForm.Show();
             */
        }