read_positions_fr24: Read FR24's archived positions information for a flight.

View source: R/fr24.R

read_positions_fr24R Documentation

Read FR24's archived positions information for a flight.

Description

read_positions_fr24 returns all position reports as archived by FR24 for a given flight_id flown on a specific day (see path parameter for how the date and flight ID are encoded).

Usage

read_positions_fr24(path)

Arguments

path

the filename of the <yyyymmdd>_<flight_id>_positions.csv file

Details

The positions listed are the ones known to FR24 and fitting the the bounding box as contractually agreed.

Value

a data frame of the archived flight's positions for date <yyyymmdd>. Each position report has the following attributes (all mandatory, i.e. non empty, but speed, squawk and vert_speed):

  • flight_id FR24 unique (within a day?) flight leg identifier

  • timestamp snapshot_id converted to a date/time

  • snapshot_id time of sample in Unix epoch seconds, i.e. since 1st Jan 1970 00:00:00 UTC

  • altitude altitude (feet). Barometric relative to ISO 1013 hPa pressure in flight, always 0 on ground.

  • heading 0-359 degrees

  • latitude latitude in decimal degrees

  • longitude longitude in decimal degrees

  • radar_id unique identifier of primary ground receiver

  • speed ground speed (knots)

  • squawk code broadcast by airplane, represented as four octal digits

  • vert_speed vertical speed (feet/min). Calculated from rate of altitude changes, 0 for level flight or empty if unavailable

  • on_ground 1 for on ground, 0 for airborne. Calculated from low altitude and ground speed

See Also

Other read/export: export_allft_so6(), export_apds(), export_event_so6(), export_event_trajectory(), export_flight_info(), export_flights_at_airport_fr24(), export_flights_fr24(), export_hourly_adsb(), export_model_trajectory(), export_movements(), export_positions_at_airport_fr24(), export_positions_fr24(), generate_so6(), parse_airspace_prisme(), read_cpr(), read_flights_fr24(), read_so6()

Examples

## Not run: 
# positions, as recorded by FR24, for flight 207535493 on 20170205 (5th Feb 2017)
pos_fr24_file <- system.file("extdata",
                             "20170205_positions",
                             "20170205_207535493.csv",
                             package = "trrrj")
read_positions_fr24(pos_fr24_file)

## End(Not run)

euctrl-pru/trrrj documentation built on April 15, 2024, 1:24 p.m.