Skip to content

can't modify default fire season #28

@julimi26

Description

@julimi26

Hi,

I have a question regarding the get_fire_season function. I just realized that adjusting the fire season, e. g. to a shorter period, does not return the shorter period. Instead the dataset is subsetted to the default fire season from April to October. Is this a mistake from my side or a bug?

cheers!
Julia

> #open file
> kfc <- brick("D:/RProjects/fwi/01_fastdata/KFC/fwi_KFC_1981010100_to_2010123100.nc")
> names(kfc) <- seq.Date(from = as.Date("1981-01-01"),
>                      to = as.Date("2010-12-31"),
>                      by = "day")
> dataDates <- as.Date(substr(names(kfc), 2, 11), format = "%Y.%m.%d") #create dates from layer name
> seasons <- get_fire_season(dates = dataDates,
>                            fss = as.Date("2012-04-01", format = "%Y-%m-%d"),
>                            fse = as.Date("2012-09-30", format = "%Y-%m-%d"),
>                            zone='north') #returns true false layer
> kfc_season <- kfc[[which(seasons==TRUE)]]
> seasonDates <- dataDates[which(seasons==TRUE)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions