Tighten HRRR grid profile retention from 48h to 24h
This commit is contained in:
parent
fe5228b306
commit
e028de51ae
1 changed files with 3 additions and 2 deletions
|
|
@ -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, _} =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue