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

This version

0.2.7

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

Uploaded Source

Built Distribution

env_canada-0.2.7-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: env_canada-0.2.7.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for env_canada-0.2.7.tar.gz
Algorithm Hash digest
SHA256 8bc46f99194f8306ba80f134a38fcc1a27b9aa8ab8b2265e659d11431f812157
MD5 f332d11b684f26148458ed656fca0f6e
BLAKE2b-256 767e1a5313ec4d2a42eb9401c79c3a5db68585348b99b607ed4b81b88a5a601a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: env_canada-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for env_canada-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4a5bf037946705223b4938acc9ee7b4fa1141710aed0cf103e28b1791acd7069
MD5 04337f188a49477baed8ca8aebad263d
BLAKE2b-256 6362e90a7ce52470584518fa247d4e00da7ac0639e083d1f28a472b0b8dc9e5f

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