use_example_ee_script: Use an example sampling script for Earth Engine

View source: R/use_example.R

use_example_ee_scriptR Documentation

Use an example sampling script for Earth Engine

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

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.

Examples

library(irg)
use_example_ee_script(sensor = 'MODIS')

robitalec/irg documentation built on Sept. 19, 2023, 9:33 p.m.