/// <summary> /// 获取频率 /// </summary> /// <param name="type"></param> /// <param name="rinexNum"></param> /// <param name="satNumber"></param> /// <param name="time">时间,历元,GLONASS或频分多址需要</param> /// <returns></returns> public static Frequence GetFrequence(GnssType type, int rinexNum, int satNumber = -1, Time time = default(Time)) { return(ObsCodeConvert.GetFrequenceBand(type, rinexNum, satNumber, time)); }
/// <summary> /// 获取第3频率,推荐方法 /// </summary> /// <param name="prn">卫星编号</param> /// <param name="time">时间,GLONASS需要</param> /// <returns></returns> public static Frequence GetFrequenceC(SatelliteNumber prn, Time time = default(Time)) { return(ObsCodeConvert.GetFrequenceBand(GnssSystem.GetGnssType(prn.SatelliteType), FrequenceType.C, prn.PRN, time)); }
/// <summary> /// 获取系统第3频率 /// </summary> /// <param name="type"></param> /// <param name="satNumber"></param> /// <param name="time">时间,历元,GLONASS需要</param> /// <returns></returns> public static Frequence GetFrequenceC(SatelliteType type, int satNumber = -1, Time time = default(Time)) { return(ObsCodeConvert.GetFrequenceBand(GnssSystem.GetGnssType(type), FrequenceType.C, satNumber, time)); }
/// <summary> /// 获取频率 /// </summary> /// <param name="prn"></param> /// <param name="frequenceType"></param> /// <param name="time">时间,历元,GLONASS或频分多址需要</param> /// <returns></returns> public static Frequence GetFrequence(SatelliteNumber prn, FrequenceType frequenceType, Time time = default(Time)) { return(GetFrequence(prn.SatelliteType, frequenceType, prn.PRN, time)); }
/// <summary> /// 结束减去起始 /// </summary> /// <param name="end"></param> /// <returns></returns> public double GetDifferFromStart(Time end) { return(GetY(end) - GetY(FirstTime)); }
/// <summary> /// 结束减去起始 /// </summary> /// <param name="start"></param> /// <param name="end"></param> /// <returns></returns> public double GetDifferOf(Time end, Time start) { return(GetY(end) - GetY(start)); }
/// <summary> /// 获取结果 /// </summary> /// <param name="time"></param> /// <returns></returns> public RmsedNumeral GetRmsedY(Time time) { var y = GetY(time); return(new RmsedNumeral(y, this.LsPolyFit.StdDev)); }
private static SelectObsParam ParseDic(Dictionary <string, List <string> > dic) { SelectObsParam SelectObsParam = new SelectObsParam(); var Option = SelectObsParam.Option; foreach (var item in dic) { var type = Gdp.Utils.EnumUtil.TryParse <SelectObsParamType>(item.Key); var listVal = item.Value; switch (type) { case SelectObsParamType._: break; case SelectObsParamType.F: break; case SelectObsParamType.OutputDirectory: SelectObsParam.OutputDirectory = (listVal[0]); break; case SelectObsParamType.InputPath: SelectObsParam.InputPath = (listVal); break; case SelectObsParamType.SatelliteType: var sats = new List <SatelliteType>(); foreach (var val in listVal) { var satType = Utils.EnumUtil.TryParse <SatelliteType>(val); sats.Add(satType); } Option.IsEnableSatelliteTypes = true; Option.SatelliteTypes = sats; break; case SelectObsParamType.StartTime: Option.IsEnableTimePeriod = true; Option.TimePeriod.Start = Time.Parse(listVal.ToArray()); break; case SelectObsParamType.EndTime: Option.IsEnableTimePeriod = true; Option.TimePeriod.End = Time.Parse(listVal.ToArray()); break; case SelectObsParamType.IncludeSiteNames: Option.IsEnableIncludeSiteNames = true; Option.IncludeSiteNames = (listVal); break; case SelectObsParamType.ExcludeSiteNames: Option.ExcludeSiteNames = (listVal); break; case SelectObsParamType.ObsCodes: Option.IsEnableObsCodes = true; Option.ObsCodes = (listVal); break; case SelectObsParamType.MinEpochCount: Option.IsEnableMinEpochCount = true; Option.MinEpochCount = Utils.IntUtil.ParseInt(listVal[0]); break; case SelectObsParamType.MinFrequencyCount: Option.IsEnableMinFrequencyCount = true; Option.MinFrequencyCount = Utils.IntUtil.ParseInt(listVal[0]); break; case SelectObsParamType.MinFileSizeMB: Option.IsEnableMinFileSizeMB = true; Option.MinFileSizeMB = Utils.DoubleUtil.TryParse(listVal[0]); break; default: log.Warn(type + " Not implemented "); break; } } return(SelectObsParam); }