idw_snow: Inverse Distance Weighting, the Idaho way

Description Usage Arguments Details Value

View source: R/otherMethods.R

Description

A function that implements inverse distance weighting using normalized ground snow loads.

Usage

1
2
3
idw_snow(formula = RESPONSE ~ ELEVATION, locations, newdata,
  tlayer = 1220, power = c(2, 6), NGSL = TRUE,
  bound_output = FALSE, corMethod = "spearman", print = FALSE, ...)

Arguments

formula

A formula that is passed to the idw function in the sp package.

locations

The measurement locations to be used for interpolation. An object of class SpatialPointsDataFrame

newdata

The prediction locations. An objet of class SpatialPointsDataFrame, SpatialGridDataFrame, or SpatialPixelsDataFrame.

tlayer

The elevation (in meters) on which to split the data. The Idaho snow load report splits the state into two layers using 4000 ft (1219.2 meters) as a cutoff. This variable can also be set to NA, at which point an automatic separating elevation method is applied (see details).

power

A vector of length 2 indicating the exponent in the inverse distance weighting for the lower and upper elevations respectively.

NGSL

If true, used normalized ground snow loads, which are simply snow loads divided by elevation. This is the way elevation is accounted for in the 2015 Idaho study.

bound_output

If true, the final predictions are capped at the range of observed data.

corMethod

(only relevant if tlayer = NA). The method by which correlations are determined when deciding on a separating elevation. Valid options include "pearson", "spearman" and "kendall"

print

If true, gstat package messages are printed to the screen, as well as the separating elevation.

Details

One of the great challenges of this method is the proper selection of a separating elevation.

Value

An appended version of the newdata class containing a column named "idw_snow".


beanb2/snowload documentation built on Jan. 7, 2020, 9:48 p.m.