public SatInfoCaculator(FileEphemerisService navFile, XYZ stationPos) { this.EphemerisService = navFile; this.StationPos = stationPos; this.EleAngle = 15; this.LonLats = new List <AbstractVector>(); }
private void Init() { navFile = EphemerisDataSourceFactory.Create(FilePath); this.bindingSource_satsPrn.DataSource = navFile.Prns; sathelper = new SatInfoCaculator( navFile, StationPos); this.dateTimePicker_from.Value = navFile.TimePeriod.Start.DateTime; this.dateTimePicker_to.Value = navFile.TimePeriod.End.DateTime; this.dateTimePicker_moment.Value = this.dateTimePicker_from.Value; }
/// <summary> /// 检查并更新 /// </summary> /// <param name="ephFilePath"></param> /// <param name="clkFilePath"></param> /// <param name="isForceToUpdate"></param> public void CheckOrUpdateEphAndClkService(string ephFilePath, string clkFilePath, bool isForceToUpdate = false) { if ((this.EphemerisService == null || this.EphemerisService.SatCount == 0) || isForceToUpdate) { FileEphemerisService ephemerisDataSource = null; if (File.Exists(ephFilePath)) { ephemerisDataSource = EphemerisDataSourceFactory.Create(ephFilePath, FileEphemerisType.Unkown, true, Option.MinSuccesiveEphemerisCount); this.EphemerisService = ephemerisDataSource; } } if ((this.SimpleClockService == null || this.EphemerisService.SatCount == 0) || isForceToUpdate) { ISimpleClockService ClockService = null; if (File.Exists(clkFilePath)) { ClockService = new SimpleClockService(clkFilePath); } this.SimpleClockService = ClockService; } }