calc_density: Calculate density maps

View source: R/calc_density.R

calc_densityR Documentation

Calculate density maps

Description

Calculate density maps along all the lifecycle by YEAR and MONTH

Usage

calc_density(ifile, nx, ny, h, lims, islist = FALSE)

Arguments

ifile

Character. Input filename. Generally as c_YYYYMM.txt

nx

Integer. Bandwidth for x direction.

ny

Integer. Bandwidth for x direction.

h

Numeric. This is the bandwith. By default it is 1.5

lims

Vector. The limits of the rectangle covered by the grid.

islist

Logical. If FALSE (default), returns a RasterBrick. If TRUE, returns a list of RasterBricks.

Value

RasterBrick. If islist = TRUE, return list of RasterBricks

Examples

## Not run: 
calc_density(ifile = "d_2000_2010.csv",
             nx = 800,                         # Rehbein (2021) 
             ny = 800,                         # Rehbein (2021)
             h = 2,                            # Rehbein (2021)
             lims = c(c(-82, -40), c(-23, 7))) # para a bacia Amazonica

## End(Not run)

salvatirehbein/percolator documentation built on June 3, 2024, 7:16 a.m.