apply_bricks_cluster: Coverage functions

Description Usage Arguments Value

View source: R/coverages.R

Description

Apply a function on each coverage's bricks object. Parameter fun is a function with bricks attributes names as parameters. A helper function func_brick can be used to create a prototype of this function easily. The function creates processing clusters using package parallel.

Usage

1
2
apply_bricks_cluster(coverage, fun, ..., clusters = 1,
  cluster_type = c("PSOCK", "FORK"))

Arguments

coverage

A coverage object.

fun

A function to be called for each brick that receives the bricks' attributes.

...

A set of names or character vector with the bands to be returned.

clusters

An integer with the number of clusters to be created.

cluster_type

A character text with the type of cluster to be created.

Value

A rasters data.frame object.


rolfsimoes/coverage documentation built on May 24, 2019, 9:48 p.m.