A package to access meteorological data from Environment Canada
Project description
Environment Canada (env_canada)
This package provides access meteorological data published by Environment Canada.
Weather
ECData
provides current conditions and forecast. It automatically determines which weather station to use based on latitude/longitude provided. It is also possible to specify a specific station code of the form AB/s0000123
based on those listed in this CSV file. For example:
from env_canada import ECData
ec_en = ECData(coordinates=(lat, long))
ec_fr = ECData(station_id='ON/s0000430', language='french')
# current conditions
ec_en.conditions
# daily forecasts
ec_en.daily_forecasts
# hourly forecasts
ec_en.hourly_forecasts
# alerts
ec_en.alerts
# AQHI air quality
ec_en.aqhi
# Update
ec_en.update()
Radar
ECRadar
provides Environment Canada meteorological radar imagery.
from env_canada import ECRadar
radar_coords = ECRadar(coordinates=(lat, lon))
# Conditions Available
radar_coords.get_loop()
radar_station.get_latest_frame()
License
The code is available under terms of MIT License
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
env_canada-0.2.4.tar.gz
(15.2 kB
view hashes)
Built Distribution
env_canada-0.2.4-py3-none-any.whl
(15.8 kB
view hashes)
Close
Hashes for env_canada-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab58a8442d8ef2c7cc00a431b27c0b187d2ca3ec50ccc5bcdd353f6c73807a23 |
|
MD5 | e60f328098a4824ff58b28cce9301f77 |
|
BLAKE2b-256 | 068d1b395af2d0b04b7c8c44a5417a87ea8a3259e1a60c8b606130541aaf1aed |