⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

python module to make fancy plots for weather data provided by NOAA

Notifications You must be signed in to change notification settings

initze/noaaplotter

Repository files navigation

noaaplotter

A python package to create fancy plots with NOAA weather data.

Install

Recommended conda install

I recommend to use a fresh conda environment conda create -n noaaplotter python pip

activate conda environment conda activate noaaplotter

pip install noaaplotter and dependencies pip install git+https://github.com/initze/noaaplotter.git

Requirements

  • matplotlib
  • numpy
  • pandas
  • python
  • requests
  • joblib
  • tqdm
  • geemap

Examples

Download data

Option 1 NOAA Daily Summaries: Download via script

Download daily summaries (temperature + precipitation) from Kotzebue (or other station) from 1970-01-01 until 2021-12-31

download_data.py -o ./data/kotzebue.csv -sid USW00026616 -start 1970-01-01 -end 2021-12-31 -t <NOAA API Token>

Option 2 NOAA Daily Summaries: Download via browser

CSV files of "daily summaries" ("https://www.ncdc.noaa.gov/cdo-web/search")

  • Values: metric
  • File types: csv

Option 3 ERA5 Daily: Download via script

Download daily summaries (temperature + precipitation) from Potsdam (13.05°E, 52.4°N) from 1980-01-01 until 2021-12-31

  • Google Earthengine account is required
  • Caution: full dataset may take a few minutes

download_data_ERA5.py -o ./data/potsdam_ERA5.csv -start 1980-01-01 -end 2021-12-31 -lat 52.4 -lon 13.05

Daily Mean Temperature and Precipitation values vs. Climate

Entire year 1 January until 31 December (e.g. 1992)

plot_daily.py -infile data/kotzebue.csv -start 1992-01-01 -end 1992-12-31 -t_range -45 25 -p_range 50 -plot

alt text

Monthly aggregates

Absolute values

Temperature: plot_monthly.py -infile data/data2.csv -start 1980-01-01 -end 2021-08-31 -type Temperature -trail 12 -save_plot figures/kotzebue_monthly_temperature_anomaly.png -plot Kotzebue_monthly_t_abs

Precipitation: plot_monthly.py -infile data/data2.csv -start 1980-01-01 -end 2021-08-31 -type Precipitation -trail 12 -save_plot figures/kotzebue_monthly_precipitation.png -anomaly -plot Kotzebue_monthly_p_abs

Anomalies/Departures from Climate (1981-2010)

Temperature:

plot_monthly.py -infile data/data2.csv -start 1980-01-01 -end 2021-08-31 -type Temperature -trail 12 -save_plot figures/kotzebue_monthly_temperature_anomaly.png -anomaly -plot

"Mean monthly temperatures with 12 months trailing mean"

Precipitation:

plot_monthly.py -infile data/data2.csv -start 1980-01-01 -end 2021-08-31 -type Precipitation -trail 12 -save_plot figures/kotzebue_monthly_precipitation_anomaly.png -anomaly -plot

"Mean monthly temperatures with 12 months trailing mean"

About

python module to make fancy plots for weather data provided by NOAA

Resources

Stars

Watchers

Forks

Packages

No packages published