Tagging Individual Bands in TIFF

Hello all,

When exporting a GeoTIFF product via gpt command line tool or the snap UI, the product may contain multiple bands. In my case there are bands from sentinel-1 polarisations(VV, VH), localIncidenceAngle, and indicendceAngleFromEllipsoid. My goal is to be able to identify which band is which in the final TIFF metadata. Is it possible to somehow tag or derive which band is asociated with each band number in the final TIFF without using the SNAP UI? I am going to be reading the bands using rasterio so I will need the tags/metadata to be in the standard TIFF metadata format.

Any help or suggestions is much appreciated!

TIFF support for metadata is weak. A useful resource is Australia’s Frequently Used Code.
They give examples reading GeoTIFF and NetCDF files with rasterio. For GeoTIFF, they rename the numbered bands. BEAM GeoTIFF uses some “custom” tags to add extra metadata, but I don’t think those are supported by 3rd party applications. Consider using NetCDF4-CF.

1 Like

Thanks a lot for the insights! Yeah it appears that GeoTIFF does not have much for identifying these the bands. I will definitely take your advice and look into NetCDF4-CF, its popped up in a few of my searches now as well.