knnst_spatial_cor: Compute spatial correlation after KNN space-time...

View source: R/knnst_spatial_cor.R

knnst_spatial_corR Documentation

Compute spatial correlation after KNN space-time disaggregation

Description

knnst_spatial_cor() computes the spatial correlation for all monthly data between the specifed site(s) (sites) and all other sites.

Usage

knnst_spatial_cor(disagg, sites, bin_size = NULL)

Arguments

disagg

A knnst object

sites

One or more sites to compute correlations from.

bin_size

Number of years for each bin when there is only one simulation.

Details

If there are more than one simulations, the correlation is computed for each simulation across all years. If there is only one simulation, then the user must specify the bin_size that is used to compute the correlation across moving windows of this specified size.

Value

A knnst_spcor object.

See Also

plot.knnst_spcor(), knnst_temporal_cor()

Examples

knnst_spatial_cor(ex_disagg, "Cameo", 100)
knnst_spatial_cor(ex_disagg, c("Cameo", "Hoover"), 100)


rabutler-usbr/knnstdisagg documentation built on Sept. 14, 2023, 2:47 p.m.