filter_qa: Filter with QA Band

Description Usage Arguments Details Value See Also Examples

View source: R/filter.R

Description

Using QA band information, filter the NDVI time series.

Usage

1
filter_qa(DT, ndvi = "NDVI", qa = "SummaryQA", good = c(0, 1))

Arguments

DT

data.table of NDVI time series

ndvi

ndvi column name. default is 'NDVI'.

qa

QA column. default is 'SummaryQA'.

good

values which correspond to quality pixels. default is 0 and 1.

Details

See the details for the example data in ?sampled-ndvi-Landsat-LC08-T1-L2.csv and ?sampled-ndvi-MODIS-MOD13Q1.csv

For MODIS MOD13Q1, the SummaryQA band

For Landsat

Value

filtered data.table with appended 'filtered' column of "quality" NDVI.

See Also

Other filter: filter_ndvi(), filter_roll(), filter_top(), filter_winter()

Examples

1
2
3
4
5
6
7
# Load data.table
library(data.table)

# Read example data
ndvi <- fread(system.file("extdata", "sampled-ndvi-MODIS-MOD13Q1.csv", package = "irg"))

filter_qa(ndvi, ndvi = 'NDVI', qa = 'SummaryQA', good = c(0, 1))

robitalec/irg documentation built on Dec. 31, 2021, 8:16 p.m.