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

Uploaded Source

Built Distribution

env_canada-0.2.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: env_canada-0.2.5.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for env_canada-0.2.5.tar.gz
Algorithm Hash digest
SHA256 77d8b2d761ab1f83d077e3eef287f31e8f8d6bbcb00bbe657e7437bdc90e86ed
MD5 64b9c19650271134bd5765368dbeb410
BLAKE2b-256 1f3f2030f9ed3eb827a0cfe89c79f873ccb25d0c139793f0d5e449076fc0a2a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: env_canada-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for env_canada-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 37a50f8206e0f99bb5a1aa03e3a55c29de0601b08dec1777644da934e1c0b5cb
MD5 c22b919c29f3cae4450a7cc5c07b456f
BLAKE2b-256 36d690971207eb83273d520ba1aca7de72d1ca6fff34dcf5d364e36da4cad1b9

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