<div dir="ltr"><div class="gmail_quote">From: <b class="gmail_sendername">Ritchie, Andrew</b> <span dir="ltr"><<a href="mailto:aritchie@usgs.gov">aritchie@usgs.gov</a>></span><br>Date: Thu, Jun 22, 2017 at 10:30 AM<br>Subject: NBITS=1 not preserved from vrt to tiff in multilayer tiff<br>To: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><br><br><div dir="ltr">We are building TIFFs with fourteen layers, four of which are byte, and the remainder being binary. We are able to generate binary tiffs with NBITS=1 and stack them with gdalbuildvrt -separate, but when muiltilayer tiffs are created with gdal_translate or gdal_merge -separate, the NBITS metadata are ignored and the resulting tiff has the same bit depth (byte) for all fourteen layers.<div><br></div><div>Is there a way to force NBITS per band with a -co NBITS=1 option when using gdal_merge with the -separate flag? alternatively, is there a way to force gdal_translate to honor the NBITS of the source layers in a VRT?</div><div><br></div><div>Andy<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div></font></span></div></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>====================================</div><div>Andy Ritchie</div><div>U.S. Geological Survey</div><div>Pacific Coastal and Marine Science Center</div><div>2885 Mission St.</div><div>Santa Cruz, CA 95060<br>Office (831) 460-7454<br>Cell (360) 460-9453</div><div><a href="mailto:aritchie@usgs.gov" target="_blank">aritchie@usgs.gov</a></div><div>---------------------------------------------------------------</div></div></div></div></div>
</div>