mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-10 11:24:10 +00:00
Skyplot: accept RINEX files in another path
This commit is contained in:
parent
2157cb3814
commit
0b490d80f9
@ -22,6 +22,7 @@ import re
|
||||
import sys
|
||||
from datetime import datetime, timedelta
|
||||
from math import atan2, cos, sin, sqrt
|
||||
from pathlib import Path
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
@ -447,7 +448,8 @@ def plot_satellite_tracks(satellites, obs_lat, obs_lon, obs_alt,
|
||||
plt.tight_layout()
|
||||
|
||||
if filename:
|
||||
filename_no_dots = filename.replace('.', '_')
|
||||
filename_no_path = Path(filename).name
|
||||
filename_no_dots = filename_no_path.replace('.', '_')
|
||||
output_name = f"skyplot_{filename_no_dots}.pdf"
|
||||
else:
|
||||
output_name = "skyplot.pdf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user