Skip to main content

Hi, I am trying to essentially take one raster over another to produce one merged raster. With some simple logic if cell is present in raster B choose raster cell B otherwise A. When I do this the transformer just outputs and empty map. what am I doing wrong? Thank you

Capture

Have you inspected the rasters going into the RasterExpressionEvaluator? Do they still look as you expect at this stage?


Try it without the @ in your conditional statement.


Try it without the @ in your conditional statement.

thanks, I tried that it didnt work either


Have you inspected the rasters going into the RasterExpressionEvaluator? Do they still look as you expect at this stage?

yes both look fine:

b1a1


thanks, I tried that it didnt work either

The rasterExpressionEvaluator can be quirky if a NoData value is set. Try removing the nodata then adding it back in after the transformer.


thanks, I tried that it didnt work either

I think @jdh has it, i can recreate. Adding RasterBandNodataSetters into a workflow before the RasterExpressionEvaluator results in an empty map (everything set to no data basically)


thanks, I tried that it didnt work either

apologies for the delay in replying, it has been quite a frantic few days. Removingt the nodatasetters doesnt seem to have an effect, one of the inputs has 0 already defined as no data. So I used a RasterBandNodataRemover on both data sets and now it works. Thank you @ebygomm​  and @jdh​ 234


Reply