Skip to main content
Question

How to rename the bands from an IFMERaster object ?

  • September 23, 2022
  • 2 replies
  • 28 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

david_r
Celebrity
  • September 23, 2022

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.


  • Author
  • October 17, 2022

Thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings