dbW_addWeatherData: Adds daily weather data to a registered weather database

View source: R/sw_dbW_WeatherDatabase.R

dbW_addWeatherDataR Documentation

Adds daily weather data to a registered weather database

Description

Adds daily weather data to a registered weather database

Usage

dbW_addWeatherData(
  Site_id = NULL,
  lat = NULL,
  long = NULL,
  tol_xy = 1e-04,
  weatherFolderPath = NULL,
  weatherData = NULL,
  Label = NULL,
  Scenario_id = NULL,
  Scenario = "Current",
  weather_tag = "weath",
  ignore.case = FALSE,
  overwrite = FALSE,
  verbose = FALSE
)

Arguments

Site_id

An integer value. The IDs/database key of the queried site.

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.

weatherFolderPath

A character string. The path to the parent folder.

weatherData

A list of elements of class swWeatherData that each hold daily weather data for one calendar year.

Label

A character string. The name/label of the queried site.

Scenario_id

An integer value The ID/database key of the queried scenario.

Scenario

A character string. The name/label of a climate scenario.

weather_tag

A character string. The base file name without extension for SOILWAT2-formatted input files; default is "weath"

ignore.case

A logical value.

overwrite

A logical value. Should weather data that already exists in the data base be overwritten?

verbose

A logical value.

Value

An invisible logical value indicating success with TRUE and failure with FALSE.


DrylandEcology/rSOILWAT2 documentation built on Jan. 12, 2024, 9:06 p.m.