View source: R/mnet_calc_vwc.R
mnet_calc_vwc | R Documentation |
Calculate soil volumetric water content from delta-T soil temperature change data from the Oklahoma Mesonet using mnet_calc_mp to calculate matric potential and mnet_van_genuchten to calculate the corresponding volumetric water content using parameters provided by mnet_site_info.
mnet_calc_vwc(data, site_info = NULL)
data |
a data frame that contains a column of Mesonet station identifier codes (i.e. STID) and columns for delta-T temperature change data (i.e. TR05, TR25, TR60, TR75) |
site_info |
a data frame with site and soil information for each Oklahoma Mesonet station as returned by mnet_site_info. If NULL, mnet_site_info will be used to download this information internally |
a data frame containing new columns with volumetric water content for each column of delta-T temperature change data.
# Create example dataset
mesonet_data <- data.frame(STID = "ACME", DATE = as.POSIXct("2025-01-01"),
TR05 = 3.17, TR25 = 2.17, TR60 = 2.0, TR75 = 1.0)
mnet_calc_vwc(mesonet_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.