[gdal-dev] Hacking the new Landsat pixel_qa help...

Jonathan Greenberg jgreenberg at unr.edu
Thu May 4 15:53:47 PDT 2017


Folks:

USGS, in their infinite wisdom, decided to embed what is effectively a
1-bit, 16-band byte-interleaved-by-pixel image into a 16-bit, single-band
geotiff for the Landsat quality mask.  I could write some crazy translation
program that "reverse engineers" the data, but I was wondering if there is
some way to "hack" or translate the file by simply redefining the "header"
(change the number type to 1-bit, number of layers to 16, interleave to
BIP).  Any suggestions for how to do this?

I dropped an example file here:

https://nevada.box.com/s/1xcqrnyyaym4fbzz3r9pjiv79qh5wblj

To be clear, the "displayed" number has no real meaning, the information is
embedded into the set of individual bits in each of the 16 positions.

--j
-- 
-- 
Jonathan A. Greenberg, PhD
Randall Endowed Professor and Associate Professor of Remote Sensing
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
Natural Resources & Environmental Science
University of Nevada, Reno
1664 N Virginia St MS/0186
Reno, NV 89557
Phone: 415-763-5476
http://www.unr.edu/nres
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170504/e12fee08/attachment-0001.html>


More information about the gdal-dev mailing list