This repository will show you how to do the following:
- Download weather data using Government of Canada web resources
- Create an interactive map using
Jupyter
- Build an interactive dashboard using the
Plotly-Dash
library
Weather data is a critical component to agriculture related analytics. However; reliable historical weather data in Canada is not very accessible. Instead, data generated by climate models are used to make predictions of future scenarios. Below is a link to the Canadian Climate Atlas
:
This map gives you historical data, where applicable. They also give you the Ensemble mean
, basically an average of all 24 climate models. If you compare the Historical
data to the Ensemble mean
, you'll appreciate why I've created this repository.
Regardless of my opinion on climate models, the Government of Canada provides the following climate tools, found on their Display and download climate data webiste. These tools are:
Power Analytics and Visualizations for Climate Science (PAVICS)
But bulk downloading from these sites is quite limited.
The Government of Canada's website for Advanced tools for accessing datasets, under the Web Accessible Folder
section, there is a link to an endpoint. This endpoint allows you to use the Advanced Message Queuing Protocol (AMQP) to access weather data, and climate models.
Below is the link to this endpoint:
In order to use this notebook, you need to have the following libraries installed:
pip install metpx-sr3
pip install amqplib
The first notebook in this repository: HOLD provides examples of how to use Python to access this information.
The weather stations used in these maps are found in a csv
file online, on the Government of Canada's website for Advanced tools for accessing data.
On this website, there is a link to a website for a Web Accessible Folder. This folder contains a list of weather stations, along with daily, hourly, monthly climate data.
You can also access data by weather station by using the follwoing link:
https://climate-change.canada.ca/climate-data/#/daily-climate-data