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.
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.
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.
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? maybe you have tutorial videos from youtube or is it about mathematical ability?