noaaplotter

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

https://github.com/initze/noaaplotter

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

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

Basic Info
  • Host: GitHub
  • Owner: initze
  • Language: Python
  • Default Branch: master
  • Size: 6.81 MB
Statistics
  • Stars: 13
  • Watchers: 1
  • Forks: 4
  • Open Issues: 12
  • Releases: 11
Created almost 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Citation

README.md

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

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"

Owner

  • Login: initze
  • Kind: user
  • Location: Potsdam, Germany
  • Company: Alfred Wegener Institute

Remote Sensing Scientist, Polar Researcher

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Nitze"
  given-names: "Ingmar"
  orcid: "https://orcid.org/0000-0002-1165-6852"
title: "noaaplotter"
version: 0.5.1
doi: 10.5281/zenodo.7753462
date-released: 2023-03-20
url: "https://github.com/initze/noaaplotter"

GitHub Events

Total
  • Create event: 8
  • Issues event: 2
  • Release event: 3
  • Watch event: 2
  • Delete event: 6
  • Push event: 11
  • Pull request event: 8
Last Year
  • Create event: 8
  • Issues event: 2
  • Release event: 3
  • Watch event: 2
  • Delete event: 6
  • Push event: 11
  • Pull request event: 8