Skip to main content

Weather Data From climate.weather.gc.ca

Project description

Canada Weather Data Package

can_weather_data is a Python library that allows you to retrieve weather data from climate.weather.gc.ca. This package provides functions to extract historical weather data for a given location and time period. It uses the env_canada library to access historical weather data from Environment and Climate Change Canada.

Installation

pip install can_weather_data

Usage

from can_weather_data.weatherdata import data_extract

cord_list = ['48.508333', '-68.467667']

# Set the start and end dates for the weather data retrieval.
start_date = datetime.strptime('Jan2015', '%b%Y')
end_date = datetime.strptime('Dec2020', '%b%Y')

data_extract(cord_list, start_date, end_date)

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

can_weather_data-0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

can_weather_data-0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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