Skip to content

Commit c7d3117

Browse files
committed
standardize signal type
1 parent 77d9fea commit c7d3117

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

docs/source/reference/reference.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ GNSS measurement naming conventions are as follows:
9696
name in lowercase, possible options are :code:`gps`, :code:`galileo`
9797
:code:`glonass`, :code:`qzss`, :code:`sbas`, etc.
9898
* :code:`sv_id` : (int) satellite vehicle identification number
99-
* :code:`signal_type` (string) Identifier for signal type, eg. GPS_L1,
100-
GPS_L5 and GAL_E5. We use the first three characters (capitalized) to
101-
represent the constellation, followed by an underscore and the
102-
signal band.
99+
* :code:`signal_type` (string) Identifier for signal type, eg.
100+
:code:`l1` for GPS L1 signal, :code:`e5` for Galileo's E5 signal or
101+
:code:`b1i` for BeiDou's B1I signal. The string is expected to
102+
consist of lowercase letters and numbers.
103103
* :code:`tx_sv_tow` (float) measured signal transmission time as
104104
sent by the space vehicle/satellite and in seconds since the start
105105
of the gps week.

gnss_lib_py/parsers/android.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ def postprocess(self):
9797
}
9898
self.replace(constellation_map, rows="gnss_id", inplace=True)
9999

100+
# rename signal_type column to conform to standard convention
101+
signal_map = {"GPS_L1" : "l1",
102+
"GPS_L5" : "l5",
103+
"GAL_E1" : "e1",
104+
"GAL_E5A" : "e5a",
105+
"GLO_G1" : "g1",
106+
"QZS_J1" : "j1",
107+
"QZS_J5" : "j5",
108+
"BDS_B1I" : "b1i",
109+
"BDS_B1C" : "b1c",
110+
"BDS_B2A" : "b2a",
111+
}
112+
self.replace(signal_map, rows="signal_type", inplace=True)
113+
100114
@staticmethod
101115
def _row_map():
102116
"""Map of row names from loaded to gnss_lib_py standard
@@ -174,7 +188,21 @@ def postprocess(self):
174188
7.:"irnss",
175189
}
176190
self.replace(constellation_map, rows="gnss_id", inplace=True)
177-
191+
192+
# rename signal_type column to conform to standard convention
193+
signal_map = {"GPS_L1" : "l1",
194+
"GPS_L5" : "l5",
195+
"GAL_E1" : "e1",
196+
"GAL_E5A" : "e5a",
197+
"GLO_G1" : "g1",
198+
"QZS_J1" : "j1",
199+
"QZS_J5" : "j5",
200+
"BDS_B1I" : "b1i",
201+
"BDS_B1C" : "b1c",
202+
"BDS_B2A" : "b2a",
203+
}
204+
self.replace(signal_map, rows="signal_type", inplace=True)
205+
178206
@staticmethod
179207
def _row_map():
180208
"""Map of row names from loaded to gnss_lib_py standard

0 commit comments

Comments
 (0)