WindProcessor: WindProcessor

WindProcessorR Documentation

WindProcessor

Description

Calculates new wind variables WDN, WSN, WIN (GV only)

Usage

WindProcessor(data, AC = "GV", CompF = TRUE)

Arguments

data

A data.frame containing these variables (and possibly others): TASX, ATTACK, SSLIP, GGVEW, GGVNS, GGVSPD, VEW, VNS, THDG, ROLL, and PITCH. Note that for some data archives GGVSPD may not be present, so it may be useful to define a new data.frame variable (e.g., Data$GGVSPD <- Data$VSPD_A). Also, (ATTACK and AKRD) and (SSLIP and SSRD) are usually the same, so similar substitution may be needed in those cases. The routine searches for these candidates and selects the first found: PITCHC, PITCH, TASN, TASX, GGVSPD, GGVSPD_NVTL, VSPD_A, ATTACK, AKRD, SSLIP, SSRD. If any required variables are not found, the function returns the original data.frame unchanged and prints an error message.

AC

Aircraft identifier, either "GV" or "C130"; default "GV"

CompF

Set TRUE to implement the complementary filter that merges ground-speed vectors from the INS and GPS to obtain corrected values of the wind vector. If set FALSE, the GPS lever arm (LG) is also set to 0.

Details

Constructs new wind variables using a data.frame that contains the required variables (see 'param' below) as input and adds to that data.frame the new wind variables as listed in the description above. If it is desirable to apply the Shuler-based correction to pitch, this should be done before calling this function and the variable PITCHC resulting from that correction should be included in the data.frame. (If PITCHC is present, it will be used instead of PITCH. If TASN is present it will be used in place of TASX. If ATTACK is not present then AKRD, if present, will be used. If SSLIP is not present then SSRD, if present, will be used.)

Value

The original data.frame is returned with variables WDN, WSN, WIN added. These variables are the new horizontal wind direction and speed and the vertical wind.

Author(s)

William Cooper

Examples

newData <- WindProcessor (RAFdata)

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.