indexMC: Rank the best index gages for each target site.

Description Usage Arguments Details Value

View source: R/indexMC.R

Description

The function indexMC returns the ranking of potential index sites, by map correlation, for each target location.

Usage

1
2
indexMC(index.gages, index.obs, index.baschar, target.gages, target.obs,
  target.baschar, method = c("pearson", "kendall", "spearman"))

Arguments

index.gages

A numeric vector of the streamgage IDs to be used as potential index sites.

index.obs

A zoo object of the observed streamflows for each index gage.

index.baschar

A data frame with the LAT_GAGE_UTM, LNG_GAGE_UTM and DRAIN_SQKM for each item of index.gages.

target.gages

A numeric vector of the streamgage IDs to be used as target sites.

target.obs

A zoo object of the observed streamflows for each target gage.

target.baschar

Identical to index.baschar with respect to target.gages.

method

A character string of either "pearson", "spearman" and "kendall", specifying which correlation method to use.

Details

Lorem ipsum...

Value

The function returns a list as output. This list contains:

Cor.Obs

A matrix of the observed correlation between index and target sites. The columns are in the order of target.gages and the rows are in the order of index.gages.

Cor.Netw

A matrix of the observed inter-correlation between index sites. The columns are in the order of target.gages and the rows are in the order of index.gages.

Cor.Est

A matrix of the estimated correlation between index and target sites. The columns are in the order of target.gages and the rows are in the order of index.gages.

varPar

A matrix of the variogram parameters (covariance parameters and nugget) for the variogram built on each index gage.

Rank

A matrix of the index IDs for each target gage. The columns are in the order of target.gages.

index

The input index.gages.

target

The input target.gages.


wfarmer-usgs/PUBAD documentation built on May 4, 2019, 5:21 a.m.