# Wea From EPW

![](/files/-MihqbsIyxSSkNwOC6_G)

![](/files/-Mihqaco8LpTdqY_yZ0_) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-radiance/blob/master/honeybee_grasshopper_radiance/src//HB%20Wea%20From%20EPW.py)

Create a Wea object from an EPW file.

## Inputs

* **epw\_file \[Required]**

  Full path to an .epw weather file.&#x20;
* **hoys**

  An optional list of hours of the year (numbers from 0 to 8759) for which the Wea will be filtered. HOYs can be generated from the "LB Analysis Period" component or they can be obtained through other means like analysis of the values in an occupancy schedule. By default, the Wea will be generated for the whole year.&#x20;
* **timestep**

  An integer representing the timestep with which to make the  WEA object.  Default is set to 1 for 1 step per hour of the year.&#x20;

## Outputs

* **wea**

  A wea object from epw file.&#x20;


---

# Agent Instructions: 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:

```
GET https://docs.ladybug.tools/hb-radiance-primer/components/2_lightsources/wea_from_epw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
