Skip to main content
Question

...so simple? Just want to select a specific raster (geotiff) value...

  • November 16, 2020
  • 1 reply
  • 44 views

harmen_kampinga
Forum|alt.badge.img+2

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(A[0]==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?

1 reply

harmen_kampinga
Forum|alt.badge.img+2

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


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