myles-cramer / ads-b

A custom ArcGIS Pro toolbox with multiple Python-based geoprocessing tools to automate and simplify processing and analysis of Automatic Dependent Surveillance-Broadcast (ADS-B) for better understanding aircraft overflights of National Park Service (NPS) management units.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ads-b

ADS-B Overflight Analysis Toolbox

A custom ArcGIS Pro toolbox with multiple Python-based geoprocessing tools to automate and simplify processing and analysis of Automatic Dependent Surveillance-Broadcast (ADS-B) for better understanding aircraft overflights of National Park Service (NPS) management units.

Overview of ADS-B Overflight Analysis

Monitoring low-level overflights is important for the NPS to fulfill its mission of providing public enjoyment while preserving cultural and natural resources (Miller et al., 2017), which includes understanding relationships between overflights and quality terrestrial visitor experiences (Mace et al., 2013). Overflight noise can degrade the acoustic environment (Beeco et al., 2020) which has been shown to have adverse effects on the experiences of visitors (McDonald et al., 1995). Research at Hawai‘i Volcanoes National Park, which received the most reported air tours of any national park in 2019 (Lignell, 2020), determined that visitors found it unacceptable to hear overflight noise more than once per 15-minute interval (Lawson et al., 2007). The sight of too many overflights may also experientially impact visitors (Tarrant et al., 1995). Furthermore, overflights have been shown to impact biophysical resources, such as wildlife (Shannon et al., 2016), which subsequently could also compromise the visitor experience (Prakash et al., 2019)

A relatively new technology, Automatic Dependent Surveillance-Broadcast (ADS-B), can be used to understand overflight travel patterns (Beeco & Joyce, 2019). ADS-B technology features a radio signal that is broadcasted from aircraft for monitoring purposes which improves airspace safety and air traffic efficiency (FAA, 2018). Data, including position, velocity, and aircraft identification, are sent to other aircraft and ground stations (Duong et al., 2019). Broadcasted ADS-B data is unencrypted, publicly accessible, and can be collected using a data logger (Beeco & Joyce, 2019).

Data logger components include antennas, software, display screen, USB dongle, 5V AC-DC regulator, 50’ AC power cable, thermal transfer pads, and a shielded aluminum enclosure (Beeco & Joyce, 2019). A terrestrial data logger with an expansive skyward exposure is effective at collecting large volumes of ADS-B data as millions of aircraft waypoints (Beeco & Joyce, 2020).

ADS-B data loggers can record latitude, longitude, a timestamp, altitude, and unique identification codes. The unique identification code can be related to data contained in the FAA Releasable Database which provides additional relevant data including the aircraft tail number, type, and operator.

Toolbox Purpose

This repository documents and points users to a downloadable ArcGIS Pro project file containing a custom ArcGIS Pro toolbox with multiple Python-based geoprocessing tools. The parent Python script serving as the basis of each geoprocessing tool may also be accessed. These tools can be used to process raw ADS-B data files recorded on site by data loggers, compute required flight-related attributes to support analysis, and create aircraft waypoint and flightline feature classes. Additional included tools help automate merging daily waypoint and flightline files, facilitate screening of flights meeting certain criteria that may be omitted from further analysis, and generate summary statistics and analytical outputs for use in overflight reports.

Access the Current ArcGIS Pro Project File

https://arcg.is/1vLjHu

Get Started with the Toolbox

Each geoprocessing tool in the ADS-B Overflight Analysis Toolbox is described below and includes a tool summary, list of parameters, associated ArcGIS license and extension requirements needed for successful tool operation, and a description section containing details about the processing completed.

Before starting, be sure to have an ArcGIS Pro project file created with the additional features:

  • Add a folder connection to the system folder containing raw ADS-B data files in TSV format (e.g., InputData).
  • Create and add a folder connection to another system folder that will store CSV outputs from Tool #1 (e.g., OutputData).
  • Add a file or enterprise geodatabase to your project containing, at minimum, study area specific files for the unit boundary and digital elevation model that records elevation in units of meters.
  • Add a file or enterprise geodatabase to your project that contains, at minimum, two tables imported from the FAA Releasable Database. The required tables are MASTER and ACFTREF. A compressed file containing text-based attribute tables valid for a calendar year can be downloaded from https://www.faa.gov/licenses_certificates/aircraft_certification/aircraft_registry/releasable_aircraft_download/.
  • Finally, download the ADS-B Overflight Analysis Toolbox and add it to your ArcGIS Pro project.

Tools in the ADS-B Overflight Analysis Toolbox provide several checks that remove records from further analysis. Users may need to modify these procedures to suit their particular needs. Filtering operations are outlined in the Description section for each tool. Those indicated by bold text are operations that are hard-coded into the script and cannot be changed within the script tool dialog window.

