Commit 7f7f1b70 authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Added test for Issue 698 fix.

parent 55c7420c
......@@ -729,6 +729,22 @@ public class RinexLoaderTest {
Assert.assertEquals(37.594, ods.get(3).getObservationData().get(4).getValue(), 1.0e-15);
}
@Test
public void testIssue698() {
// Test missing Beidou observation type for Rinex 3.04
RinexObservationLoader loader = load("rinex/abcd083.06o");
AbsoluteDate t0 = new AbsoluteDate(2016, 3, 24, 13, 10, 36.0, TimeScalesFactory.getGPS());
List<ObservationDataSet> ods = loader.getObservationDataSets();
Assert.assertEquals(2, ods.size());
// Test Beidou
Assert.assertEquals(SatelliteSystem.BEIDOU, ods.get(1).getSatelliteSystem());
Assert.assertEquals(6, ods.get(1).getPrnNumber());
Assert.assertEquals(0.0, ods.get(1).getDate().durationFrom(t0), 1.0e-15);
Assert.assertEquals(41, ods.get(1).getObservationData().size());
}
private void checkObservation(final ObservationDataSet obser,
final int year, final int month, final int day,
final int hour, final int minute, final double second,
......
3.04 OBSERVATION DATA M RINEX VERSION / TYPE
Values contained in the files are not real ones. COMMENT
The objective is to test that Beidou observation type are COMMENT
read properly. COMMENT
XXRINEXO V9.9 AIUB 20060324 144333 UTC PGM / RUN BY / DATE
A 9080 MARKER NAME
9080.1.34 MARKER NUMBER
BILL SMITH ABC INSTITUTE OBSERVER / AGENCY
X1234A123 GEODETIC 1.3.1 REC # / TYPE / VERS
G1234 ROVER ANT # / TYPE
2104228. -5642017. 2095406. APPROX POSITION XYZ
.9030 .0000 .0000 ANTENNA: DELTA H/E/N
0 RCV CLOCK OFFS APPL
G 5 C1C L1W L2W C1W S2W SYS / # / OBS TYPES
C 41 C5D C5P C5X C6A C6Q C7D C7P C7Z C8D C8P C8X D5D D5P SYS / # / OBS TYPES
D5X D6A D7D D7P D7Z D8D D8P D8X L5D L5P L5X L6A L7D SYS / # / OBS TYPES
L7P L7Z L8D L8P L8X S5D S5P S5X S6A S7D S7P S7Z S8D SYS / # / OBS TYPES
S8P S8X SYS / # / OBS TYPES
18.000 INTERVAL
DBHZ SIGNAL STRENGTH UNIT
2006 03 24 13 10 36.0000000 GPS TIME OF FIRST OBS
18 R01 1 R02 2 R03 3 R04 4 R05 5 R06 -6 R07 -5 R08 -4 GLONASS SLOT / FRQ #
R09 -3 R10 -2 R11 -1 R12 0 R13 1 R14 2 R15 0 R16 4 GLONASS SLOT / FRQ #
R17 5 R18 -5 GLONASS SLOT / FRQ #
G L1C SYS / PHASE SHIFT
G L1W SYS / PHASE SHIFT
G L2W 0.00000 SYS / PHASE SHIFT
R L1C 0.00000 SYS / PHASE SHIFT
E L1B 0.00000 SYS / PHASE SHIFT
E L5I 0.00000 SYS / PHASE SHIFT
S L1C 0.00000 SYS / PHASE SHIFT
C1C 0.000 C2C 0.000 C2P 0.000 GLONASS COD/PHS/BIS
END OF HEADER
> 2016 03 24 13 10 36.0000000 0 2 0.000000000000
G06 23629347.915 651379.300 8 23629347.158 24.158
C06 23544632.969 6 125506152.806 6 40.400 23544630.660 6 125506177.799 6 38.200 23544639.055 5 97615985.468 5 33.900 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5 33.200 23544639.875 5 97615969.480 5
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment