prepFH: PrepareFire History

View source: R/prepFH.R

prepFHR Documentation

PrepareFire History

Description

A function that handles the subdivision of a Fire History Dataset for Parallel processing in the FAME fire history processing workflow. It calculates the number of grid cells to be used in parallelizing function. splitting the input fire history into separate sf datasets on a grid with areas of approximately 100 square km

Usage

prepFH(inFH = myFH)

Arguments

inFH

Value

A list containing:

  • hasData list of one or more sf Fire History sub units of the input Fire History containing fire boundaries, defined by a grid over the bounding box of inFH with a grid of squreside*squareside cells

  • hasIntersects a logical vector indicating which elements of "hasData" have intersecting Fire boundaries within them

  • squareSide integer number of units of one side of the grid used to divide the inFH to produce "hasData" for parrallel compute. Calculated as the floor() of area of inFH bounding box/10^8 (ie a 10km square expressed in square metres)


nevilamos/FAMEFMR documentation built on April 17, 2025, 9:32 p.m.