Tool #1 - Process Raw ADS-B Data Files

Summary

ArcGIS script-based tool code based upon tool_1.py that reads raw ADS-B data from the logger, creates unique flights, and generates output CSV files for later GIS operations. The output CSV filename uses the convention ADSB_National Park Unit Code_ADS-B Acquisition Date.csv where the acquisition date is obtained from the input TSV file.

Parameters

Label Explanation Type Direction Data Type
National Park Unit Code Four character abbreviation code for NPS unit. Required Input String
Raw ADS-B File The ADS-B file downloaded from the data logger. Required Input File
Flight Duration Threshold Maximum time between successive waypoints for a unique flight. Required Input Long
Output CSV Folder Folder where processed CSV file will be saved. Required Input Workspace

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Description

Ingests and pre-processes a single daily ADS-B data logger TSV file and returns a new daily file in CSV format. This tool can be operated in "batch" mode within ArcGIS Pro to process many daily ADS-B files at once. Tool messaging includes data regarding QA/QC results, number of unique aircraft and flights, and total execution time. Important preprocessing steps include:

  • Unpacking validFlags data from the ADS-B input file and removing any records with invalid latitude, longitude, and/or altitude flags.
  • Removes any records with Time Since Last Communication (TSLC) values equal to 0 or greater than or equal to 3 (i.e., only TSLC values of 1 or 2 are retained).
  • Converts original Unix timestamps to Python datetime objects in UTC which are then re-scaled to integer values.
  • Calculating the time difference between sequential waypoints for each aircraft.
  • Removes any identical waypoints in a single daily file that has the same values for ICAO address, time, latitude, and longitude.
  • Appending a zero-based index to the ICAO Address for a new FlightID attribute field and values (e.g., ICAO_0, ICAO_1, etc). A new flight by the same aircraft is indicated when two sequential waypoints have a time difference exceeding the user parameter “Flight Duration Threshold” which is set to a default value of 900 seconds.
  • Removing any records where a unique flight_id has just a single recorded waypoint.

Tool #2 - Create Waypoint and Flightline Feature Classes

Summary

ArcGIS script-based tool code based upon tool_2.py that ingests ADS-B data processed with Tool #1 and produces point (aircraft waypoints) and line (aircraft flightlines) feature classes within a buffer distance of a management unit polygon and below a threshold altitude. The buffer distance and altitude threshold values are user-defined. The attribute table for the output aircraft flightlines has appended to it select fields and values from the FAA Releasable Database, as well as the new field 'Sinuosity'.

Sinuosity values are calculated as the ratio of the curvilinear length of the flightline and the Eucliean distance between the first and last waypoint comprising the flightline and may be used to identify specific types of flights, including straight line paths typical of commercial aircraft and regular curvilinear paths characteristic of survey flights.

Parameters

Label Explanation Type Direction Data Type
Processed ADS-B File An output file produced by Tool #1 in the ADS-B Overflight Analysis Toolbox. Required Input File
Management Unit Polygon File A polygon feature representing the boundary of the management unit study area. Required Input Feature Class
Buffer Distance The distance (in miles) around the input feature(s) that will be buffered. Required Input String
Altitude (MSL) Threshold in Feet The distance around the input features that will be buffered. Required Input Long
Select FAA Releasable Database Choose a locally stored geodatabase copy of the FAA Releasable Database. Required Input Workspace
Output Workspace Output geodatabase where aircraft waypoint and flightline files will be written. Required Input Workspace

Licensing and Extension Information

  • Basic - Requires Spatial Analyst
  • Standard - Requires Spatial Analyst
  • Advanced - Requires Spatial Analyst

Description

Ingests preprocessed ADS-B CSV files produced by Tool #1 and creates point (aircraft waypoints) and line (aircraft flightlines) feature classes in an existing geodatabase workspace. Aircraft data located beyond user-defined horizontal (distance in miles) and vertical buffers (MSL altitude in feet) with the horizontal buffer file being written to the output geodatabase. Tool messaging includes data number of flightlines with a null value for aircraft N Number and total execution time. Several additional processing steps are also executed, including:

  • Converting original MSL altitude units in the aircraft waypoints table from meters to feet.
  • Calculating a new Alt_AGL field (altitude above ground level) in the aircraft waypoints table with values based on aircraft waypoint MSL altitudes minus corresponding terrain elevations from a user-supplied digital elevation model (DEM).
  • Adding new fields and values for the aircraft flightlines feature class including ICAO Address (retrieved from the aircraft waypoint table), Sinuosity, and LengthMiles. Sinuosity is calculated as the ratio of the curvilinear length of the flightline and the Euclidean distance between the first and last waypoint comprising the flightline and may be used later to identify specific types of flights, including straight line paths typical of commercial aircraft and regular curvilinear paths characteristic of survey flights. The field LengthMiles is the total length of the flightpath in miles.
  • Removes any aircraft flightline features with a length of 0.
  • Performing a table join between aircraft flightlines and select fields from the FAA Releasable Database. Joined fields from the MASTER table include N-Number, MFR MDL CODE, TYPE REGISTRANT, NAME, and Type Engine. A single field – Model – is joined from the ACFTREF table.

