Noaaplotter
python module to make fancy plots for weather data provided by NOAA
Install / Use
/learn @initze/NoaaplotterREADME
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
- NOAA API Token is required: https://www.ncdc.noaa.gov/cdo-web/token
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

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

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

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

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

Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
