public static DCBFile Read(string path) { DCBFile dcbFile = new DCBFile(path); dcbFile.TryRead(); return(dcbFile); }
public static void DCBCorrect(ref List <OEpoch> epoches, DCBFile file) { double p2; double p1p2; for (int i = 0; i < epoches.Count; i++) { var epo = epoches[i]; foreach (var prn in epo.AllSat.Keys) { var sat = epo[prn]; p2 = sat["P2"]; if (Math.Abs(p2) > 0.001) { p1p2 = file[prn] * 1e-9; sat["P2"] = p2 + p1p2 * Common.C0; } } } }
public DCBFile GetDCB(int year, int month, string type = "p1p2") { for (int i = 0; i < Files.Count; i++) { DCBFile file = Files[i]; if (file.Type != type) { continue; } if (file.Year != year) { continue; } if (file.Month != month) { continue; } return(file); } return(null); }