max_normalize: Raster max normalization

View source: R/max_normalize.R

max_normalizeR Documentation

Raster max normalization

Description

Rescales raster values such that maximum is 1.

Usage

max_normalize(rast, outfile)

Arguments

rast

Raster object.

outfile

Character. Output raster file path. If not specified, the resulting RasterLayer will be returned to R. Directory will be created recursively if required.

Value

A normalised RasterLayer will be written to outfile if specified, and returned to R otherwise.


jscamac/edmaps documentation built on June 11, 2022, 1:26 a.m.