prepFire: Prepare CCI fire data Create a raster stack of the CCI fire...

Description Usage Arguments

View source: R/Prep_supporting_data.R

Description

Prepare CCI fire data Create a raster stack of the CCI fire data, crop the stack to the extent of interest, select the period of interest, and convert to binary rasters (1 = fire, 0 = no fire).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
prepFire(
  fcl,
  fjd,
  fdts,
  han,
  msk,
  tempRes,
  Tconf,
  starttime,
  endtime,
  extfolder
)

Arguments

fcl

a SpatRaster stack with the fire confidence layers

fjd

a SpatRaster stack with the fire julian day of year layers

fdts

Date object associated with fire layers

han

SpatRaster layer with output grid of interest, the CRS of all datasets should be equal to han

msk

a mask indicating which pixels should be stored (0=should not be processed, 1=should be processed)

tempRes

temporal resolution of interest for the output fire SpatRaster stack, can be 'monthly', 'daily', or 'quart'

Tconf

threshold on the fire confidence, only observations with a fire confidence higher than the threshold are considered to be a true fire

starttime

start time of study period of interest (vector with year, month, day)

endtime

end time of study period of interest (vector with year, month, day)

extfolder

directory where temporary files are stored


RETURN-project/makeDataCube documentation built on Feb. 11, 2022, 3:04 p.m.