<jupyter_start><jupyter_text>**<NAME>** Plot Timeseries<jupyter_code>from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import numpy as np
import cartopy.crs as ccrs

import sys
sys.path.append('../')

from synoptic.services import stations_timeseries
from synoptic.plots import plot_timeseries, plot_timeseries_wind, map_timeseries
params = dict(stid='wbb,kmry,ukbkb,qhw,psrim,psink',
              vars='air_temp,relative_humidity,ozone_concentration,wind_speed,wind_direction',
              units='English',
              recent=timedelta(days=2), verbose='HIDE')
plot_timeseries(**params)<jupyter_output>🚚💨 Speedy Delivery from Synoptic API [timeseries]: https://api.synopticdata.com/v2/stations/timeseries?stid=wbb,kmry,ukbkb,qhw,psrim,psink&vars=air_temp,relative_humidity,ozone_concentration,wind_speed,wind_direction&units=English&recent=2880&token=🙈HIDDEN

Returned [6] stations. ['WBB', 'KMRY', 'QHW', 'PSINK', 'PSRIM', 'UKBKB']<jupyter_text>Special Plot for Winds<jupyter_code># Major Downslope Windstorm Event in Northern Utah.
df = stations_timeseries(stid='UTPKL',
                         start=datetime(2020,9,7),
                         end=datetime(2020,9,10),
                         units='speed|mph', verbose='HIDE')

plot_timeseries_wind(df)<jupyter_output>🚚💨 Speedy Delivery from Synoptic API [timeseries]: https://api.synopticdata.com/v2/stations/timeseries?stid=UTPKL&start=202009070000&end=202009100000&units=speed|mph&token=🙈HIDDEN<jupyter_text>Plot the map of the station locations<jupyter_code>fig, ax = plt.subplots(1,1, figsize=[5,5],
                       subplot_kw=dict(projection=ccrs.LambertConformal()))

params = dict(radius='ANIC1,50', network='96,2', recent=120, vars='wind_speed')
map_timeseries(ax=ax, verbose='HIDE', **params)<jupyter_output>🚚💨 Speedy Delivery from Synoptic API [timeseries]: https://api.synopticdata.com/v2/stations/timeseries?radius=ANIC1,50&network=96,2&recent=120&vars=wind_speed&token=🙈HIDDEN

Returned [26] stations. ['CEEC1', 'DLVC1', 'LCBC1', 'LPOC1', 'MBUC1', 'MTIC1', 'ROVC1', 'SBIC1', 'SNCC1', 'SRIC1', 'WLYC1', 'TCLC1', 'OZNC1', 'CSVC1', 'ANIC1', 'MBCC1', '46025', '46053', 'TPGC1', 'MOIC1', 'SBVC1', 'MPWC1', 'CXPC1', 'HRMC1', 'MLXC1', 'PHCC1']
{'fraction_non_alphanumeric': 0.1533660276415515, 'fraction_numerical': 0.0463664734730272, 'mean_word_length': 6.056603773584905, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 3, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '25074', 'license': 'MIT', 'n_tokens_mistral': 934, 'n_tokens_neox': 842, 'n_words': 133, 'path': 'notebooks/plot_timeseries.ipynb', 'repo_name': 'gitter-badger/SynopticPy', 'size': '2251'}