<jupyter_start><jupyter_text>Time Series Wind RosesWhen dealing with Air Quality Time Series, it is important to assess how distributions are affected by Wind Direction.The Weather Toolbox provides a Wind object to ease such analysis. Introduction ImportsWe import required packages:<jupyter_code>import pandas as pd
from odapi.connectors import Irceline
from odapi.toolbox import Wind
from odapi.settings import settings
settings.logger.setLevel(40)<jupyter_output><empty_output><jupyter_text>Dataset & ClientWe load the dataset we previously stored and create the Irceline client:<jupyter_code>data = pd.read_pickle("dump/brussels_2014.pickle").droplevel([1,2,3], axis=1)
client = Irceline()<jupyter_output><empty_output><jupyter_text>Roses and BoxplotsWe will perform our analysis on the following series:<jupyter_code>skeys = ['NO/41R001 (µg/m³)', 'PM-2.5/41N043 (µg/m³)', 'CO2/41R002 (ppm)',
          'O3/41R012 (µg/m³)', 'T/41R001 (°C)', 'WS/41R001 (m/s)']<jupyter_output><empty_output><jupyter_text>**Note:** There is a difference between Goniometric and Trigonometric systems. By defaults, Weather methods expect to get Goniometric angles (common meteorological reference) instead of Trigonometric angles.<jupyter_code>scales = client.scales()
for k in skeys:
    axe1 = Wind.boxplot(data, k, theta='WD/41R001 (°G)')
    axe1[0].set_ylim(scales[k.split('/')[0]])
    axe2 = Wind.rose(data, k, theta='WD/41R001 (°G)')
    axe2.set_ylim(scales[k.split('/')[0]])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12149532710280374, 'fraction_numerical': 0.04072096128170895, 'mean_word_length': 6.420792079207921, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '161364', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 556, 'n_tokens_neox': 510, 'n_words': 133, 'path': 'odapi-docs/source/notebooks/irceline_08_windrose.ipynb', 'repo_name': 'jlandercy/odapi-docs', 'size': '1498'}