Tool #3 - Merge Daily Waypoints and Flightlines

Summary

ArcGIS script-based tool code based upon tool_3.py that merges daily aircraft waypoint and flightlines feature classes into single feature classes for a desired time interval.

Parameters

Label Explanation Type Direction Data Type
Input Workspace The geodatabase workspace containing daily waypoint and flightline feature classes. Required Input Workspace
Management Unit Polygon File A polygon feature representing the boundary of the management unit study area. Required Input Feature Class
Output Workspace The geodatabase workspace where merged waypoint and flightline feature classes will be written. Required Input Workspace
Output Merged Waypoints The output waypoint feature class that will be written after merging two or more daily waypoint files. Required Output Feature Class
Ouput Merged Flightlines The output flightline feature class that will be written after merging two or more daily flighline files. Required Output Feature Class

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Description Merges a series of user-selected daily aircraft waypoint and flightline feature classes into single feature classes. Waypoints are further filtered to identify and remove duplicates based on the attribute fields flight_id, lat, lon, and DATE. Tool messaging includes the number of original, duplicate, and final waypoints and the total number of unique aircraft flightlines in the merged aircraft waypoint and flightline feature classes, respectively. Key processing steps executed include:

  • A new field called DATE is created based on the original datetime stamp field TIME, but includes only the yyyyMMdd information. The newly created DATE field is deleted at the end of the script after it is no longer needed.
  • Combines all point feature classes in the input workspace into a single merged waypoint feature class.
  • Removes duplicate waypoints from the merged feature class if identical values appear in the flight_id, lat, lon, and DATE fields.
  • Combines all line feature classes in the input workspace into a single merged flightline feature class.

Tool #4 - Create Screening Features

Summary

ArcGIS script-based tool code based upon tool_4.py that creates a waypoint and flightline feature class containing features meriting further scrutiny for inclusion in later analyses. User's may use screening parameters including the FAA Releasable Database attribute 'Type Registrant', minimum and maximum 'Sinuosity" value, and minimum flight path length (in miles).

Parameters

Label Explanation Type Direction Data Type
Input Waypoint File Merged waypoints feature class produced by Tool #3. Required Input Feature Class
Input Flightline File Merged flightlines feature class produced by Tool #3. Required Input Feature Class
Type Registrant Value A single value or comma-separated list of values representing aircraft registrant types from the FAA Releasable Database that may be eliminated from further analysis. Required Input String
Sinuosity Values A comma-separated list of values for the minimum and maximum sinuosity below or above which flightlines may be eliminated from further analysis. Required Input String
Aircraft Operator Name A comma-separated list of values for commerical airlines flying in the region. Required Input String
Minimum Flight Length (miles) A single value representing the minimum flightline length (in miles) below which flightlines may be eliminated from further analysis. Required Input Long
Output Waypoints for Screening Output waypoint feature class meeting screening critera for further examination. Required Output Feature Class
Output Flightlines for Screening Output flightline feature class meeting screening critera for further examination. Required Output Feature Class

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Tool #5 - Summarize Waypoint Altitudes

Summary

ArcGIS script-based tool code based upon tool_5.py that generates an output table summarizing waypoint frequencies by ten fixed 500 foot altitude bands.

Parameters

Label Explanation Type Direction Data Type
Input Waypoint File Merged waypoints feature class produced by Tool #3. Required Input Feature Class
Output Workspace The geodatabase workspace where the summary table will be written. Required Input Workspace

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Tool #6 - Summarize Flights by Hour and Month

Summary

ArcGIS script-based tool code based upon tool_6.py that generates an output table summarizing waypoint frequencies by hour and month.

Parameters

Label Explanation Type Direction Data Type
Input Waypoint File Merged waypoints feature class produced by Tool #3. Required Input Feature Class
Output Workspace The geodatabase workspace where the summary table will be written. Required Input Workspace
Hourly Flight Summary Table Summary table of aircraft flights by hour of day. Required Output String
Monthly Flight Summary Table Summary table of aircraft flights by calendar month. Required Output String

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Tool #7 - Summarize Aircraft Operators and Types

Summary

ArcGIS script-based tool code based upon tool_7.py that generates an output table summarizing flight (flightlines) by operator as reported in the FAA Releasable Database.

