Skip to main content

Hi

I have a raster with the following properties:

I want to use the RasterExpressionEvaluator to set new values to each cell. I have written this expression: @if(A[0]<0.07, 0, @if(A[0]<0.5, 1, @if(A[0]<1, 2, @if(A[0]<1.5,3, @if(A[0]<2,4,5))))) but I can't get it work.

Any suggestion?

Hi @zampy, the RasterExpressionEvaluator may not work if the input raster has Nodata.

Try removing Nodata with the RasterBandNodataRemover beforehand. You can restore Nodate with the RasterBandNodataSetter afterward, if necessary.


Hi @zampy, the RasterExpressionEvaluator may not work if the input raster has Nodata.

Try removing Nodata with the RasterBandNodataRemover beforehand. You can restore Nodate with the RasterBandNodataSetter afterward, if necessary.

Hi @takashi,

 

It works! Thanks

 


Reply