mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-26 23:22:53 +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
|
import sys
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from math import atan2, cos, sin, sqrt
|
from math import atan2, cos, sin, sqrt
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -447,7 +448,8 @@ def plot_satellite_tracks(satellites, obs_lat, obs_lon, obs_alt,
|
|||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
|
|
||||||
if filename:
|
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"
|
output_name = f"skyplot_{filename_no_dots}.pdf"
|
||||||
else:
|
else:
|
||||||
output_name = "skyplot.pdf"
|
output_name = "skyplot.pdf"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user