Windrose for Time of the Day without Sun

Hello All.

I am new here and i looked already in the forum about this, but i dont found any similar (maybe i oversaw it).

My question is is it posssible to create a windrose, in my example for Vienna just for the time in night. I mean with night when the sun azimut is <0°. So that i can see a chart where its possible to see the wind speed without sun up and a chart where i can see the wind speed when the sun is away?

Greets.
Manuel

Yes, you definitely can do this. The most elegant way involves a couple of lines of custom Python inside a GHPython component like so:


windrose_plot_night_time.gh (31.9 KB)

There are also ways of doing it with native Grasshopper components + existing LBT components but they’re just a little less elegant.

1 Like

Hi @chris

First of all thank you!!
Sounds good. But i have a problem or i am just confused.
I attached my not elegant way of taking the night hours.

Picture: The definition is from the example files. When i compare your definition with my definiton its kinda different (i tried to use the average Sundawn and Sunrise). I mean its clear that your definition must be more exactly because of the use of the Azimut. I am also wondering i can let the_statement by default?

So my question is: the python script uses just the Azimut which is smaller than 0 right? And how is it possible to show the day wind? Sorry for asking i am completly new and want to understand it.

I really appreciate it.
Thank you.

The hoys that come out of the sunpath are only for the sun-up hours. So, yes, they all have a solar altitude that is greater than 0. All that the Python component is doing is filtering the wind speed data by these hoys. You can plug the output of the Python component into an HourlyPlot component to see the values that are actually being passes to the wind rose.

Yes, the other non-python ways that I was referring to involve a statement_.

1 Like

Ok so it comes from the sun component. And how can i show then the opposite of the sun up, i mean when sun is not up i guess i have to put sth inbetween ladypug epw file reader and the sun node right?

Take the hoys output from the sunpath component and process them with some native Grasshopper components to get a list of the integers between 0 and 8759 that are not in the hoys output by the Sunpath component. The “Series” component and the “Cull Indices” component will probably be your friends here.

1 Like

Had a similar isue last week and did it like this:

I was surprised when the sunpath component expected values between 0 and 8760. Seems to be one hour too much.

2 Likes

You can think of the input there as saying the domain of hour input hr is:
0 \leq hr < 8760 (inclusive of 0 and exclusive of 8760).

Which is equivalent to:
0 \leq hr \leq 8759 (inclusive of 0 and 8759).

3 Likes