Learn R Programming

mesonet (version 0.0.2)

mnet_site_info: Download Mesonet site and soil information for all Mesonet sites

Description

Downloads a table of Mesonet site and soil information from the Oklahoma Mesonet website.

Usage

mnet_site_info(
  url = "https://api.mesonet.org/index.php/export/station_location_soil_information",
  file_cache = NULL,
  clear_cache = FALSE
)

Value

a data frame containing site and soil information. See Details for definition of variable descriptions.

Arguments

url

the url to the page on the Oklahoma Mesonet website where site and soil information are stored

file_cache

a character string providing a path to the local Mesonet file cache. If NULL, the function will search for the local file cache and if not found will prompt the user to create one.

clear_cache

whether to clear cached copy of site and soil information and re-download

Details

Variable descriptions for Mesonet site and soil information.

VariableDescription
stnmStation Number
stidStation Identifier
nameStation Name
cityNearest Incorporated Town
rangRange From Town To Station
cdirCompass Direction From Town To Station
cntyCounty
nlatNorth Latitude
elonEast Longitude
elevElevation In Meters
cdivOklahoma Climate Division
clasStation Class
wcr055 cm Residual Water Content (cm3/cm3)
wcs055 cm Saturated Water Content (cm3/cm3)
a055 cm Alpha Constant (1/kPa)
n055 cm N Constant (dimensionless)
bulk55 cm Soil Bulk Density (g/cm3)
grav55 cm Soil Percentage Gravel
sand55 cm Soil Percentage Sand
silt55 cm Soil Percentage Silt
clay55 cm Soil Percentage Clay
text55 cm Soil Texture Class
wcr2525 cm Residual Water Content (cm3/cm3)
wcs2525 cm Saturated Water Content (cm3/cm3)
a2525 cm Alpha Constant
n2525 cm N Constant
bulk2525 cm Soil Bulk Density
grav2525 cm Soil Percentage Gravel
sand2525 cm Soil Percentage Sand
silt2525 cm Soil Percentage Silt
clay2525 cm Soil Percentage Clay
text2525 cm Soil Texture Class
wcr6060 cm Residual Water Content (cm3/cm3)
wcs6060 cm Saturated Water Content (cm3/cm3)
a6060 cm Alpha Constant
n6060 cm N Constant
bulk6060 cm Soil Bulk Density
grab6060 cm Soil Percentage Gravel
sand6060 cm Soil Percentage Sand
silt6060 cm Soil Percentage Silt
clay6060 cm Soil Percentage Clay
text6060 cm Soil Texture Class
wcr7575 cm Residual Water Content (cm3/cm3)
wcs7575 cm Saturated Water Content (cm3/cm3)
a7575 cm Alpha Constant
n7575 cm N Constant
bulk7575 cm Soil Bulk Density
grav7575 cm Soil Percentage Gravel
sand7575 cm Soil Percentage Sand
silt7575 cm Soil Percentage Silt
clay7575 cm Soil Percentage Clay
text7575 cm Soil Texture Class
datcDate Commissioned
datdDate De-Commissioned

Examples

Run this code

# \dontshow{
  mesonet_cache_dir <- mnet_test_cache(site_info = TRUE)
  previous_options <- options(.mesonet_cache = mesonet_cache_dir)
# }

mnet_site_info()

# \dontshow{
  unlink(mesonet_cache_dir, recursive = TRUE)
  options(previous_options)
# }

Run the code above in your browser using DataLab