To plot a wind plot in Grapher, the wind direction must be an angle in degrees. If your wind direction is listed in your data file as a compass direction, like N, SE, or WNW, you will need to create a new data column for angle in degrees. This can be done in Grapher's worksheet.
- Click File | Open, select your data file, and click Open.
- Click Data Tools | Data | Transform.
- In the Transform dialog,
- In the Transform equation box, enter this equation, substituting out your column containing the directions where you see "A", and the new column you want the angle in degrees to be written to for "B".
B=If(A="N",0,IF(A="E",90,IF(A="S",180,IF(A="W",270,IF(A="NE",45,IF(A="NW",315,IF(A="SE",135,IF(A="SW",225,A))))))))
- Change the First row to 2 if you have a header row.
- Set the Text cells list to Are treated as text.
- Click OK.
- In the Transform equation box, enter this equation, substituting out your column containing the directions where you see "A", and the new column you want the angle in degrees to be written to for "B".
- If you also have values like NNE and ESE, repeat step 3, but use this equation this time:
B=If(A="NNE",22.5,IF(A="NNW",337.5,IF(A="ENE",67.5,IF(A="WNW",292.5,IF(A="SSE",157.5,IF(A="SSW",202.5,IF(A="ESE",112.5, IF(A="WSW",247.5,B))))))))
To display the axes labels as compass directions, see here: Display Compass Direction instead of Degrees on a Polar Plot in Grapher.
Updated May 2023
Comments
Please sign in to leave a comment.