Tagging Individual Bands in TIFF

I also faced the same issue today, since I wanted to extract the band names which aren’t visible with GDAL. I was able to get all the metadata with tiffinfo on Ubuntu. You have to install it first:

sudo apt-get install libtiff-tools

and then:

tiffinfo S1_phase_coh_20240809_20240821.tif | grep BAND_NAME
TIFFReadDirectory: Warning, Unknown field with tag 34264 (0x85d8) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34737 (0x87b1) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65000 (0xfde8) encountered.
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..
            <BAND_NAME>Phase_ifg_IW2_VV_09Aug2024_21Aug2024</BAND_NAME>
            <BAND_NAME>coh_IW2_VV_09Aug2024_21Aug2024</BAND_NAME>```