bayes_read_probs | R Documentation |
Read probability maps
bayes_read_probs(probs_file, labels)
probs_file |
Full path to raster multi-band file containing probability matrices |
labels |
Labels to be assigned to the bands |
A SpatRaster object
Gilberto Camara, gilberto.camara@inpe.br
if (bayes_run_examples()) {
# Define location of a probability file
data_dir <- system.file("/extdata/probs", package = "bayesEO")
# list the file
file <- list.files(data_dir)
# build the full path
probs_file <- paste0(data_dir, "/", file)
# define labels
labels <- c("Water", "ClearCut_Burn", "ClearCut_Soil",
"ClearCut_Veg", "Forest", "Wetland")
probs_image <- bayes_read_probs(probs_file, labels)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.