The following example shows how to compute image texture metrics from Landsat 8 data downloaded from the USGS Earth Explorer.
We will use the test data set supplied with this package. In order to read the
data set, just supply the filename (or list of filenames) to the satellite()
function.
library(satellite) path <- system.file("extdata", package = "satellite") files <- list.files(path, pattern = glob2rx("LC8*.TIF"), full.names = TRUE) sat <- satellite(files)
Image metrics will be calculated using wrapper functions for the glcm package developed by Alex Zvoleff.
imageTextures(sat, bcde = "B003n", window = c(5,5), statistics = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.