<div dir="ltr"><div dir="ltr"><div>I've got a 2 band, band-interleaved-line file gendered 
from the ISCE software. I was doing some subsetting of it with 
gdal_translate, and I noticed that the format got changed to BIP:<br></div><div><br></div><div><br></div><div><br></div><div>$ ls<br>20130719_20150427.unw  20130719_20150427.unw.vrt  20130719_20150427.unw.xml<br></div><div><br>$ grep -i -n3 scheme 20130719_20150427.unw.xml<br>96-        <value>2</value><br>97-        <doc>Number of image bands.</doc><br>98-    </property><br>99:    <property name="scheme"><br>100-        <value>BIL</value><br>101:        <doc>Interleaving scheme of the image.</doc><br>102-    </property><br>103-    <property name="width"><br>104-        <value>586</value><br></div><div><br></div><div>After running gdal_translate, the format has changed to BIP:<br></div><div><br></div><div>$ gdal_translate 20130719_20150427.unw test.unw -of ISCE<br>Input file size is 586, 882<br>0...10...20...30...40...50...60...70...80...90...100 - done.<br>(mapping) [scott@grace gdal-translate-bug]$ grep -i -n3 scheme test.unw.xml<br>11-  <property name="DATA_TYPE"><br>12-    <value>FLOAT</value><br>13-  </property><br>14:  <property name="SCHEME"><br>15-    <value>BIP</value><br>16-  </property><br>17-  <property name="BYTE_ORDER"></div><div><br></div><div><br></div><div>I'm assuming it's related to this line for creating a dataset with default BIP:</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/master/gdal/frmts/raw/iscedataset.cpp#L839" target="_blank">https://github.com/OSGeo/gdal/blob/master/gdal/frmts/raw/iscedataset.cpp#L839</a></div><div><br></div><div>But I'm not familiar enough with the gdal_translate code to know where the options are getting generated and passed here.</div><div>Any advice on where might be a good place to fix the ISCE raster generation?</div><div><br></div><div>Thanks,</div><div>Scott<div class="gmail-adL"><br></div></div></div></div>