This function will transform both geomac files, i.e.
geomac_fire_perimeters, geomac_situation_report
.
geomac_transform(dl_date, yrs, ds_source = "geomac", pre_pst_split_ind = FALSE)
dl_date | (date) : Date in which the file were downloaded. This is going to look for a folder in the `data/ds_source/` named as this date |
---|---|
yrs | (numeric): Vector with years which data need to be transformed |
ds_source | (character) : data names. Default to "geomac" |
pre_pst_split_ind | (logical): Boolean indicator. If TRUE, then variable names for perimeters change before and after 2015 (as before 11/7/2019 changes), so that the `*_pre15` sheets are used in the Firepred data dictionary for before 2015 and the `*_pst15' for the years afterwards. If FALSE (default since 11/7/2019 changes), the `*_pst15' sheets are used across the years for perimeters. |
A list with two shapefiles for loading, in which the key is the mtbs_type