dbW_getSiteId: Extract table keys to connect sites with weather data in the...

View source: R/sw_dbW_WeatherDatabase.R

dbW_getSiteIdR Documentation

Extract table keys to connect sites with weather data in the registered weather database

Description

Extract table keys to connect sites with weather data in the registered weather database

Usage

dbW_getSiteId(
  lat = NULL,
  long = NULL,
  tol_xy = 1e-04,
  Labels = NULL,
  ignore.case = FALSE,
  verbose = FALSE
)

Arguments

lat

A numeric vector or NULL. The latitude in decimal degrees of WGS84. Northern latitude are positive, sites on the southern hemisphere have negative values.

long

A numeric vector or NULL. The longitude in decimal degrees of WGS84. Eastern longitudes are positive, sites on the western hemisphere have negative values.

tol_xy

A numeric value. The tolerance used to match requested longitude and latitude values.

Labels

A vector of character strings. The names/labels of queried sites.

ignore.case

A logical value.

verbose

A logical value.

Details

The key(s) (Site_id) can be located by either providing a Labels or by providing lat and long of the requested site(s).

Value

An integer vector with the values of the keys or NA if not located.


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.