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.

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.