function used to extract quality indicator from MODIS aggregated quality layers
MODIStsp_process_QA_bits(out_filename, in_source_file, bitN, out_format, nodata_source, nodata_qa_in, nodata_qa_out, compress)
out_filename |
|
---|---|
in_source_file |
|
bitN |
|
out_format | output format (ENVI or GTiff) |
nodata_source |
|
nodata_qa_in |
|
nodata_qa_out |
|
compress |
|
On the basis of the name of the image containing the aggregated quality information
(in_source_file``) and of the position of the bit fields corresponding to the QI of interest in the bitfield representation (
bitN``), the function extracts the correct information exploiting
bitwise operators, and save the result in a new raster image
License: GPL 3.0 Based on the "modis.qc.R" script by Yann Chemin (2008) (https://goo.gl/7Fhreo) license GPL 3.0