View source: R/get_worldmodeler_soil_profile.R
get_worldmodeler_soil_profile | R Documentation |
Retrieves soil data from the World Modeler global database and (optionally) saves it to a soils file
get_worldmodeler_soil_profile(
lonlat,
soil.name,
wrt.dir,
filename,
verbose = FALSE
)
lonlat |
Longitude and latitude vector (e.g. c(-93, 42)) or matrix. |
soil.name |
optional soil name |
wrt.dir |
optional directory where to save a file with ‘soils’ extension. If missing it will be written to a temporary directory. |
filename |
optional name to be used when saving the file |
verbose |
verbose argument passed to ‘read_apsim_soils’ |
it returns a list with objects of class ‘soil_profile’. If
‘filename’ is specified it also creates a file with extension ‘soils’,
which can be read using function read_apsim_soils
.
Brian Collins (University of Southern Queensland) and Fernando Miguez
## Not run:
## Get soil profile properties for a single point
sp1 <- get_worldmodeler_soil_profile(lonlat = c(-93, 42))
if(inherits(sp1[[1]], 'soil_profile')){
plot(sp1[[1]], property = "Carbon")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.