Skip to contents

Compute wind speed from their horizontal (u) and vertical (v) components.

Usage

computeWindSpeed(u, v)

Arguments

u

A climate4R grid object with east-west wind component (see loadeR::loadGridData).

v

A climate4R grid object with north-south wind component (see loadeR::loadGridData).

Value

A climate4R grid object with the total wind speed.

Examples

if (FALSE) { # \dontrun{
trace.u <- dsclim::loadHistoricalTraceGrid(
  "Data/TraCE21ka/U/trace.36.400BP-1990CE.cam2.h0.U.2160101-2204012.nc",
  var = "u@992.5561"
)
trace.v <- dsclim::loadHistoricalTraceGrid(
  "Data/TraCE21ka/V/trace.36.400BP-1990CE.cam2.h0.V.2160101-2204012.nc",
  var = "v@992.5561"
)

trace.wss <- dsclim::compute_wind_speed(trace.u, trace.v)
} # }