You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to point out some aspects related to parsing expressions.
I am trying to compute/select all pixels in a tile that have values larger/smaller than a certain threshold.
The range of my data is 0-1 and the type is float32
for the beginning I am displaying a tile using the viridis colormap
Now 'd like to filter the pixels with a value smaller than 0.5. In the above picture these are the bottom right ones. I remove the rescale and colormap_name parameters to make sure the values in the tile are not rescaled.
I'd like to point out some aspects related to parsing expressions.
I am trying to compute/select all pixels in a tile that have values larger/smaller than a certain threshold.
The range of my data is 0-1 and the type is float32
for the beginning I am displaying a tile using the viridis colormap
https://undp.livedata.link/hrea/tiles/16/39109/32807.png?url=https%3A%2F%2Fundpngddlsgeohubdev01.blob.core.windows.net%2Ftest%2FKenya_set_lightscore.vrt&bidx=1&rescale=0,1&colormap_name=viridis
this works well,
Now 'd like to filter the pixels with a value smaller than 0.5. In the above picture these are the bottom right ones. I remove the rescale and colormap_name parameters to make sure the values in the tile are not rescaled.
https://undp.livedata.link/hrea/tiles/16/39109/32807.png?url=https%3A%2F%2Fundpngddlsgeohubdev01.blob.core.windows.net%2Ftest%2FKenya_set_lightscore.vrt&bidx=1&expression=b1%3C0.5
which results in
The above expression produced a bool array and rio-tiler is not happy about it.
I tried something like this
in numexpr and this produced an int32 array.
However rio-tiler could not parse this string
Any help is appreciated
The text was updated successfully, but these errors were encountered: