don't average entire day

This commit is contained in:
Cyberes 2024-08-16 23:54:04 -06:00
parent fbebb66075
commit e324c077d2
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ def main():
for tecmap, epoch in get_tecmaps(ionex_data): for tecmap, epoch in get_tecmaps(ionex_data):
avg_tec = np.mean(plot_tec_map(tecmap, [float(LON_RANGE_MIN), float(LON_RANGE_MAX)], [float(LAT_RANGE_MIN), float(LAT_RANGE_MAX)])) avg_tec = np.mean(plot_tec_map(tecmap, [float(LON_RANGE_MIN), float(LON_RANGE_MAX)], [float(LAT_RANGE_MIN), float(LAT_RANGE_MAX)]))
tec_data.append(avg_tec) tec_data.append(avg_tec)
daily_avg = round(np.mean(tec_data), 1) latest = round(tec_data[-1], 1)
publish('vtec', daily_avg) publish('vtec', latest)
time.sleep(1800) time.sleep(1800)