countStations: Count weather stations per KM^2

Description Usage Arguments Value

View source: R/AddCovars.R

Description

Read in 3 types of weather station locations. Then for each flight, loop through to find the midpoint between the two airports, and transform the flight data to the UTM zone of the midpoint. Draw a 230km buffer around the entire flight and calculate the area of this buffer region in km^2. Then count the number of each station type within the buffer to calculate the station density.

Usage

1
countStations(flightgeo)

Arguments

flightgeo

A sf dataframe containing flight data and geodata

Value

A df of weather station densities, with rows corresponding to flights in flightgeo


DatascribeConsulting/MonaRk documentation built on May 4, 2021, 5:28 a.m.