R/wind_speed_variables.R

Defines functions u2_calculation

Documented in u2_calculation

#' Wind speed at 2 meters high
#' @description Wind speed at two meters high can be calculated with this function.
#' @param uz measured wind speed at z meters above ground surface
#' @param z height of measurement above ground surface.
#' @examples
#' \dontrun{
#' u2_df <- u2_calculation(uz, z)
#' }
#' @export
#' @return  A data.frame with the wind speed at 2 meters high calculated.
#' @author Roberto Filgueiras, Luan P. Venancio, Catariny C. Aleman and Fernando F. da Cunha


u2_calculation <- function(uz, z) {
  u2 <- uz * (4.87 / (log(67.8 * z - 5.42)))
  u2 <- as.data.frame(u2)
  colnames(u2) <- "u2"
  return(u2)
}

Try the BrazilMet package in your browser

Any scripts or data that you put into this service are public.

BrazilMet documentation built on April 12, 2025, 2:11 a.m.