Briefing Module

Download a Pre-Flight Information Bulletins (PIB) containing published NOTAMs, parse the briefing and create a list of dictionary representation of the NOTAM. The resulting data can be used to create XCTools Notam objects as describe in the related Notam module .

XCTools target to support multiple sources to ensure:

  • information reliability (a source might provide more precise information for a specific FIRs of interest)
  • service continuity (it is possible that a source change the format of the data and that the XCTools community needs some time to rework the relevant module)

=> it is required to have the capability to switch quickly an application from one source of briefing to another.

We expect contributions from the community if other sources are required.

NATS Source

The NATS is a UK based company providing Aeronautical Information Services.

NATS has proven to be a stable and reliable source of PIB information since we use it (2015). Access to the NOTAM information requires user website registration.

Usage

import datetime

from briefing.source.nats import NATS

nats_source = NATS()

# Change this with your own NATS credentials
nats_source.login("username", "password")

# See Notes for prefilter details
prefilter = { \
   'lower_fl': '0', \
   'upper_fl': '999', \
   'vfr': True, \
   'firs': ['EBBU', 'LFFF'], \
   'utc_from': datetime.datetime(2018, 10, 31, 12, 0), \
   'utc_to': datetime.datetime(2018, 10, 31, 14, 30) \
   }

# Area Briefing download
nats_source.download_area_briefing(prefilter)

print(nats_source.raw_area_briefing) # the downloaded raw area briefing in html

# Area Briefing parsing
nats_source.parse_area_briefing()

# List of normalized NOTAMs
nats_source.parsed_brief
#[{'a': '', 'upper': '', 'c': '18/12/20 09:00 EST', 'b': '18/10/05 13:13', 'e': 'ATS ROUTE UL745 CLSD', 'src': 'NATS', 'lower': '', 'q': 'EBBU/QARLC/IV/NBO/E/195/660/5130N00326E010', 'sched': '', 'ref': 'A3099/18'}]

Notes

Other sources

Other interesting source of NOTAM data to develop