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

Description Usage Arguments Details Value

View source: R/indexNN.R

Description

The function indexNN returns the ranking of potential index sites, by geographic proximity, for each target location.

Usage

1
2
indexNN(index.gages, index.baschar, target.gages, target.baschar, UTM = T,
  outlet = T, DAR.fact = 0)

Arguments

index.gages

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

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.baschar

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

Details

Lorem ipsum...

Value

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

Dist

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

DAR

A matrix of the drainage area ratios between index and target sites. The columns are in the order of target.gages and the rows are in the order of index.gages.

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.