public void Test_Rinex_Obs_Valid_Header_Parse()
        {
            var parser = new RinexObsParser("head.14o", ParseType.StoreData);

            parser.ParseHeader();
            Assert.IsTrue(true);
        }
        public void Test_Correct_Hatanaka_Header_Parse3()
        {
            var parser = new RinexObsParser("TRDS00NOR_S_20181710000_01D_30S_MO.crx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.IsTrue(hd.IsHatanaka, "hd.IsHatanaka");
        }
        public void Test_Correct_Hatanaka_Header_Parse2()
        {
            var parser = new RinexObsParser("STK200JPN_R_20183310000_01D_30S_MO.crx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.IsTrue(hd.IsHatanaka, "hd.IsHatanaka");
        }
        public void Test_Correct_Hatanaka_Header_Parse()
        {
            var parser = new RinexObsParser("ZIM300CHE_R_20182420828_01H_01S_MO.crx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.IsTrue(hd.IsHatanaka, "hd.IsHatanaka");
        }
        public void Glo_L3_Obs_Codes_Read()
        {
            var parser = new RinexObsParser("glo_L3_codes_test.rnx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.IsTrue(hd.ObsMetaData[SatelliteSystem.Glo].Observations.Contains(ObservationCode.L3X),
                          "hd.ObsMetaData[SatelliteSystem.Gps].Observations.Contains(ObservationCode.L3X)");
        }
        public void Test_Correct_Recognition_Of_Hatanaka_File()
        {
            var parser = new RinexObsParser("MATE00ITA_R_20181180000_01D_30S_MO.crx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.IsTrue(hd.IsHatanaka, "hd.IsHatanaka");
            parser = new RinexObsParser("head.14o", ParseType.RaiseEvents);
            parser.ParseHeader();
            hd = parser.ObsHeader.ObsHeaderData;
            Assert.IsFalse(hd.IsHatanaka, "!hd.IsHatanaka");
        }
        public void Test_Correct_Parse_Of_Rinex_Header_Of_Hatanala_File()
        {
            var parser = new RinexObsParser("MATE00ITA_R_20181180000_01D_30S_MO.crx", ParseType.RaiseEvents);

            parser.ParseHeader();
            var hd = parser.ObsHeader.ObsHeaderData;

            Assert.AreEqual(hd.X, 4641947.5008);
            Assert.AreEqual(hd.Y, 1393045.2215);
            Assert.AreEqual(hd.Z, 4133286.6560);
            Assert.AreEqual(hd.FirstObs, new DateTime(2018, 4, 28));
            Assert.AreEqual(hd.LastObs, new DateTime(2018, 4, 28, 23, 59, 30));
        }