Exemplo n.º 1
0
        /// <summary>
        /// 时段计算
        /// </summary>
        /// <param name="files"></param>
        /// <param name="Option"></param>
        /// <param name="netPeriod"></param>
        private void RunPpp(List <ObsSiteInfo> files, GnssProcessOption Option, TimePeriod netPeriod)
        {
            if (files.Count == 0)
            {
                log.Warn("没有文件!"); return;
            }

            //设置独立的输出目录
            var OriginalDirectory = Option.OutputDirectory;

            Option.OutputDirectory = Option.GetSolverDirectory(netPeriod);
            Geo.Utils.FileUtil.CheckOrCreateDirectory(Option.OutputDirectory);

            this.ObsSiteInfos = new ObsSiteInfos(files);
            var pppRunner = new PointPositionBackGroundRunner(Option, ObsSiteInfos.GetFilePathes().ToArray());

            pppRunner.ParallelConfig = ParallelConfig;
            pppRunner.ProgressViewer = ProgressViewer;
            pppRunner.Processed     += PppRunner_Processed;
            pppRunner.Completed     += PppRunner_Completed;
            pppRunner.Init();
            pppRunner.Run();

            //恢复目录
            Option.OutputDirectory = OriginalDirectory;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 时段计算
        /// </summary>
        /// <param name="files"></param>
        /// <param name="Option"></param>
        /// <param name="netPeriod"></param>
        private void RunPpp(List <ObsSiteInfo> files)
        {
            if (files.Count == 0)
            {
                log.Warn("没有文件!"); return;
            }

            //设置独立的输出目录
            this.ObsSiteInfos = new ObsSiteInfos(files);
            var pppRunner = new PointPositionBackGroundRunner(Option, ObsSiteInfos.GetFilePathes().ToArray());

            pppRunner.ParallelConfig = ParallelConfig;
            pppRunner.ProgressViewer = ProgressViewer;
            pppRunner.Processed     += PppRunner_Processed;
            pppRunner.Completed     += PppRunner_Completed;
            pppRunner.Init();
            pppRunner.Run();
        }