convert_qf_modis: Convert bit values from a QFLAG MODIS product

Description Usage Arguments Value Author(s) References See Also

Description

Convert a Raster* object representing MODIS QFLAG bit values to a Raster* with two categories representing flagged and non-flagged pixels

Usage

1
convert_qf_modis(r,qf,type,cl = NULL,filename = rasterTmpFile(), ...)

Arguments

r

A Raster-class object

qf

Quality Flag to be extracted. Can be more than one of these: If type = 'MOD13': 'MODLAND_QA','VI_usefulness','aerosol_quantity','adjacent_cloud','atmosphere_brdf','mixed_clouds','land_water_flag','snow','shadow'. If type = 'MOD15':'MODLAND_QC','sensor','dead_detector','cloud','scf_qc'. If type = 'MOD15Extra':'sea', 'snow', 'aerosol', 'cirrus', 'cloud', 'shadow', 'biome'

type

character vector of length 1 giving the MODIS data type. Should be one of these: 'MOD13', 'MOD15', 'MOD15Extra'

cl

cluster object for parallel processing. Default is NULL

filename

Passed to writeRaster.

...

arguments passed to writeRaster.

Value

A RasterBrick-class object with two values (1,0), representing respectively pixels that are flagged by at least one of the give qf, and pixels that are not flagged in any of the given qf

Author(s)

Antoine Stevens

References

https://lpdaac.usgs.gov/dataset_discovery/modis/modis_products_table/mod13a2, https://lpdaac.usgs.gov/dataset_discovery/modis/modis_products_table/mod15a2

See Also

extractBits and interpolate_raster for an example


antoinestevens/MODISExtra documentation built on May 10, 2019, 12:23 p.m.