<div dir="ltr"><div>Is it possible to have a VRTRawRasterBand and a VRTDerivedRasterBand, which is derived from that Raw file, together as two bands in a single VRT file?</div><div><br></div><div><br></div><div>I've got a CFloat32 raster file with only one complex band in binary format (called "<a href="http://20160327_20160420.int">20160327_20160420.int</a>" in the example below), and I've figured out how to make a VRT for it so I can load it with GDAL. <br></div><div><br></div><div>"20160327_20160420.int.vrt":</div><div><br></div><div><VRTDataset rasterXSize="720" rasterYSize="720"><br>  <VRTRasterBand dataType="CFloat32" band="1" subClass="VRTRawRasterBand"><br>    <SourceFilename relativeToVRT="1"><a href="http://20160327_20160420.int">20160327_20160420.int</a></SourceFilename><br>    <ImageOffset>8</ImageOffset><br>    <PixelOffset>8</PixelOffset><br>    <LineOffset>5760</LineOffset><br>    <ByteOrder>LSB</ByteOrder><br>  </VRTRasterBand><br></div><div>  <SRS>WGS84</SRS><br>  <GeoTransform> ...</GeoTransform></div><div></VRTDataset></div><div><br></div><div>This works great. I've also figured out how to make a derived raster band from this that shows the amplitude of the data, and also the phase (below):</div><div><br></div><div>"20160327_20160420.int.phase.vrt":</div><div><br></div><div><VRTDataset rasterXSize="720" rasterYSize="720"><br>  <SRS>...</SRS><br>  <GeoTransform>  ...</GeoTransform><br>  <VRTRasterBand dataType="Float32" band="1" subClass="VRTDerivedRasterBand"><br>    <Description>phase of 20160327_20160420.int.vrt </Description><br>    <SimpleSource><br>      <SourceFilename relativeToVRT="1">20160327_20160420.int.vrt</SourceFilename><br>      <SourceBand>1</SourceBand><br>      <SourceProperties RasterXSize="720" RasterYSize="720" DataType="CFloat32" BlockXSize="720" BlockYSize="1" /><br>    </SimpleSource><br>    <PixelFunctionType>phase</PixelFunctionType><br>    <SourceTransferType>CFloat32</SourceTransferType><br>  </VRTRasterBand><br></VRTDataset> <br></div><div><br></div><div>But I can't figure out how I would get both of these as two bands in one VRT without causing an infinite recursion. Is that possible? Or do I need to keep them separate?<br></div><div><br></div></div>