read_cpr: Read Network Manager's archived CPR file

View source: R/cpr.R

read_cprR Documentation

Read Network Manager's archived CPR file

Description

The payload of an archived CPR file contains the following fields:

Name Description Type
cpm_id CPR Message ID int
tact_id ETFMS flight ID int
timestamp_etfms ETFMS reception timestamp char (YY/MM/DD hh:mm:ss)
timestamp_track track timestamp char (YY/MM/DD hh:mm:ss)
block Block number int
record Record number (index within a block) int
entry_node_sac Entry Node system area code int
entry_node_sic Entry Node system identifier code int
callsign Callsign of flight char
adep_icao ICAO code of Departure aerodrome char
ades_icao ICAO code of Destination aerodrome char
eobt Estimated Off-block Time char (YY/MM/DD hh:mm:ss)
longitude Longitude (WGS84) decimal degrees
latitude Latitude (WGS84) decimal degrees
flight_level Flight level integer
track_service Track service char (Begin, Continuing, End or Begin_And_End)
ssr_code SSR code oct
track_speed Track velocity (in Knots) int
track_heading Track heading char
climb_rate Climb or descend rate int
track_vertical_mode vertical attitude char (Climb, Descend, Level_Flight or Undetermined)
ifps_id IFPS flight plan id char
aircraft_address ICAO 24-bit address char

Usage

read_cpr(file, delim = ";")

Arguments

file

A (gzipped) file containing archived CPR's as received received and processed by the Network Manager. Filenames are something like 1.201702061001tacop304ARCHIVED_OPLOG_ALL_CPR.gz

delim

the character delimiting the fields [default = ";"]

Value

A dataframe of correlated position reports (CPR's)

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_flights_fr24(), read_positions_fr24(), read_so6()

Examples

## Not run: 
# read CPR's of the 20 sample flights for 5th Feb 2017
cprs_file <- system.file("extdata",
                        "1.201702051001tacop304ARCHIVED_OPLOG_ALL_CPR.gz",
                        package = "trrrj")
cprs05 <- read_cpr(cprs_file)

## End(Not run)

euctrl-pru/trrrj documentation built on March 10, 2024, 1:12 p.m.