1
0
Fork 0

Consistent color for dopplers

merge-requests/2/head
Michał Drzał 2022-06-22 00:55:52 +02:00 committed by GitHub
parent cfeefde4ac
commit 75d7ed343a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ if __name__ == "__main__":
timestamps = [ x.replace(tzinfo=utc) for x in s.t]
for sat_info in satellite_info:
satellite = EarthSatellite(sat_info["tle"][-2], sat_info["tle"][-1])
t, events = satellite.find_events(site_location, t0, t1, altitude_degrees=10.0)
t, events = satellite.find_events(site_location, t0, t1, altitude_degrees=0.0)
if len(t) > 0:
pairs = [ (ti, event) for ti, event in zip(t, events)]
if pairs[0][1] in [1,2]:
@ -117,7 +117,7 @@ if __name__ == "__main__":
for freq in sat_info["frequencies"]:
freq1 = (freq - fcen * 1e-6)
dfreq = freq1 - range_rate.km_per_s / C * freq # MHz
ax.plot([mdates.date2num(x) for x in selected_timestamps], dfreq)
ax.plot([mdates.date2num(x) for x in selected_timestamps], dfreq,c="lime")
image = imshow(ax, s.z, origin="lower", aspect="auto", interpolation="None",
vmin=vmin, vmax=vmax,