> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/hb-energy-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/hb-energy-primer/components/7_thermalmap/read_environment_matrix.md).

# Read Environment Matrix

![](/files/4q6W7gM9uZIqdqMEq3vm)

![](/files/54loQxOqxmgQfXPkzJ4o) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-energy/blob/master/honeybee_grasshopper_energy/src//HB%20Read%20Environment%20Matrix.py)

Read the detailed environmental conditions of a thermal mapping analysis from the env\_conds output by a thermal mapping component.

Environemntal conditions include raw inputs to the thermal comfort model, such as air temperature, MRT, longwave MRT, and shortwave MRT delta.

### Inputs

* **env\_conds \[Required]**

Path to a folder containing the detailed environmental conditions output by a thermal mapping component.

* **metric**

Text or an integer for the specific metric to be loaded from the environmental conditions. (Default: MRT). Choose from the following.

```
* 0 - MRT

* 1 - Air Temperature

* 2 - Longwave MRT

* 3 - Shortwave MRT Delta

* 4 - Relative Humidity
```

* **load \[Required]**

Set to True to load the data into Grasshopper.

### Outputs

* **comf\_mtx**

A Matrix object that can be connected to the "HB Visualize Thermal Map" component in order to spatially visualize results. This Matrix object can also be connected to the "LB Deconstruct Matrix" component to obtain detailed point-by-point and hour-by-hour values. When deconstructed, each sub-list of the matrix (aka. branch of the Data Tree) represents one of the sensor grids used for analysis. The length of each sub-list matches the number of points in the grid. Each value in the sub-list is an hourly data collection containing hour-by-hour results for each point.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ladybug.tools/hb-energy-primer/components/7_thermalmap/read_environment_matrix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
