Find dates for which the raster is missing and fill the gap with an empty raster.
Arguments
- x
S4 object. The product of interest.
- ...
extra arguments.
- variable
character. The variable of interest.
Examples
if (FALSE) {
# Define required variables
region <- Region(name = "nebraska", type = "us state",
div = c(country = "United States", state = "Nebraska"))
date <- date_seq("2002-01-01", "2002-12-31")
## MOD09GA
# Create objects
x <- new("Mod09ga", region = region, date = date)
# Create the NDVI rasters that are missing
fillgaps(x, "ndvi")
# Create the cloud mask rasters that are missing
fillgaps(x, "cloudmask")
}