Description Usage Arguments Details Value Examples
Aggregates the result of vad_fit()
using a modified loess
smooth of degree 1 to get a wind profile on a regular (or other
user-supplied) grid.
1 2 | vad_regrid(vad, layer_width, resolution = layer_width, ht_out = NULL,
min_n = 5)
|
vad |
an |
layer_width |
width of the layers in meters (see Details). |
resolution |
vertical resolution in meters. |
ht_out |
vector of heights where to evaluate. Overrides |
min_n |
minimum number of points in each layer. |
The method approximates wind components in a regular grid using weighted local
regression at each point in the grid. Unlike stats::loess()
, the layer_width
is specified in physical units instead of in ammount of points and thus the
value at each gridpoint represents the wind at a layer of thickness
layer_width
. This means that, while the resolution
parameter determines
how many points are used to define the wind profile, the effective resolution
is controlled by layer_width
. Increasing layer_width
results in more precise
estimates (because it's basedon more data points) but reduces the effective
resolution.
A data frame with class rvad_vad
that has a plot()
method and contains
7 variables:
height above the radar in meters.
zonal wind in m/s.
meridional wind in m/s.
standar error of u in m/s.
standar error of v in m/s.
1 2 3 4 5 6 7 8 9 10 11 | VAD <- with(radial_wind, vad_fit(radial_wind, azimuth, range, elevation))
# Wind profile with effective resolution of 100
plot(vad_regrid(VAD, layer_width = 100, resolution = 100))
# The same effective resoution, but sampled at 50m
plot(vad_regrid(VAD, layer_width = 100, resolution = 50))
# Using too thin layers can cause problems and too many
# mising values
plot(fine_resolution <- vad_regrid(VAD, layer_width = 10))
mean(is.na(fine_resolution$u))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.