calculate_median: Calculate median of raster objects

View source: R/calculate_median.R

calculate_medianR Documentation

Calculate median of raster objects

Description

Calculate the cellwise median of two or more Raster* objects, by layer.

Usage

calculate_median(files, outfile)

Arguments

files

A vector of file paths to (optionally multiband) raster files.

outfile

Character. Output raster file path. If not provided, object will be returned to R. Directory will be created recursively if it does not exist.

Value

If outfile is specified, the resulting raster is saved as a geotiff to that path and NULL is returned. If outfile is not specified the resulting raster is returned.


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