Skip to main content

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

ECWeather 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 ECWeather

ec_en = ECWeather(coordinates=(lat, long))
ec_fr = ECWeather(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

This version

0.3.0

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.3.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

env_canada-0.3.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file env_canada-0.3.0.tar.gz.

File metadata

  • Download URL: env_canada-0.3.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for env_canada-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cd37ded4d27a4bc5b3ee5c734552dbf2dfa3901bbdfc071bc2df09745a7ee23a
MD5 1b724e898d7a7ae60952d92134f6f41a
BLAKE2b-256 53f4012538d00173ed1c05fe221f4666a1fed86907de548195efd7f37c0d0f91

See more details on using hashes here.

File details

Details for the file env_canada-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: env_canada-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for env_canada-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8b2ca3fc57169f0d08e2fbd70e8326fc8e4f62adc6e60d968739df01993cc31
MD5 7fb1b53ef5439a6a2c504c44d6ac751b
BLAKE2b-256 83dc2a6e342e3834e1c021d459cafa776d07a1fcb209ce9ee885e910b185fc3d

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