Skip to contents

A function that extract a time series of the urban area of MODIS Landcover (2001-01-01T00:00:00Z - 2020-01-01T00:00:00)

Usage

get_urban(from, to, region, scale = 1000)

Arguments

to, from

it's a string object,starting and final date.

region

it's a feature or feature collection

scale

A nominal scale in meters of the projection to work in.

Value

a tibble object with the new variable in km2

Examples

if (FALSE) {

library(innovar)
library(rgee)
library(sf)
ee_Initialize()
data("Peru")
region <- Peru
region_ee <- pol_as_ee(region, id = 'distr' ,simplify = 1000)
data <- get_urban(from = '2008-01-01', to = '2010-01-01', region = region)

}