filter_qa {irg} | R Documentation |
Filter with QA Band
Description
Using QA band information, filter the NDVI time series.
Usage
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
# 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))
[Package irg version 0.1.6 Index]