Skip to content

Commit c6301c8

Browse files
committed
Minor doc updates
1 parent 3c18c00 commit c6301c8

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

gnss_lib_py/parsers/clk.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def __init__(self, input_paths):
9494
self["b_sv_m"] = b_sv_m
9595

9696
def interpolate_clk(self, navdata, window=6, verbose=False):
97-
"""Interpolate clock data from clk file.
97+
"""Interpolate clock data from clk file, adding inplace to given
98+
NavData instance.
9899
99100
Parameters
100101
----------
@@ -136,7 +137,7 @@ def interpolate_clk(self, navdata, window=6, verbose=False):
136137
b_sv_m = np.zeros(len(navdata_id))
137138
b_dot_sv_mps = np.zeros(len(navdata_id))
138139

139-
# iterate through needed polynoials so don't repeat fit
140+
# iterate through needed polynomials so don't repeat fit
140141
insert_indexes = np.searchsorted(x_data,navdata_id_gps_millis)
141142
for insert_index in np.unique(insert_indexes):
142143
max_index = min(len(clk_id)-1,insert_index+int(window/2))
@@ -159,4 +160,4 @@ def interpolate_clk(self, navdata, window=6, verbose=False):
159160

160161
row_idx = navdata.argwhere("gnss_sv_id",gnss_sv_id)
161162
navdata["b_sv_m",row_idx] = b_sv_m
162-
navdata["b_dot_sv_mps",row_idx] = b_dot_sv_mps
163+
navdata["b_dot _sv_mps",row_idx] = b_dot_sv_mps

gnss_lib_py/parsers/sp3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(self, input_paths):
4747
input_paths = [input_paths]
4848

4949
gps_millis = []
50-
unix_millis = []
5150
gnss_sv_ids = []
5251
gnss_id = []
5352
sv_id = []
@@ -105,7 +104,8 @@ def __init__(self, input_paths):
105104
self["z_sv_m"] = z_sv_m
106105

107106
def interpolate_sp3(self, navdata, window=6, verbose=False):
108-
"""Interpolate ECEF position data from sp3 file.
107+
"""Interpolate ECEF position data from sp3 file, inplace to
108+
given navdata instance.
109109
110110
Parameters
111111
----------
@@ -148,7 +148,7 @@ def interpolate_sp3(self, navdata, window=6, verbose=False):
148148

149149
xyz_sv_m = np.zeros((6,len(navdata_id)))
150150

151-
# iterate through needed polynoials so don't repeat fit
151+
# iterate through needed polynomials so don't repeat fit
152152
insert_indexes = np.searchsorted(x_data,navdata_id_gps_millis)
153153
for insert_index in np.unique(insert_indexes):
154154
max_index = min(len(sp3_id)-1,insert_index+int(window/2))

0 commit comments

Comments
 (0)