modis_watermask | R Documentation |
Function to create a dynamic watermask for a point in time based on previous watermaps. The function uses floodmaps from previous dates to determine areas that were covered by water in at least x% of the time. This can help to deal with issues of non-bimodality.
modis_watermask(
date = NULL,
filenames = NULL,
filedates = NULL,
years = 5,
threshold = 0.99
)
date |
date. Date for which a watermask should be calculated |
filedates |
dates vector. Dates which the above floodmaps represent |
years |
numeric. Number of years that should be considered to create a watermask |
threshold |
numeric. Needs to be between 0 and 1. How often (relative frequency) a pixel needs to be inundated in the past x years to be considered in the watermask |
floodmaps |
character vector. Filenames of all floodmaps that already exist |
SpatialPolygons
of the waterask
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.