Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from tqdm import tqdm
import cycle
import cifp
import procedures

states_in_regions = {
"AK": ["AK",],
Expand Down Expand Up @@ -73,8 +74,10 @@ def make_data():
for script in tqdm(["saa", "airport", "runway", "freq", "fix", "nav", "dof", "awos", "aw"],
desc="Running PERL database files"):
call_perl_script(script)
# CIFP too
cifp.parse_cifp()

# CIFP transition sequences (procedures table); uses the d-TPP metafile for
# readable names when present, otherwise synthesizes them.
procedures.parse_procedures()


def make_db(extra=""):
Expand Down
3 changes: 2 additions & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"https://nfdc.faa.gov/webContent/28DaySub/28DaySubscription_Effective_" + start_date + ".zip",
"https://nfdc.faa.gov/webContent/28DaySub/" + start_date + "/aixm5.0.zip",
"https://aeronav.faa.gov/Obst_Data/DAILY_DOF_DAT.ZIP",
"https://aeronav.faa.gov/Upload_313-d/cifp/CIFP_" + start_date[2:].replace("-", "") + ".zip"
"https://aeronav.faa.gov/Upload_313-d/cifp/CIFP_" + start_date[2:].replace("-", "") + ".zip",
"https://aeronav.faa.gov/d-tpp/" + cycle.get_cycle_download() + "/xml_data/d-TPP_Metafile.xml"
]

common.download_list(all_charts)
Expand Down
6 changes: 3 additions & 3 deletions legacy/importother.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ CREATE TABLE saa(designator TEXT,name TEXT,upperlimit TEXT,lowerlimit TEXT,begin
CREATE TABLE airways(name Text, sequence Text, Latitude float, Longitude float);
.import aw.csv airways

CREATE TABLE cifp_sid_star_app(record_type Text,customer_area_code Text,section_code Text,airport_identifier Text,icao_code_1 Text,subsection_code Text,sid_star_approach_identifier Text,route_type Text,transition_identifier Text,sequence_number Text,fix_identifier Text,icao_code_2 Text,section_code_2 Text,subsection_code_2 Text,continuation_record_number Text,waypoint_description_code Text,turn_direction Text,rnp Text,path_and_termination Text,turn_direction_valid Text,recommended_navaid Text,icao_code_3 Text,arc_radius Text,theta Text,rho Text,magnetic_course Text,route_distance_holding_distance_or_time Text,recd_nav_section Text,recd_nav_subsection Text,reserved Text,altitude_description Text,atc_indicator Text,altitude_1 Text,altitude_2 Text,transition_altitude Text,speed_limit Text,vertical_angle Text,center_fix_or_taa_procedure_turn_indicator Text,multiple_code_or_taa_sector_identifier Text,icao_code_4 Text,section_code_3 Text,subsection_code_3 Text,gps_fms_indication Text,speed_limit_description Text,apch_route_qualifier_1 Text,apch_route_qualifier_2 Text,file_record_number Text,cycle_date Text);
.import cifp_sid_star_app.csv cifp_sid_star_app

CREATE TABLE geo(Latitude float, Longitude float, height float, declination float);
.import geo.csv geo

CREATE TABLE cifp(LocationID Text, procedure Text, ifix Text, sequence Text, fix Text, altitude Text, altitude_type Text, altitude2 Text, latitude float, longitude float, bearing float);
.import procedures.csv cifp
Loading
Loading