Skip to main content

Analyze and map climate trends from GSOD data using the Mann-Kendall test.

Project description

PyGSODTrend

PyGSODTrend is a command-line tool for analyzing climate trends from NOAA's GSOD (Global Summary of the Day) datasets.
It cleans raw GSOD CSV data, performs Mann-Kendall trend analysis on precipitation (PRCP), maximum temperature (MAX), and minimum temperature (MIN), and generates geographic scatter plots of detected trends.


Features

  • ✅ Cleans GSOD input data by filtering invalid temperature and precipitation values.
  • ✅ Performs trend analysis using the Mann-Kendall statistical test.
  • ✅ Generates geographic trend maps for PRCP, MAX, and MIN.
  • ✅ Provides real-time CLI feedback with progress spinners.
  • ✅ Saves output plots as PNG images in the results/ directory.

Installation

pip install pygsodtrend

Usage

Run the tool on a GSOD CSV file:

pygsodtrend path/to/input.csv input_file --temp_min --temp_max --prcp_max --alpha

Arguments

Argument Type Default Description
input_file str Path to the input GSOD CSV file.
--temp_min float -50.0 Minimum valid temperature (°F).
--temp_max float 130.0 Maximum valid temperature (°F).
--prcp_max float 500.0 Maximum valid precipitation (mm).
--alpha float 0.05 Significance level for Mann-Kendall test.

Example CLI Output

Analyzing trend for PRCP...
✔ Trend map for PRCP saved to: results/trendmapprcp.png
Analyzing trend for MAX...
✔ Trend map for MAX saved to: results/trendmapmax.png
Analyzing trend for MIN...
✔ Trend map for MIN saved to: results/trendmapmin.png
All trend maps generated.

License

This project is licensed under the MIT License.
Feel free to use, modify, and distribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygsodtrend-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygsodtrend-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file pygsodtrend-0.1.0.tar.gz.

File metadata

  • Download URL: pygsodtrend-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pygsodtrend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 900a8e8dceebcb67b48bdbd264565be8e3cac705092bb9d72225ba6471d64ef3
MD5 dcc93ba0d0003c500196a81d98a360be
BLAKE2b-256 30a56af191282c74c3fe7c9625c36bb2edc15e2c1ef656be8e919b18e143e49a

See more details on using hashes here.

File details

Details for the file pygsodtrend-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygsodtrend-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pygsodtrend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d73e078ee38ef0ded5d77c66738cd8f327a57832017940cf4b6bbe72cbf77e6f
MD5 57ef52e29b7d0f2428d8b514305fe2ed
BLAKE2b-256 e6f818abf2d30f8180fe205a3efe53a1227c6ab7143a6e2a160870601b54f088

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page