Skip to main content

climate_analyzer

climate_analyzer is a command line app that downloads NOAA weather station daily summary data and provides a gui to analyze year-to-year trends. It also provides for searching a particular region for available NOAA weather stations. climate_analyzer uses NOAA's Web Services API described here: ([https://www.ncdc.noaa.gov/cdo-web/webservices]).

Features

  1. Search for available NOAA weather stations by state/county.
  2. Download NOAA Climate Daily Summary Data by weather station.
  3. Store data in off-line database(s) organized by weather station.
  4. Visualize with tkinter + matplotlib GUI
  5. Checks NOAA Web Services for updates to existing off-line database(s).

Usage

climate_analyzer is a command line app that takes one and only one option. If no option is provided, climate_analyzer checks for updates to existing databases and then launches the visualization gui. In order to access NOAA's Web Services, an access token must be obtained and provided to climate_analyzer.

When installed with pip, climate_analyzer will add 'cda.exe' to the Python Environment in the pythonXX\Scripts directory and a climate_analysis package to pythonXX\Lib\site-packages. cda.exe utilizes the climate_analysis package. Config data is kept in cda.ini, also stored in pythonXX\Lib\site-packages.

Options

--token [access-token]

Set the used by climate_analyzer when connecting to NOAA's Web Services. The is a 32-character alpha-numeric and can be obtained from here here: https://www.ncdc.noaa.gov/cdo-web/token This, and other configuration parameters are stored in ..\site-packages\climate_analyzer\cda.ini.

--findrgn [state]

Set the state & county region used by --find. For each state, climate_analyzer prompts with a list of possible counties (or parishes). The state/county is converted 5-digit fip_code and stored in cda.ini. See: https://www.census.gov/library/reference/code-lists/ansi.html

--find [radius]

Display <STATION_ID> and other information for all weather stations within the state & county set by -findrgn.

--home [lat,long]

Set internal variable used to calculate distance of weather station.

--station [alias]

Set <STATION_ALIAS> and <STATION_ID> used by --getcd. The user is prompted for the <STATION_ID>. Any number of alias & id pairs may be set but a [alias, id] pair must be set inorder to download its climate data.

--getcd [alias]

Download all available daily summary climate data for [alias]. Daily summary consists of [tmin, tmax, tavg, prcp, snow, snwd]. Data is stored in sqlite database @ %USERPROFILE%/AppData/ClimateData with a filename of [alias]. The location used to store sqlite databases can be changed by editing cda.ini.

Metadata

Release files for climate-analyzer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for climate-analyzer 0.1.0
File Size Uploaded
climate_analyzer-0.1.0.tar.gz 79.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for climate-analyzer 0.1.0
File Interpreter ABI Platform
climate_analyzer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 162.1 kB

Release files / climate_analyzer-0.1.0.tar.gz

Download URL climate_analyzer-0.1.0.tar.gz
Size 79.1 kB
Tags Source
SHA-256 checksum
How to use checksums
08f5a4c837c68c3a4e282c033ddd61f2bef4cba58b118743beddf52e458c2e57
BLAKE2b-256 checksum
How to use checksums
b959d119d9306d18e80014ea95d248e21d00cfdb9b70015875e8ed0a9bc623be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release files / climate_analyzer-0.1.0-py3-none-any.whl

Download URL climate_analyzer-0.1.0-py3-none-any.whl
Size 83.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af7afc5a1d1ea67aac84169be01694b78875661804321a97cdc76920280056fc
BLAKE2b-256 checksum
How to use checksums
e3f99e176f6d3e8e289cd031780cb2502e1101ff95af4c24cec06a60e9f2b32a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page