Filter continuous value

Hi there,
Could you help me to filter certain values (continous values one, i.e. 26.5433632. 25.5839583, etc.), but without change the index? Because I want the values appears in a table and count how much the cells contain those values. Here I attached the illustration for what I mean…
I’ve tried sub list, key/value search, etc., but none of them work for me… I think I missing something.

6540_2_csv.csv (1.8 MB)

filter certain continous (2.6 MB)

Any help would be much appreciated

Your file references an Excel sheet which is saved on your computer. The easiest way to save the data of this Excel file inside the Grasshopper definition is to use a Data component and right click, internalise data…

PS: I fixed the typo in the title. It’s continuous.

Thank you Martin. That’s show how beginner I am :grinning:
Here I attached the file with internalized data
filter certain continuous (4.1 MB)

Ok, so I’m not exactly sure what continuous values you want to filter.

Anyway, I’d suggest a few changes.

Your image size is 1080 x 1440. I’d start with a rectangle and use the Mesh Surface component to divide the surface derived from the rectangle into a mesh with 480 x 640 faces. This is done on the origin and the domains should match. I changed your image domains from ‘1 to 1080’ to ‘0 to 1080’…

The mesh needs to be deconstructed to access the vertices. The vertices get their colours and the mesh is reconstructed.

The mesh is now scaled with the factor 21, which is your cell size.

The Cull faces component can be used to eliminate the faces which do not meet the criteria of the filtering done to the data. I used an And Gate to filter values larger than 29.2 and smaller than 29.8. Be careful with these sliders. It takes a moment to go through 307200 values. If I were you I’d only change the values by double clicking and entering a new value.

I extracted the saturation of the colours and used a gradient to create a greyed out mesh which can be used to display the remaining mesh faces with a different colour…

Finally I sifted the face centers and numbers to create Text Tags. The component is currently disabled to save some time.

The definition below references the *.csv file attached. (4.1 MB)
6540_2_csv.csv (1.8 MB)

1 Like

I always surprise how helpful this community, thank you Martin! That is what I mean

Anyway, regarding the image size, I guess 640x480 for the pixels amount and 1080x1440 for the mm. This image is Radiometric-JPEG that contain temperature values each pixel. I extracted the temperature in R-studio, and it gives me 307200 data temperature, derived from 640 times 480 pixels. So I have temperature data each pixels, not each mm. I’m sorry for any mistake grammar, but I hope my explanation is clear.

You give me such a good solution, but now I wondering, how come the 307,200 data temperature read by 1,555,200 cells (1080 times 1440)?

And maybe you have any tips for mastering data tree like this? :smiley: maybe you have tutorial videos from youtube or is it about mathematical ability?

Not at my computer right now…

The file image has 640 x 480 pixels. I think the resolution needs to be changed in the image sampler.

Maybe you can share the original image, just to be sure?

The image I uploaded before was the original image actually (IMG_6540).

These are the specs of the image posted above opened in GIMP.

The image sampler detects the X and Y domains automatically.
Forget my comment about the domains starting at 0, I was wrong with that.

The image has 421500 pixels but FLIR outputs 480 x 640 values, so a total of 307200 values.

Unless the image has the same number of pixels, I think the way I colored the mesh is as accurate as possible.

If the image had 307200 pixels, the color value would have to be extracted from the center of a square.