Ctrl+K

atmospy 0.1.1 documentation

  • Installing
  • Gallery
  • Tutorial
  • API

Site Navigation

  • Installing
  • Gallery
  • Tutorial
  • API
  • Daily Average Ozone
  • Hourly Averaged Ozone
  • Diel Trends by Weekend vs Weekday
  • Diel Ozone Trends
  • PM2.5 by Direction
  • Compare Two Sensors
  • PM2.5 Pollution Rose by Month

Diel Ozone Trends#

../_images/dielplot.png

atmospy components used: set_theme(), load_dataset(), dielplot()

import atmospy
import pandas as pd
atmospy.set_theme()

# Load the example dataset
df = atmospy.load_dataset("us-ozone")

# Select a single location
single_site_ozone = df[
    df["Local Site Name"] == df["Local Site Name"].unique()[0]
]

# Plot the diel trend
atmospy.dielplot(
    single_site_ozone,
    y="Sample Measurement", x="Timestamp Local",
    ylabel="$O_3 \; [ppm]$",
    plot_kws={"c": "g"},
    ylim=(0, None)
)

© Copyright 2021-2024.

Created using Sphinx 5.3.0.