You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the end of this tutorial, you will have created a set of visualizations in your Rhino viewport similar to the one below, which includes an hourly temperature plot, a wind rose, a monthly data chart, and a psychrometric chart for Van Nuys, California.
7
+
By the end of this tutorial, you will have created a set of visualizations in your Rhino viewport similar to the one below, which includes an hourly temperature plot, a monthly data chart, a psychrometric chart, a wind rose, and a sun path diagram for Van Nuys, California.
Step 1: Prepare Sun Path and Wind Rose Visualizations
17
-
18
-
The Sunpath and WindRose are two key components for site analysis. The Sunpath diagram helps visualize the sun's position throughout the year, crucial for daylighting and shading studies. The WindRose shows the direction, frequency, and speed of wind, which informs natural ventilation strategies.
19
-
20
-
Place the Ladybug_Sunpath and Ladybug_WindRose components on the Grasshopper canvas. We will connect data to their inputs later. Notice the various inputs that allow for customization of the graphics.
Ladybug allows you to visualize any hourly data stream from the weather file. A common choice is the dry-bulb temperature, which shows the temperature fluctuations throughout the days and seasons.
37
-
38
-
Add the Ladybug_Hourly Plot component to the canvas.
39
-
40
-
To control where the plot appears in the Rhino viewport, connect a coordinate point to the _base_pt_ input. In this example, we use a panel with the coordinates -500, -80, 0. This will place the chart's bottom-left corner at that location.
In Grasshopper, Panel components are essential for adding custom text, notes, or numerical data. We will use them to input file paths and coordinates.
57
-
58
-
To create a Panel, double-click on an empty part of the Grasshopper canvas.
59
-
60
-
A search bar will appear. Type "Panel" and press Enter, or select it from the list. An empty yellow panel will be created. You can then double-click the panel to edit its content.
Now, let's assemble the main part of our script. The entire process starts with importing the weather data.
77
-
78
-
The central component is Ladybug_Import EPW. The outputs of this component provide all the raw hourly data from the weather file.
79
-
80
-
Connect the desired data outputs from Import EPW to the _data inputs of the various charting components (HourlyPlot, MonthlyChart, PsychrometricChart). For example, connect dry_bulb_temperature to the HourlyPlot's _data input.
81
-
82
-
Use Panel components with different coordinates for each chart's _base_pt_ input to arrange them neatly in the Rhino viewport.
Before the Import EPW component can work, it needs to know where to find the weather file on your computer. EPW files can be downloaded for free from sources like the DOE EnergyPlus website.
99
-
100
-
Using your computer's file explorer, navigate to the location where you saved your EPW file (e.g., USA_CA_Van.Nuys.AP.722886_TMYx.epw).
101
-
102
-
Right-click on the file and select "Copy as path". This copies the full file location to your clipboard.
The final step is to feed the copied file path into our Grasshopper script.
119
-
120
-
Add a Panel component to your canvas (as shown in Step 3).
121
-
122
-
Double-click the panel and paste (Ctrl+V) the file path you copied in the previous step. The panel should now contain the full path to your EPW file.
123
-
124
-
Connect the output of this Panel to the _epw_file input of the Ladybug_Import EPW component.
125
-
126
-
Once this connection is made, Ladybug will read the file, and all the connected visualization components will update to display the data, generating the complete dashboard in your Rhino viewport.
0 commit comments