View source: R/FireTypeLowToHigh.R
fireTypeLowToHigh | R Documentation |
Helper function to deal with cases where there is a LOW intensity fire ( planned Burn) shortly after a HIGH intensity Fire, shortly after is defined as <= max_interval
fireTypeLowToHigh(
max_interval = NULL,
Interval_Matrix = Interval,
Firetype_Matrix = FT_matrix
)
max_interval |
the maximum inter fire interval where a LOW firetyppe for the second fire should be coverted to HIGH |
Interval_Matrix |
matrix of sequential intervals between fire in unique fire history sequence ( generated internally as party of FAMEFMR::fhProcess()) |
Firetype_Matrix |
firetype matrix giving fireTypes (1=LOW 2=HIGH) for fires in unique fire history sequence ( generated internally as party of FAMEFMR::fhProcess()) |
modified Firetype_Matrix where the fireytpe of LOW fires have been changed to HIGH if the interval since the last LOW fire is <=
#firetype matrix giving fitetypes (1=LOW 2=HIGH) for fires in unique fire hsitory sequence ( generated internally as party of FAMEFMR::fhProcess())
FT_matrix<-structure(c(2, 2, 2, 2, NA, 1, 2, 2, NA, NA, NA, 1), dim = 4:3, dimnames = list(NULL, c("FireType01", "FireType02", "FireType03")))
#Fire interval matrix
Interval<-structure(c(NA, 245L, 235L, 235L, NA, NA, NA, 10L), dim = c(4L, 2L), dimnames = list(NULL, c("INT01", "INT02")))
fireTypeLowToHigh(max_interval = 5,Interval_Matrix = Interval,Firetype_Matrix = FT_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.