I'm trying to convert wind direction from degrees to compass. I have a calculated wind direction value, but I want to be able to classify it as compass direction instead of the degree as a field in Survey123. These are the compass categories I would like the value to fall into. I know I have to write an if-then statement in the calculation column, but I am having a heck of a time wrapping my head around the syntax. Please help!
- N = North (349 - 011 degrees)
- NNE = North-Northeast (012-033 degrees)
- NE = Northeast (034-056 degrees)
- ENE = East-Northeast (057-078 degrees)
- E = East (079-101 degrees)
- ESE = East-Southeast (102-123 degrees)
- SE = Southeast (124-146 degrees)
- SSE = South-Southeast (147-168 degrees)
- S = South (169-191 degrees)
- SSW = South-Southwest (192-213 degrees)
- SW = Southwest (214-236 degrees)
- WSW = West-Southwest (237-258 degrees)
- W = West (259-281 degrees)
- WNW = West-Northwest (282-303 degrees)
- NW = Northwest (304-326 degrees)
- NNW = North-Northwest (327-348 degrees)