Parameters

Label Explanation Type Direction Data Type
Input Flightlines File Merged waypoints feature class produced by Tool #3. Required Input Feature Class
Output Workspace The geodatabase workspace where the summary tables will be written. Required Input Workspace
Output Aircraft Operator Summary Table Summary table of aircraft operators. Required Output String
Output Aircraft Type Summary Table Summary table of aircraft types in the input flightline file Required Output String

Licensing and Extension Information

  • Basic - Yes
  • Standard - Yes
  • Advanced - Yes

Tool #8 - Perform Waypoint Density Analysis

Summary

ArcGIS script-based tool code based upon tool_8.py that performs kernel density analyses of aircraft waypoints for five fixed altitude bands within a buffered management unit.

Parameters

Label Explanation Type Direction Data Type
Input Waypoint File Merged waypoints feature class produced by Tool #3.. Required Input Feature Class
Management Unit Buffer Polygon A polygon feature representing the buffered boundary of the management unit study area. Required Input Feature Class
Output Workspace The geodatabase workspace where the kernel density raster will be written.. Required Input Workspace
Output Kernel Density Raster Base filename of kernel density raster results; altitude band values will be automatically appended to the basename . Required Output Raster Dataset

Licensing and Extension Information

  • Basic - Requires Spatial Analyst
  • Standard - Requires Spatial Analyst
  • Advanced - Requires Spatial Analyst

Credits

Applied Park Science Laboratory and Geographic Information Systems Spatial Analysis Laboratory, Kansas State University

References

Beeco, J. A., & Joyce, D. (2019). Automated aircraft tracking for park and landscape planning. Landscape and Urban Planning, 186, 103-111.

Beeco, J. A., Joyce, D., & Anderson, S. (2020). Evaluating the use of spatiotemporal aircraft data for air tour management planning and compliance. Journal of Park and Recreation Administration. doi:10.18666/JPRA-2020-10341

Duong, Q., Tran, T., Pham, D. T., & Mai, A. (2019, March). A Simplified Framework for Air Route Clustering Based on ADS-B Data. In 2019 IEEE-RIVF International Conference on Computing and Communication Technologies (RIVF) (pp. 1-6). IEEE.

FAA (2018). ADS-B, Research, Airspace. Retrieved from: https://www.faa.gov/nextgen/equipadsb/research/airspace/

Lawson, S., K Hockett, B. Kiser, N. Reigner, A. Ingrm, J. Howard, and S. Dymond (2007). Social Science Research to Inform Soundscape Management in Hawai‘i Volcanoes National Park. Final Report. Department of Forestry, College of Natural Resources, Virginia Polytechnic Institute and State University.

Lignell, B. W. (2020). Reporting information for commercial air tour operations over units of the national park system: 2019 annual report. Natural Resource Report NPS/NRSS/NSNSD/NRR— 2020/2193. National Park Service, Fort Collins, Colorado.

Mace, B. L., Corser, G. C., Zitting, L., & Denison, J. (2013). Effects of overflights on the national park experience. Journal of Environmental Psychology, 35, 30-39.

McDonald, C. D., Baumgarten, R. M., & Iachan, R. (1995). Aircraft management studies: National park service visitors survey. HMMH Report, (290940.12), 94-2.

Miller, Z. D., Fefer, J. P., Kraja, A., Lash, B., & Freimund, W. (2017, January). Perspectives on visitor use management in the National Parks. In The George Wright Forum (Vol. 34, No. 1, pp. 37-44). George Wright Society.

Prakash, S. L., Perera, P., Newsome, D., Kusuminda, T., & Walker, O. (2019). Reasons for visitor dissatisfaction with wildlife tourism experiences at highly visited national parks in Sri Lanka. Journal of Outdoor Recreation and Tourism, 25, 102-112.

Shannon, G., McKenna, M. F., Angeloni, L. M., Crooks, K. R., Fristrup, K. M., Brown, E., Warner, K. A., Nelson, M. D., White, C., Briggs, J., McFarland, S., & Wittenmyer, G. (2016). A synthesis of two decades of research documenting the effects of noise on wildlife. Biological Reviews, 91(4), 982-1005.

Tarrant, M. A., Haas, G. E., & Manfredo, M. J. (1995). Factors affecting visitor evaluations of aircraft overflights of wilderness areas. Society & Natural Resources, 8(4), 351-360.

About

A custom ArcGIS Pro toolbox with multiple Python-based geoprocessing tools to automate and simplify processing and analysis of Automatic Dependent Surveillance-Broadcast (ADS-B) for better understanding aircraft overflights of National Park Service (NPS) management units.


Languages

Language:Python 100.0%