Download data about all active Environment Canada weather stations
Project description
This is a utility to download the current list of active weather stations in Canada.
Currently, this downloads information about the Environment Canada weather stations and produces a CSV file with their details including
- Lat and Long
- Various IDs used to identify the station
- The station name
- A link to the historical records for this station
I wrote this utility to produce CSV files for use with Google's "My Maps" feature.
Installation and use
# Using pip
pip3 install download-canadian-stations
# If you want to pull from git, assuming you you have Python and pipenv installed
git clone https://github.com/timdaman/canadian-weather-station-downloader.git
cd canadian-weather-station-downloader
pipenv install
pipenv run ./download_stations.py
Why would I need a map of weather stations in Canada?
I do lots of wilderness travel. I sometimes like to analyze recent weather data for locations I will travel to in order to pack more efficiently and do better route planning. This is especially useful in the winter where I try to anticipate lake ice and snow conditions.
I find the way Environment Canada shows information about weather stations painful to use when trying to find the best station to draw data from. By overlaying the active stations on a map I can more easily determine the best choice. The url field then makes it easy to jump to the data.
Below is a list of maps I have created using output from this script
Notes
The code assumes yesterday's data is always available. Weather Canada does not produce a list of stations until the end of the day is PST so this code always uses PST time to identify what day it is.
Disclaimers
This is not an officially supported Google product.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file download_canadian_stations-1.0.tar.gz
.
File metadata
- Download URL: download_canadian_stations-1.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e30dc3b8f8bf7e86069a2bbd14d044656af1c2dc684a484fbc7443630af213 |
|
MD5 | f50317411eb29626eaaa65499b74e560 |
|
BLAKE2b-256 | 15b26762fe7ffe391c32eaf4e28cf87f928c57bed5de4907063a02c3c07d0044 |
File details
Details for the file download_canadian_stations-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: download_canadian_stations-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa22a8ee23f2b53031278e8509eaee4f88224a5181723d8b9d58fae35eb3e81 |
|
MD5 | f0ef89d1e6eeeb89ec3b3c77075441f9 |
|
BLAKE2b-256 | d8de4591758ee9e59618836983353fe466ade97f3b64f9e84affc825edd45edb |