Esempio n. 1
0
 /// <summary>
 /// 从观测类型提取频率类型
 /// </summary>
 /// <param name="ObsDataType"></param>
 /// <returns></returns>
 public static FrequenceType GetFrequenceTypeFromObsDataType(SatObsDataType ObsDataType)
 {
     if (ObsDataType.ToString().EndsWith("A"))
     {
         return(FrequenceType.A);
     }
     else if (ObsDataType.ToString().EndsWith("B"))
     {
         return(FrequenceType.B);
     }
     else if (ObsDataType.ToString().EndsWith("C"))
     {
         return(FrequenceType.C);
     }
     return(FrequenceType.A);
 }
Esempio n. 2
0
        /// <summary>
        /// 构造文件名称
        /// </summary>
        /// <returns></returns>
        public string BuildFileName(string ObsFileName, CycleSlipDetectorType DetectType, SatObsDataType SatObsDataType)
        {
            var           timeMark = DateTime.Now.Ticks.ToString();
            StringBuilder sb       = new StringBuilder();

            sb.Append(ObsFileName);
            //sb.Append("_");
            //sb.Append(timeMark.Substring(timeMark.Length / 2));//避免相同文件文件的时间冲突。
            sb.Append("_");
            sb.Append(DetectType.ToString());
            sb.Append("_");
            sb.Append(SatObsDataType.ToString());
            sb.Append(".CycleSlip");
            return(sb.ToString());
        }