caliver icon indicating copy to clipboard operation
caliver copied to clipboard

can't modify default fire season

Open julimi26 opened this issue 2 years ago • 0 comments

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)]

julimi26 avatar Oct 22 '21 08:10 julimi26