Skip to main content
Question

wind direction route

  • March 22, 2019
  • 5 replies
  • 29 views

jan_van_prooije
Contributor
Forum|alt.badge.img+1

Hello,

As a hobby i'm a cyclist and i was wondering how to set up a workspace which can calculate how much percent of the time the wind is in favor of the cyclist.

If the wind is blowing from the north west (arrow) i would like to know how much percent of the time i have the wind in my back en i have the wind against me. What would be the transformer to get the wind direction into my route data?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 22, 2019

In your pic you have one windirection arrow.If you want to add it to the route, you can just unconditionally merge it.

 

Unconditional FetureMerging is when you have mergkeys both are constant and equal.

Mostly is use 1=1.

 

Now you can use an expression tot calculate direction difference between the cyclist and the wind.

Azimuth calculator on all lines (route chopped to 2vertice pieces) and

You probably know better which range of difference would be in favour or not. Difference of 90-270 degree is not favourable I presume.

 

 

If you have more wind directions on route you need to merge them by zoning/segmenting the route and create groups prior to merging (so you can merge by group).


redgeographics
Celebrity
Forum|alt.badge.img+62

On a side note, there is an API available from one of the major Dutch weather data providers (Weerslag), I don't know how public it is but could find out for you. I'm pretty sure it can give you wind direction in multiple locations (and times!) along your route so you can process that as @gio suggests.


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • March 22, 2019

Just for a little bit of python practice on a Friday night, a wind angle of 135 is blowing from the north west, 180 from the north etc. Anything in the same direction, plus or minus 90 is favourable

wind.fmw

 

 


jan_van_prooije
Contributor
Forum|alt.badge.img+1

Just for a little bit of python practice on a Friday night, a wind angle of 135 is blowing from the north west, 180 from the north etc. Anything in the same direction, plus or minus 90 is favourable

wind.fmw

 

 

Thanks a lot!


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • March 23, 2019

Thanks a lot!

And if you don't want to use python

wind_2.fmw