From e028de51aeb538346acbc36b43732564b8c6401f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 31 Mar 2026 17:20:46 -0500 Subject: [PATCH] Tighten HRRR grid profile retention from 48h to 24h --- lib/microwaveprop/weather.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/microwaveprop/weather.ex b/lib/microwaveprop/weather.ex index b89b23f2..540994bd 100644 --- a/lib/microwaveprop/weather.ex +++ b/lib/microwaveprop/weather.ex @@ -257,11 +257,12 @@ defmodule Microwaveprop.Weather do end @doc """ - Delete HRRR grid profiles older than 48 hours that sit on the 0.125° grid. + Delete HRRR grid profiles older than 24 hours that sit on the 0.125° grid. Preserves QSO-linked profiles which are at arbitrary lat/lon positions. + With 19 forecast hours per run, this keeps ~2 runs worth of grid profiles. """ def prune_old_grid_profiles do - cutoff = DateTime.add(DateTime.utc_now(), -48, :hour) + cutoff = DateTime.add(DateTime.utc_now(), -24, :hour) step = 0.125 {deleted, _} =