Skip to main content
Question

Raster band combine two rasters

  • June 3, 2020
  • 4 replies
  • 99 views

Dear all,

I need help with task. I have two rasters grom the same place: NIR 1 channel and RGB 3 channel.

 

I need to replace on RGB raster Red channel with NIR channel and save raster.

 

How can i do this?

Thank you on advance for help

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • 7843 replies
  • June 4, 2020

Hi @marekszczepan, I think the RasterBandSeparator and the RasterBandCombiner could help you.


  • Author
  • 13 replies
  • June 4, 2020

Hi,

 

 

thank you for help. I have small problem, i receive error and don't know why

"fme_rejection_message' has value `Merged raster not created. Input rasters are incompatible because the coordinate of the lower left corner of the raster doesn't match'"

 

log.txt


takashi
Celebrity
  • 7843 replies
  • June 4, 2020

Hi,

 

 

thank you for help. I have small problem, i receive error and don't know why

"fme_rejection_message' has value `Merged raster not created. Input rasters are incompatible because the coordinate of the lower left corner of the raster doesn't match'"

 

log.txt

The RasterBandCombiner requires that all entered raster bands have exactly same resolutions and extents. I'm afraid that resolutions and/or extents of the two source rasters may not be identical.

You can extract properties of a raster with the RasterPropertyExtractor. Check the properties of the source rasters with Logger or Inspector.


  • Author
  • 13 replies
  • June 4, 2020

Hi,

 

 

thank you for help. I have small problem, i receive error and don't know why

"fme_rejection_message' has value `Merged raster not created. Input rasters are incompatible because the coordinate of the lower left corner of the raster doesn't match'"

 

log.txt

Yes, You were right it was due to not equal origin and min/max of files. I tiled one more time and now is working correct. Thanks You for your help