<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello List, <br><br>Apologies if this is a repeat post. Not sure that I was subscribed properly. <br><br>I have a number of individual Landsat bands that I'm converting to GeoTiff and would then like to merge to a multiband file using either gdal_merge.py or another gdal utility (gdalbuildvrt, gdal_translate). In the individually derived geotif files, I am able to internally "label" the corresponding Landsat band by creating a metadata tag. For example, in using the following gdal_translate command from a file that is Landsat data for Band 1 called landsat.b1.dat: <br> <br>gdal_translate -of GTiff -strict -stats -mo "Band = LandsatBand ${f: -5:1}" -co "COMPRESS=LZW" -co "PROFILE=GeoTIFF" $f $f.tif <br><br>This creates a metadata tag in the tif file: <o:p></o:p></p><p class=MsoNormal>-------------------------------------------------<br>Metadata: <br> AREA_OR_POINT=Area <br> Band =LandsatBand 1 <br><br>And there is a separate .aux.xml for each of the tif files: <o:p></o:p></p><p class=MsoNormal>-------------------------------------------------------------------<br><PAMDataset><br> <Metadata><br> <MDI key="Band ">LandsatBand 1</MDI><br> </Metadata><br> <PAMRasterBand band="1"><br> <Metadata><br> <MDI key="STATISTICS_MAXIMUM">255</MDI><br> <MDI key="STATISTICS_MEAN">40.826976974681</MDI><br> <MDI key="STATISTICS_MINIMUM">0</MDI><br> <MDI key="STATISTICS_STDDEV">31.471508896152</MDI><br> </Metadata><br> </PAMRasterBand><br><br><br>Now, I have for example 6 such separate files with Landsat bands labeled 1-5 and 7 respectively. I would like to keep these metadata tags (Band =LandsatBand #) when I derive a single multiband file to ensure that legacy in the file metadata. In other words, more internal metadata information than Band_1 - Band_6 when in fact the bands are Landsat bands 1-5, and 7. <br><br>So far, gdal_merge.py and the other gdal utilities drop the metadata tags. I've tried the flag -co "PROFILE=GeoTIFF" in gdal_merge.py with no luck. Is it possible to create a multiband file and retain the metadata band information? <br><br>Thanks in advance, <br>Michele<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>