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, long))
radar_station = ECRadar(station_id='XFT')
# 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.0.34.tar.gz
(9.1 kB
view details)
File details
Details for the file env_canada-0.0.34.tar.gz
.
File metadata
- Download URL: env_canada-0.0.34.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8d367421de49f534d2a35c4c526ba324d19e10a3aeaf16f8bd9881e3846548 |
|
MD5 | 4222e50afb20c1a53fcfe95f5c57fa65 |
|
BLAKE2b-256 | 54afbb0ef7171c58b73a2702c43d4333617288a0f9c25b514222acc1ea6fea2e |