Solved Degrees to compass direction
-
Hi Team,
I'm using open weather map. Wind direction is in degrees. If I wanted to convert degrees to a compass direction, NNE for example. What's the best way to do that?
Cheers
Mike
-
Hi Mike,
have a look at function block CNDR and PARE - it should do the job. CNDR could be used to transfer range of wind direction to an integer value. Integer could be represented using PARE by number and string (PARE:sy).
Kind Regards,
Tomas -
@cechurat Hi Tomas,
That works very well
I ended up doing it in intervals of 22.5deg. But used 17 values all together to allow for 0 and 360 = N.
Thank you for the help.Cheers
Mike
-
Hi Mike,
Thanks for your feedback - I'm glad I could help.
Kind Regards.
Tomas