Learn R Programming

rsat (version 0.1.21)

rsat_cloudMask: Create cloud mask from an rtoi

Description

Create cloud mask from an rtoi

Usage

rsat_cloudMask(x, ...)

# S4 method for rtoi rsat_cloudMask(x, products = "ALL", verbose = FALSE, overwrite = FALSE, ...)

Value

nothing. The cloud masks will be save in the hard drive. Use get_stars to get the variables.

Arguments

x

rtoi object from which cloud masks are computed.

...

additional arguments

products

the name of the dataset from which cloud masks are computed.

verbose

logical argument. If TRUE, the function prints the running steps and warnings.

overwrite

logical argument. If TRUE, overwrites the existing images with the same name.

Examples

Run this code
if (FALSE) {
## Smooth data in rtoi
library(rsat)

# create a copy of pamplona in temp file
file.copy(from=system.file("ex/Pamplona",package="rsat"),
         to=tempdir(),
         recursive = TRUE)

# load example rtoi
pamplona <- read_rtoi(file.path(tempdir(),"Pamplona"))

rsat_cloudMask(pamplona)

rsat_list_data(pamplona)
}

Run the code above in your browser using DataLab