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

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

Uploaded Source

Built Distribution

env_canada-0.2.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: env_canada-0.2.2.tar.gz
  • Upload date:
  • Size: 10.6 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.51.0 CPython/3.9.0

File hashes

Hashes for env_canada-0.2.2.tar.gz
Algorithm Hash digest
SHA256 25ad25a7365a4ac6ec358dabc8aaf3c2ac407e170f8fd0e53fa1ca969230f558
MD5 7f9ce65c0b223d429e9591d3bedd5b7a
BLAKE2b-256 750067ae25deb01d5e46e015eb64550edf85233b901e86f47e1cc929f3cdc696

See more details on using hashes here.

File details

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

File metadata

  • Download URL: env_canada-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.51.0 CPython/3.9.0

File hashes

Hashes for env_canada-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10ed02816767fc5e4f8465b69ef886cd141e9603090238667a40d7baeaf7dd2f
MD5 c08314906ad032713f97ec77f32be7bd
BLAKE2b-256 42391cfe4806e43f52cda79ad8686f2dc0bcb7888b0a578ec69bb34cba748759

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