Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions python/fusion_engine_client/analysis/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,11 +1253,24 @@ def plot_gnss_skyplot(self, decimate=True):
if dt_sec < interval_sec:
rounded_time = np.round(p1_time / interval_sec) * interval_sec
idx = np.where(np.diff(rounded_time, prepend=rounded_time[0]) > 0.01)[0]

# If this satellite appears for < interval_sec and all of its timestamps happen to round to the same
# time, idx will be empty. Pick the first point where az/el is available.
if len(idx) == 0:
idx = [find_first(~np.isnan(el_deg))]
if idx[0] < 0:
continue

p1_time = p1_time[idx]
az_deg = az_deg[idx]
el_deg = el_deg[idx]
max_cn0_dbhz = max_cn0_dbhz[idx]

# If we never had ephemeris for this satellite, or were otherwise not able to compute az/el, we
# can't put this satellite on the sky plot.
if np.all(np.isnan(el_deg)):
continue

# Plot the data. We set styles for both coloring by SV and by C/N0. We'll add buttons below to switch
# between styles.
color_by_sv_format.append({'color': color_by_prn[sv_id.get_prn()]})
Expand Down
Loading