-
Notifications
You must be signed in to change notification settings - Fork 2
3.1.1 Slice grid reader
I am going to show you here how to use the "slice reader" to get a variable which is part of the atmosphere folder.
Please, download also Ladybug Tools to replicate this workflow, it is a fundamental part to get the final heatmap.
The first step is to get the full paths of the binary files to read. There is a component that let you easily get all useful binaries morpho_output_folder. It read an envimet output folder and collect and sort the binaries dividing them by category: atmosphere, buildings, radiation, soil, solaraccess, surface, vegetation
Once you have the full path of the edt files you can use an List Item of Grasshopper to scroll the hour to read - generally each edt is an hour of results of simulation time.
At this point, you can connect the selected path to morpho_grid_slice_reader and check the index of the variable to read by connecting a panel on the output side.
Next step is to set the reader starting from the variable to select that you can define with the variable input.
Other potential settings are:
- dir: Connect an integer to set the direction (X, Y, Z) of the section plane [integer]. Default is X.
- index: Index of the slice to read in X or Y or Z [integer]. It means that you can cut the grid orthogonally where you want.
- min: Optional, a number representing the lower boundary to filter data [float].
- max: Optional, a number representing the upper boundary to filter data [float].
- base_point: Optional Lower left corner of the grid. Default value is point at 0,0,0. Connect a Rhino point to change it [Point3d]. Once you have decided what and how to read it you can set up the component and enable "run_it" input. You should see faces and values lists. At this point, the workflow is almost completed. It is necessary to use morpho_from_face_to_rhinomesh to create a Rhino mesh starting from Morpho faces and a series of components of Ladybug (highlighted in red). Remember to set the preview off of morpho_from_face_to_rhinomesh. Please, keep in mind that you are free to set it as you want in terms of color palette, legend and so on. Or you can use numbers to create a custom metric to use with the ladybug heat map component.
Morpho for Grasshopper - Antonello Di Nunzio