Skip to content

Commit

Permalink
Minor doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kanhereashwin committed Aug 15, 2023
1 parent 3c18c00 commit c6301c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions gnss_lib_py/parsers/clk.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def __init__(self, input_paths):
self["b_sv_m"] = b_sv_m

def interpolate_clk(self, navdata, window=6, verbose=False):
"""Interpolate clock data from clk file.
"""Interpolate clock data from clk file, adding inplace to given
NavData instance.
Parameters
----------
Expand Down Expand Up @@ -136,7 +137,7 @@ def interpolate_clk(self, navdata, window=6, verbose=False):
b_sv_m = np.zeros(len(navdata_id))
b_dot_sv_mps = np.zeros(len(navdata_id))

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

row_idx = navdata.argwhere("gnss_sv_id",gnss_sv_id)
navdata["b_sv_m",row_idx] = b_sv_m
navdata["b_dot_sv_mps",row_idx] = b_dot_sv_mps
navdata["b_dot _sv_mps",row_idx] = b_dot_sv_mps
6 changes: 3 additions & 3 deletions gnss_lib_py/parsers/sp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def __init__(self, input_paths):
input_paths = [input_paths]

gps_millis = []
unix_millis = []
gnss_sv_ids = []
gnss_id = []
sv_id = []
Expand Down Expand Up @@ -105,7 +104,8 @@ def __init__(self, input_paths):
self["z_sv_m"] = z_sv_m

def interpolate_sp3(self, navdata, window=6, verbose=False):
"""Interpolate ECEF position data from sp3 file.
"""Interpolate ECEF position data from sp3 file, inplace to
given navdata instance.
Parameters
----------
Expand Down Expand Up @@ -148,7 +148,7 @@ def interpolate_sp3(self, navdata, window=6, verbose=False):

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

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

0 comments on commit c6301c8

Please sign in to comment.