A package to access meteorological data from Environment Canada
Project description
Environment Canada (env_canada)
This package provides access to various data sources published by Environment and Climate Change Canada.
Weather Observations and Forecasts
ECWeather provides current conditions and forecasts. 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:
import asyncio
from env_canada import ECWeather
ec_en = ECWeather(coordinates=(50, -100))
ec_fr = ECWeather(station_id='ON/s0000430', language='french')
asyncio.run(ec_en.update())
# current conditions
ec_en.conditions
# daily forecasts
ec_en.daily_forecasts
# hourly forecasts
ec_en.hourly_forecasts
# alerts
ec_en.alerts
Weather Radar
ECRadar provides Environment Canada meteorological radar imagery.
import asyncio
from env_canada import ECRadar
radar_coords = ECRadar(coordinates=(50, -100))
# Conditions Available
animated_gif = asyncio.run(radar_coords.get_loop())
latest_png = asyncio.run(radar_coords.get_latest_frame())
Air Quality Health Index (AQHI)
ECAirQuality provides Environment Canada air quality data.
import asyncio
from env_canada import ECAirQuality
aqhi_coords = ECAirQuality(coordinates=(50, -100))
asyncio.run(aqhi_coords.update())
# Data available
aqhi_coords.current
aqhi_coords.forecasts
Water Level and Flow
ECHydro provides Environment Canada hydrometric data.
import asyncio
from env_canada import ECHydro
hydro_coords = ECHydro(coordinates=(50, -100))
asyncio.run(hydro_coords.update())
# Data available
hydro_coords.measurements
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file env_canada-0.4.0.tar.gz.
File metadata
- Download URL: env_canada-0.4.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c44fa9acb04bd352ec2772f0825e3d4bcab5c3f24429a740c6a8a069705c1ad
|
|
| MD5 |
db62cd1d28739bf990b535593adce966
|
|
| BLAKE2b-256 |
fd744e62fac3a0934ba4b927d5f573822b55d60907eaeb946270c9e0eae09d7a
|
File details
Details for the file env_canada-0.4.0-py3-none-any.whl.
File metadata
- Download URL: env_canada-0.4.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc5eb06190aa0e66f8fd2ced9ba37c03c5ad3c8cf2f58d356dc3803cbf3e08e
|
|
| MD5 |
71bafbe39f3bd30fb118b25b7715d208
|
|
| BLAKE2b-256 |
361943f83a5612cacfeb2d49ae436bcda7074437c333fa1e69eeea31e62770cf
|