Skip to contents

Find dates for which the raster is missing and fill the gap with an empty raster.

Usage

fillgaps(x, ...)

# S4 method for Satellite
fillgaps(x, variable)

Arguments

x

S4 object. The product of interest.

...

extra arguments.

variable

character. The variable of interest.

Value

nothing. The data are saved directly in the cronus database.

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")
}