mirror of
https://github.com/PlaneQuery/OpenAirframes.git
synced 2026-05-07 01:46:42 +02:00
efe63743ab
feat: add combine_historical_faa.py to process historical FAA data
14 lines
490 B
Python
14 lines
490 B
Python
#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) |