Create derived csv daily. Get historical FAA data

This commit is contained in:
ggman12
2026-02-02 20:48:35 -05:00
parent 2e60c64f61
commit 16a0a5fec8
12 changed files with 677 additions and 88 deletions
+14
View File
@@ -0,0 +1,14 @@
#unique_regulatory_id
# 1. read historoical and output
# 2. read sequentially
# Instead of reading all csvs I can read just the latest release csv to get everything.
from pathlib import Path
base = Path("data/faa_releasable_historical")
for day_dir in sorted(base.glob("2024-02-*")):
master = day_dir / "Master.txt"
if master.exists():
out_csv = master_txt_to_releasable_csv(master, out_dir="data/faa_releasable_historical_csv")
print(day_dir.name, "->", out_csv)