Get the season for each date in a vector

get_fire_season(dates, fss = NULL, fse = NULL, zone = NULL)

Arguments

dates

vector of dates

fss

Fire Season Start (date in the format Y-m-d)

fse

Fire Season End (date in the format Y-m-d)

zone

this can either: "north", "south" or "tropics"

Value

A logical vector, where TRUE corresponds to a date in the fire season and FALSE correspond to a date not in the fire season.

Examples

if (FALSE) {
  # Modify default seasons
  seasons <- get_fire_season(dates,
                           fss = as.Date("2012-04-01", format = "%Y-%m-%d"),
                           fse = as.Date("2012-10-31", format = "%Y-%m-%d"))
}