`prepare_culture()` copies vulnerability files from "damagement" folder to the `output` folder accordingly to the crops in `typo`.

prepare_culture(path, typo)

Arguments

path

list describing where to find useful paths. Result of `init_path()`.

typo

data.frame of crop typology.

Value

copy of vulnerability files in `path[["output"]][["culture"]]`.

Details

`prepare_culture()` uses the order of elements in `path[["extent"]]` to find damagement files in coherence with `typo`.

If `typo` is missing, it will be read from the "floodam.csv" file in the first extent of `path[["extent"]]`.