Learn R Programming

phenofit (version 0.2.0)

tidy_MOD13.gee: tidy_MOD13.gee

Description

Tidy MODIS 'MOD13' VI products' (e.g. MOD13A1, MOD13A2, ...) raw data exported from Google Earth Engine. Tidy contents include: 1. add exact compositing date, see getRealDate. 2. Init weigths according SummaryQA, see qc_summary.

Usage

tidy_MOD13.gee(infile, outfile, wmin = 0.2)

Arguments

infile

A character csv file path or a data.table

outfile

Output file name. If missing, will not be written to file.

wmin

Double, minimum weigth (i.e. weight of snow, ice and cloud).

Value

A tidied data.table, with columns of 'site', 'y', 't', 'w', 'date' and 'SummaryQA'.

site

site name

y

real value of EVI, [-1, 1]

date

image date

t

exact compositing date constructed from DayOfYear

w

weights

SummaryQA

A factor, QA types, one of "good", "margin", "snow/ice" or "cloud".

Examples

Run this code
# NOT RUN {
library(phenofit)
data("MOD13A1")
dt <- tidy_MOD13.gee(MOD13A1$dt)
# }

Run the code above in your browser using DataLab