Download & Analyze NOAA Climate Data
Project description
Climate Data Analysis
This project began as a desire visualize LOCAL climate change.
In the search for HARD DATA, I was surprised to find very little.
Yes, I know all sort of Big Institutions are working on climate
models. Are they open source? Are they easy to interact with?
Does it answer the question how climate change affects me LOCALLY?
Maybe they exist, but I couldn't find any.
So, with the idea of pulling publically available NOAA climate data off the web; I began this project. It is rough and incomplete, but it is a begining.
Command Line Script to:
1. Download NOAA Climate Daily Summary Data
2. Store in off-line database(s) organized by NOAA Weather Station
3. Visualize with tkinter + matplotlib GUI
NOAA requires a token to utilize their automated download fascility. This token must be supplied to this app via an ini-file: cda.ini. See: https://www.ncdc.noaa.gov/cdo-web/token
In order to download a station's climate data, the station ID must be specified. NOAA has 100's (1000's) of weather stations spread across the country. Each is assigned an ID, such as: 'GHCND:USW00024233' This app supports searching for station ID based on a geographical region.
Geographical Regions are specified by fip_code. See: https://www.census.gov/library/reference/code-lists/ansi.html
Command line options to assist in station ID determination:
-findrgn [2_letter_state] : set fip_code used by find
-find [radius] : list all stations within region set by findrgni
-home [lat/long] : set location that station distance is measured from
From Command Line:
py -m cda [-option] [-arg]
When installed with pip, it will add a 'cda.exe' file to your Python Environment in the pythonXX\Scripts directory and a climate_analysis package in your 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. IS THERE SOMEPLACE BETTER?
The downloaded climate data is [tmin, tmax, tavg, prcp, show, snwd]. It is organized by date, and <station_alias>. <station_alias> is user defined, corresponds with a NOAA <station_id>, and also matches a sqlite db file name. All db files are stored in a single directory, specified in cda.ini.
Collaborators are welcomed. This could morph into a substantial project or it could fizzle out. If interested, contact me: davidc@clearfocusengineering.com. We can work out how to collaborate to move ths project forward.
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
Built Distribution
Hashes for climate_analyzer-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c9ca04befcb74bb3a75f087f3aeb309ba8e9cc66091f19830cbfa4b11a582f |
|
MD5 | 7698dc2901e0243b57bc1b89549293da |
|
BLAKE2b-256 | e5db38a20ea1dbf9a1e0aa43ff694d61d916a6abf221aea434ae59002ac5708d |