Question

How to rename the bands from an IFMERaster object ?

  • 23 September 2022
  • 2 replies
  • 4 views

After transforming some bands of a raster (CSAR) in the Rasterexpressionevaluator, they are renamed to the same name (3bands get the same name) but I would like them to keep the original name. I think this is an error in the Rasterexpressionevaluator. In order to set the bandnames to their original name, I have tried the rasterbandnamesetter but it does not work as the bandnames are no attributes. The transformer does not seem able to reach the bands stored in the IFMERaster object. How to rename these bandnames ?

 

Thank you!


2 replies

Userlevel 4

The easiest is probably to supply a list with the band names, e.g. with an AttributeManager:

imageAnd then in the RasterBandNameSetter:

imageResult in the Inspector:

imageYou can also name a single band, in that case you'll have to use the RasterSelector first to select which band to rename.

This is also explained in the documentation for the RasterBandNameSetter.

Thank you!

Reply