GSW occurrence raw data comes in raster files with integer cell values between [0, 100]. This value gives the percentage of the time that a given pixel was classified as water during the entire observation period. So a 0 denotes a pixel that was never classified as water, 100 denotes a pixel with permanent water.
engine: The preferred processing functions from either one of "zonal", "extract" or "exactextract". Default: "extract".
min_occurrence: Threshold to define which pixels count towards the GSW occurrence area [0, 100].
Returns
A function that returns an indicator tibble with occurrence as variable and the corresponding area (in ha) as value.
Details
The raw data values are aggregated based on a provided threshold parameter min_occurrence, the function returns the area covered by values greater or equal than this threshold.