Tighten HRRR grid profile retention from 48h to 24h

This commit is contained in:
Graham McIntire 2026-03-31 17:20:46 -05:00
parent fe5228b306
commit e028de51ae
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -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, _} =