Ejemplo n.º 1
0
        public SiteDopResults(DopData libraryAccuracyResults,
                              Dictionary <DilutionOfPrecisionType, ExtremesInfo> extremes,
                              BasicExtremesInfo <int> numberOfSatelliteExtremes)
            : base(extremes)
        {
            Location = libraryAccuracyResults.Positions[0];
            NumberOfSatellitesExtremes = numberOfSatelliteExtremes;

            List <NavigationDop> navDops = new List <NavigationDop>();

            for (int i = 0; i < libraryAccuracyResults.Dates.Count; i++)
            {
                NavigationDop nd = new NavigationDop();
                nd.Time = libraryAccuracyResults.Dates[i];
                nd.Pdop = libraryAccuracyResults.Series[DilutionOfPrecisionType.Position][i];
                nd.Hdop = libraryAccuracyResults.Series[DilutionOfPrecisionType.XY][i];
                nd.Vdop = libraryAccuracyResults.Series[DilutionOfPrecisionType.Z][i];
                nd.Tdop = libraryAccuracyResults.Series[DilutionOfPrecisionType.Time][i];
                nd.Xdop = libraryAccuracyResults.Series[DilutionOfPrecisionType.X][i];
                nd.Ydop = libraryAccuracyResults.Series[DilutionOfPrecisionType.Y][i];
                nd.NumberOfSatellites = libraryAccuracyResults.NumberOfSatellites[i];
                navDops.Add(nd);
            }
            Dops = navDops.ToArray();
        }
        public RouteDopResults(DopData libraryAccuracyResults,
                               Dictionary <DilutionOfPrecisionType,
                                           ExtremesInfo> extremes,
                               BasicExtremesInfo <int> numberOfSatellitesExtremes)
            : base(extremes)
        {
            Dops = new List <NavigationDopWithLocation>();
            NumberOfSatellitesExtremes = numberOfSatellitesExtremes;

            for (int i = 0; i < libraryAccuracyResults.Dates.Count; i++)
            {
                NavigationDopWithLocation ndl = new NavigationDopWithLocation();
                ndl.Hdop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.XY][i];
                ndl.Pdop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.Position][i];
                ndl.Vdop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.Z][i];
                ndl.Tdop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.Time][i];
                ndl.Xdop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.X][i];
                ndl.Ydop               = libraryAccuracyResults.Series[DilutionOfPrecisionType.Y][i];
                ndl.Location           = libraryAccuracyResults.Positions[i];
                ndl.Time               = libraryAccuracyResults.Dates[i];
                ndl.NumberOfSatellites = libraryAccuracyResults.NumberOfSatellites[i];
                Dops.Add(ndl);
            }
        }