PRU Atlas

This is still Work In Progress but we value constructive feedback: please check the issues page and eventually file a bug or a feature request.

The pruatlas package provides helpers for generating maps of interest for PRU publications.

There are both high and low level facilities. For an example of a high level helper, the code for plotting a map of the Germany country FIR and ANSP is as follows:

library(sf)
library(pruatlas)
fl <- 300
plot_country_fir("ED", "Germany", fl = fl)
plot_country_ansp("DFS", "DFS, Germany", fl = fl)

A map of Germany's FIR's area at flight level 300A map of Germany's ANSP's area at flight level 300

Or EUROCONTROL’s Member States FIR area:

ms <- "BI|E.|L.|UD|UG|GM|UK|GC"
plot_country_fir(icao_id = ms, "EUROCONTROL Member States", buffer = 350, fl = 200)
A map of all EUROCONTROL Member States' merged FIR's at flight level 200

Lower level functions or datasets include for example countries50m, the Simple Feature for the whole world countries or extent_fir() to calculate the bounding box of a country FIR.

Useful functions are:

The package contains the following aviation GIS datasets (for CFMU AIRAC 406, see below):

(CFMU) AIRAC 406, a.k.a. AIRAC 1512, spans the 28-day interval 2015-11-12 UTC–2015-12-10 UTC.

If you need polygons in different AIRAC’s that the one in the package and have access to EUROCONTROL DB, you can have a look at the scripts in the data-raw directory. For example export_nm_fir_geojson.R or export_ace_ansp_geojson.R allow for exporting FIR’s or ANSP’s to GeoJSON which can be read as {sf} features via sf::read_sf().

Installation

Pruatlas is still in early development and it is only available on GitHub. It relies and uses the functionality from the sf package and this relies on a working installation of GDAL, see the sf installation instructions for directions.

In order to install pruatlas you need to run:

library(remotes)
install_github("euctrl-pru/pruatlas")

To Do’s

Development

In order to build the relevant pkgdown web pages, execute the following code:


# How to build the pkgdown from behind proxied Internet
library(withr)
library(pkgdown)

with_options(list(pkgdown.internet = FALSE),
             build_site())