aggregate_cov: Aggregate Raster Files for Standard Soil Depth

View source: R/AgroSoil_generic_functions.R

aggregate_covR Documentation

Aggregate Raster Files for Standard Soil Depth

Description

Loads a list of raster files for specific soil depths and aggregates them for a user-specified soil depth interval. Eg. aggregate Clay content maps at 0, 5, 15, 30 and 60cm into 0-30cm or 0-60cm

Usage

aggregate_cov(
  in.cov_name,
  depth,
  in.covs_path,
  ot = "Int32",
  dstnodata = -32768,
  in.lst
)

Arguments

in.cov_name

Name of raster files to grep

depth

Standard depths to aggregate. Default soil depths are 0, 5, 15, 30 and 60cm

in.covs_path

Path to directory holding raster files.

ot

Output raster file type. Default value is "Int32".

dstnodata

Impute for missing or NO_DATA value. Default value is -32768.

Examples

library(raster)
library(rgdal)

aggregate_cov(in.cov_name, depth, in.covs_path)

kanj241/agrosoil documentation built on March 25, 2022, 12:22 a.m.