make_binary_mask {pastclim}R Documentation

Create a binary mask

Description

Create a binary mask from a raster: NAs are converted to 0s, and any other value to 1.

Usage

make_binary_mask(x)

Arguments

x

a terra::SpatRaster

Value

a terra::SpatRaster with 0s and 1s


[Package pastclim version 2.1.0 Index]