use_example_ee_script: Use an example sampling script for Earth Engine

Description Usage Arguments Value

View source: R/use_example.R

Description

Provides an example script for use in Earth Engine, as a preceeding step to using the irg package. Use the script to sample NDVI in Earth Engine, then use the irg package to calculate the instantaneous rate of green-up.

Usage

1
use_example_ee_script(sensor = "MODIS", filepath = NULL, overwrite = FALSE)

Arguments

sensor

either 'MODIS' or 'Landsat'

filepath

file path relative to current working director, indicating where to save the example script. default is NULL, simply printing lines to the console.

overwrite

boolean indicating if the file should overwrite existing files. default is FALSE.

Value

use_example_ee_script prints an example NDVI extraction script or if filepath is provided, saves it at the location specified.


irg documentation built on Dec. 22, 2021, 9:06 a.m.