generate_random_fire_history: Generate Random Fire History Polygons

View source: R/randomFirehistoryGenerator.R

generate_random_fire_historyR Documentation

Generate Random Fire History Polygons

Description

Function generates random fire history polygon dataset

Usage

generate_random_fire_history(
  nPolygons = 10,
  bbox = sf::st_bbox(c(xmin = 2600000, xmax = 2620000, ymax = 2420000, ymin = 2400000)),
  maxPoints = 11,
  seasonRange = 1980:2025,
  crs = sf::st_crs(3111),
  validFIRETYPE = c("BURN", "BUSHFIRE", "UNKNOWN", "OTHER")
)

Arguments

nPolygons

number of individual polygons to be generated

bbox

bounding box within which the polygons are to be generated including its crs is st_bbox format. default is a 20km square in Central Eastern Victoria and epsg:3111 /VicGrid94 crs

maxPoints

the maximum number of points used to define each polygon ( min value 11).

seasonRange

vector of integer season values selected at random for polygon attribute SEASON

crs

coordinate reference system for the output set using sf_crs(), default epsg:3111

validFIRETYPE

character vector of valid FIRETYPE values

Value

sf polygon

Examples

require(sf)
randomFH<-generate_random_fire_history(nPolygons=20,maxPoints=11)
plot(randomFH["SEASON"])
plot(randomFH["FIRETYPE"])


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