Skip to contents

`prepare_calendar()` extracts calendar information from "stat" folder to the `output`folder accordingly to the crops in `typo`.

Usage

prepare_calendar(path, typo)

Arguments

path

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

typo

data.frame of crop typology. Should be found in `floodam.csv`.

Value

csv2 file of calendar for each crop present in `typo`.

Details

`prepare_calendar()` uses the order of elements in `path[["extent"]]` to load `typo` and to extract calendars for each crop.

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