prepare_script_for_Miller1998_CONUSSoil: Create wget script to prepare soil data files from CONUSSoil

View source: R/extract_soils_Miller1998_CONUSSoils.R

prepare_script_for_Miller1998_CONUSSoilR Documentation

Create wget script to prepare soil data files from CONUSSoil

Description

This function only writes out a text file to disk. The user is responsible to run the script after making sure that wget is available and the script is executable. The script will download the CONUSSoil files for the requested variables and convert the ESRI formatted files to GeoTIFF.

Usage

prepare_script_for_Miller1998_CONUSSoil(
  path = ".",
  vars = c("rockdepm", "rockvol", "bd", "sand", "clay", "silt")
)

Arguments

path

A character string. The path to where the local copy of the CONUSSoil folder hierarchy and files should be downloaded.

vars

A vector of character strings. The requested variables as used by CONUSSoil; see Miller et al. 1998.

Value

(Invisibly) the file path of the generated bash script.

Notes

this function is not yet implemented!

References

Miller, D. A., and R. A. White. 1998. A conterminous United States multilayer soil characteristics dataset for regional climate and hydrology modeling. Earth Interactions 2:1-26. http://www.soilinfo.psu.edu/index.cgi?soil_data&conus

Examples

fname_wget_miller1998 <- prepare_script_for_Miller1998_CONUSSoil()

## in a shell
## give execute permission if needed: chmod +x <fname_wget_miller1998>
## download data: ./<fname_wget_miller1998>

unlink(fname_wget_miller1998)


DrylandEcology/rSW2exter documentation built on May 4, 2024, 10:53 p.m.