invert_mask: Swap the logical values in a raster mask.

Description Usage Arguments Value Author(s)

View source: R/mask.R

Description

Any value greater than one becomes zero and each zero becomes one.

Usage

1
2
3
4
invert_mask(
  in_file,
  out_file = tempfile(pattern = "invert_mask_", fileext = ".tif")
)

Arguments

in_file

A length-one character. A path to a raster mask.

out_file

A lenght-one character. A path to the file with the results.

Value

out_file.

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.