View source: R/extract_soils_Miller1998_CONUSSoils.R
prepare_script_for_Miller1998_CONUSSoil | R Documentation |
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.
prepare_script_for_Miller1998_CONUSSoil(
path = ".",
vars = c("rockdepm", "rockvol", "bd", "sand", "clay", "silt")
)
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. |
(Invisibly) the file path of the generated bash script.
this function is not yet implemented!
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.