View source: R/randomFirehistoryGenerator.R
generate_random_fire_history | R Documentation |
Function generates random fire history polygon dataset
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")
)
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 |
sf polygon
require(sf)
randomFH<-generate_random_fire_history(nPolygons=20,maxPoints=11)
plot(randomFH["SEASON"])
plot(randomFH["FIRETYPE"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.