Skip to main content
Question

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

  • November 16, 2020
  • 1 reply
  • 52 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?

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.

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