Skip to main content

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

This version

1.0

Download files

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

Source Distribution

download_canadian_stations-1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

download_canadian_stations-1.0-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file download_canadian_stations-1.0.tar.gz.

File metadata

File hashes

Hashes for download_canadian_stations-1.0.tar.gz
Algorithm Hash digest
SHA256 72e30dc3b8f8bf7e86069a2bbd14d044656af1c2dc684a484fbc7443630af213
MD5 f50317411eb29626eaaa65499b74e560
BLAKE2b-256 15b26762fe7ffe391c32eaf4e28cf87f928c57bed5de4907063a02c3c07d0044

See more details on using hashes here.

File details

Details for the file download_canadian_stations-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for download_canadian_stations-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4aa22a8ee23f2b53031278e8509eaee4f88224a5181723d8b9d58fae35eb3e81
MD5 f0ef89d1e6eeeb89ec3b3c77075441f9
BLAKE2b-256 d8de4591758ee9e59618836983353fe466ade97f3b64f9e84affc825edd45edb

See more details on using hashes here.

Supported by

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