Skip to main content

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.

Metadata

Release files for download_canadian_stations 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 download_canadian_stations 1.0
File Size Uploaded
download_canadian_stations-1.0.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for download_canadian_stations 1.0
File Interpreter ABI Platform
download_canadian_stations-1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.3 kB

Release files / download_canadian_stations-1.0.tar.gz

Download URL download_canadian_stations-1.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
72e30dc3b8f8bf7e86069a2bbd14d044656af1c2dc684a484fbc7443630af213
BLAKE2b-256 checksum
How to use checksums
15b26762fe7ffe391c32eaf4e28cf87f928c57bed5de4907063a02c3c07d0044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / download_canadian_stations-1.0-py2.py3-none-any.whl

Download URL download_canadian_stations-1.0-py2.py3-none-any.whl
Size 9.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4aa22a8ee23f2b53031278e8509eaee4f88224a5181723d8b9d58fae35eb3e81
BLAKE2b-256 checksum
How to use checksums
d8de4591758ee9e59618836983353fe466ade97f3b64f9e84affc825edd45edb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release history Release notifications | RSS feed

This release

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