Skip to content

3.1.3 Read building and grid together

Antonello Di Nunzio edited this page Jun 19, 2021 · 6 revisions

Intro

Morpho leaves lots of flexibility to the user about how to read data. It is possible also to extract data and create custom metrics or read different data types to display in the same heatmap. This chapter shows you how to combine the surface temperature with the building wall outside temperature to create a unique heatmap. You should be familiar with the general method of reader explained here and how to read building

Read both data time

The first part of the workflow consists of reading both categories at the same time, making sure they are synchronized and selecting the appropriate variable.
Because I am going to merge both maps together it does not make sense to read two variables with different units of measure - except if you do not want to create two distinct legends.
I am reading:

  • Surface temperature (°C)
  • Wall: Temperature Node 1/ outside (°C) Morpho both

Set the heatmap

In order to get a unique heatmap we need to use a series of native components of Grasshopper and Ladybug Tools (highlighted in red). Morpho both You have to use Merge component of Grasshopper to create two lists, one for meshes and one for values. Remember the connection order and to set them to "flat" using the input tag. After that the method is the same as the building map, you have to use Mesh Join to get a unique mesh with a number of faces like the length of the list of values. Morpho both