country_ansp: Extract ANSP polygon at defined flight level

View source: R/country_ansp.R

country_anspR Documentation

Extract ANSP polygon at defined flight level

Description

Extract ANSP polygon at defined flight level

Usage

country_ansp(ansps, ansp_id = "ENAV", fl = 300)

Arguments

ansps

the sf holding the ANSP polygons, i.e. pruatlas::ansps_ace_406

ansp_id

optional, the ANSP ID of the relevant country, "ENAV" otherwise. It can be a regular expression, i.e. "DFS|ENAV" for matching Germany and Italy.

fl

the flight level of interest

Value

a polygon for the ANSP(s)

Examples

## Not run: 
country_ansp(ansps_ace_406, "DFS", fl = 350)

# more complicated for Italy/ENAV: there is a hole over Rome.
# if we want to get rid of it we can use smoothr::fill_holes()
enav <- pruatlas::ansps_ace_406 %>%
  country_ansp(ansp_id = "ENAV", fl = 355) %>%
  smoothr::fill_holes(units::set_units(10000, km^2))

## End(Not run)

euctrl-pru/pruatlas documentation built on April 17, 2024, 1:33 p.m.