Skip to main content

I have a GeoTIFF file (real32) with one band(0)

Like to extract just the value 0.4 from it.

But whatever I try, nothing works out.

It's so simple, but I can't see it....

 

With the RasterExpressionEvaluator I use this expression:

@if(AA0]==0.4,0.4,0)

The only result I get is : 0

Probably because the band only contains RGB values whereas the z-value 0.4 is interpreted? But what then, is the best way to extract this?

Well... solved it in a way...

Just by using this:

First rounding the values of the grid to 4 decimals and then:

A[0]<0.3999 || A[0]>4.001


Reply