Exemplo n.º 1
0
        /// <summary>
        /// 时段分组
        /// </summary>
        /// <param name="inputs"></param>
        /// <param name="MinPhaseSpanMinutes"></param>
        /// <returns></returns>
        public static Dictionary <TimePeriod, List <string> > TimePeriodGroup(string[] inputs, double MinPhaseSpanMinutes)
        {
            Dictionary <string, TimePeriod> periods = new Dictionary <string, TimePeriod>();

            foreach (var path in inputs)
            {
                if (!Geo.Utils.FileUtil.IsValid(path))
                {
                    continue;
                }
                var time = RinexObsFileReader.ReadPeriod(path);
                periods[path] = time;
            }

            Dictionary <TimePeriod, List <string> > grouped = TimePeriod.GroupToPeriods(periods, MinPhaseSpanMinutes);

            return(grouped);
        }