obs2km: Matches observation location to the nearest model location

View source: R/legacy_functions.R

obs2kmR Documentation

Matches observation location to the nearest model location

Description

Returns a vector of model kilometers (or long distances) that are closest to the observation kilometer or distance. If an observation id is equally distant between two output model kilometers the first one in the vector is used.

Usage

obs2km(obskm, modkm)

Arguments

obskm

Numeric vector of the observation location (e.g. stream kilometer)

modkm

Numeric vector of the model output distance (e.g. model kilometer)

Value

vector of modkm values equal to the length of obskm


DEQrmichie/heatsourcetools documentation built on Jan. 25, 2025, 2:31 p.m.