# Lab 05: Local Climate Data Analysis

Terence Day

Your friend is getting married, and because they know you’re an expert on physical geography, they’d like you to choose between two possible places for the wedding planned for June 21. Based on the climate, where would you advise your friend to get married?

The two places under consideration are Vancouver Harbour, and Okanagan Centre, and it will probably be on June 21. The ceremony will be held outdoors early to mid-afternoon (the hottest time of day).

This lab uses a variety of statistical analyses to answer these questions. The techniques are all used by physical geographers in a range of different applications, not just in the planning of weddings.

Learning Objectives

After completion of this lab, you will be able to:

- Obtain historical Canadian climate data
- Calculate and interpret a mean
- Calculate the probability of extreme events
- Construct and interpret graphs showing climate change

# Lab Exercises

**EX1: Collect the data**

First, we need to collect the data. This involves a bit of work.

We need data for 30 years to obtain a “climate normal”. Use the Environment Canada website.

The data for Vancouver Harbour are provided, but you’ll need to know how this was obtained because you’ll be collecting the same data for Okanagan Centre.

Search for Vancouver Harbour in the link above, and you will want daily data (not hourly data). We want 30 years of record (e.g. 1991-2020) for June 21. This is a “climate normal”. We will have to get the record for each year individually. For June 21, 2020, for example, you should have a maximum temperature of 20.7 ⁰C and zero precipitation.

Now complete the data for Okanagan Centre. The data for 2020 is already provided, but check to make sure that it is correct. Bear in mind that there may be some missing data; if it’s missing then insert a dash (-). If precipitation is marked “T” then that means that there was just a trace. Enter the “T” on the table, but count is as zero in the calculation of the mean. Note that there is no data available for 2019, there there is for all other years.

Vancouver Harbour | Okanagan Centre | |||
---|---|---|---|---|

Year | Maximum Temperature (⁰C) | Total precipitation (mm) | Maximum temperature (⁰C) | Total precipitation (mm) |

2020 | 20.7 | 0 | 27 | 0 |

2019 | 22.5 | 0 | ||

2018 | 22.0 | 0 | ||

2017 | 19.6 | 0 | ||

2016 | 18.5 | 15.6 | ||

2015 | 24.8 | 0 | ||

2014 | 19.7 | – | ||

2013 | 18.1 | 1 | ||

2012 | 21.0 | 0 | ||

2011 | – | – | ||

2010 | 16.3 | – | ||

2009 | 18.3 | 0.2 | ||

2008 | 20.7 | 0 | ||

2007 | 22.1 | 0.2 | ||

2006 | 20.4 | – | ||

2005 | 23.4 | 6 | ||

2004 | 27.8 | 0 | ||

2003 | 17.7 | – | ||

2002 | 25.9 | 0 | ||

2001 | 24.9 | 0 | ||

2000 | 21.5 | 0 | ||

1999 | 17.9 | 2.8 | ||

1998 | 23.5 | 0.2 | ||

1997 | 16.6 | 21.8 | ||

1996 | 22.8 | 0 | ||

1995 | 20.1 | 0 | ||

1994 | 23.7 | 0 | ||

1993 | 16.3 | 3.2 | ||

1992 | 28.4 | 0 | ||

1991 | 16.1 | 0.2 | ||

Mean |
24.8 |
1.1 |

- When you’ve finished the table, calculate the mean value for each variable at Okanagan Centre. Note that the mean can be calculated in Excel using the expression “=average(data)”, but you do not need to excel.
- What are these numbers telling you about the advisability of holding the wedding at Vancouver Harbour vs. Okanagan Centre?

**EX2: The probability of rain or extreme temperatures**

You will want to make sure that it doesn’t rain and that it’s not ridiculously hot nor cold.

Based on the 30-year record it’s possible to calculate the probability of it being too hot or too cold. If we take the number of days that it rained over the 30-year normal period, and then calculate the percentage of times that it rained, then that is the probability of it raining on that day.

For example, suppose that it rained on that day 3 years out of 30, then 3/30 * 100 = 10%. If on the other hand you only had 27 years of record and it rained on 3 of them then the probability would be 3/27 * 100 = 11.1%

To do the calculations we will need to know how many years it rained. When doing the calculation do not include any years for which we don’t have a record. So if you only have, for example, 27 years of record then do the calculations based on 27 years of record, not 30 years of record.

We will also want to make sure that the temperatures aren’t too hot nor too cool. More specifically, we wouldn’t want temperatures over 30 ⁰C, nor under 20 ⁰C. To do the calculations we will need to know how many days out of the 30-year record the temperatures exceed 30 ⁰C or were below 20 ⁰C. Use these guidelines to determine the following.

- Calculate the probability of it raining on June 21 at Vancouver Harbour based on what has happened over the past 30 years.
- Calculate the probability of it raining on June 21 at Okanagan Centre based on what has happened over the past 30 years.
- What is the probability of temperatures exceeding 30 ⁰C on June 21 at Vancouver Harbour?
- What is the probability of temperatures being less than 20 ⁰C on June 21 at Vancouver Harbour?
- What is the probability of temperatures exceeding 30 ⁰C on June 21 at Okanagan Centre?
- What is the probability of temperatures being less than 20 ⁰C on June 21 at Okanagan Centre?
- Based on your responses to the above questions, what are your conclusions about where to hold the wedding?

**EX 3: Have precipitation and temperature changed over the past 30 years?**

When we calculate probabilities based on what has happened in the past, then we assume what statisticians call “stationarity”. This is an assumption that variations in measurements are due to random fluctuations, and are not associated with any systematic change. However, it’s possible that there is some underlying pattern of climate change. One simple way of examining that is to graph the data over time. Here we will use bar graphs for precipitation and line graphs for temperature.

Line graphs are generally used to show continuous data or something that is a property, e.g. temperature changes over time. Graphs have a horizontal axis (x-axis) and a vertical axis (y-axis). An easy way to remember this is “y to the sky”. Generally, the convention is that the x-axis is the independent variable and the y-axis is the dependent variable. In the case of our temperature graphs, the temperature (the dependent variable) depends on the month (the independent variable). The month doesn’t depend on the temperature.

Bar graphs present data as vertical or horizontal bars that are proportional in length to the value of something. They are used to show discrete or discontinuous data. For example, a bar graph is a good way to show the amount of precipitation that occurred over time. There will be one bar for each year, and the length of the 30 bars will be proportional to the amount of precipitation each year.

Drawing graphs is fairly easy by hand, but more professional looking graphs can easily be constructed using your laptop or other devices. One simple way is to use PowerPoint. Go to Insert > Chart > Bar or other types of graph. Alternatively, use your favourite search engine and look for an applet. We can also draw them in Excel, but it can be an involved process.

Checklist for graphs:

- Is the X-axis the independent variable?
- Are both axes labelled with units (e.g. ⁰C)?
- Does the graph have a title or figure caption?
- Do the size and scale makes sense – not cramped up, nor too much white space?

For this exercise, we will plot the June temperature and precipitation for Vancouver. Has it changed over the past 30 years? For your convenience, the data for Vancouver is listed below:

June Precipitation | June average daily maximum Temperature | |

1991 | 53.6 | 25.5 |

1992 | 96.4 | 28.8 |

1993 | 72.2 | 23.3 |

1994 | 70.5 | 25.0 |

1995 | 43.4 | 28.6 |

1996 | 13.6 | 23.2 |

1997 | 94.8 | 23.5 |

1998 | 29.8 | 25.9 |

1999 | 83.1 | 27.4 |

2000 | 57.0 | 27.5 |

2001 | 60.4 | 25.4 |

2002 | 30.8 | 30.2 |

2003 | 12.8 | 26.6 |

2004 | 22.8 | 28.3 |

2005 | 49.6 | 24.3 |

2006 | 25.2 | 26.2 |

2007 | 80.0 | 27.4 |

2008 | 43.0 | 26.9 |

2009 | 10.8 | 25.9 |

2010 | 48.4 | 23.1 |

2011 | 41.0 | 22.1 |

2012 | 76.8 | 22.0 |

2013 | 45.8 | 31.2 |

2014 | 36.8 | 23.7 |

2015 | 11 | 28.3 |

2016 | 58.2 | 25.2 |

2017 | 46.4 | 26.2 |

2018 | 38.8 | 26.8 |

2019 | 26.2 | 29.9 |

2020 | 53.2 | 24.1 |

- Draw a bar graph of June precipitation in Vancouver for the period 1991 – 2020.
- Draw a line graph of June mean daily maximum temperature in Vancouver for the period 1991- 2020.
- Are there any trends here? Your opinion will be a little subjective, but try to be as objective as possible. We know from data all over the world that climate change is real. Explain your results in that context.
- In the context of climate change, is the average for the past 30 years a good way to estimate the probability of what will happen next year? On the basis of climate trends we have identified, do you have any reason to adjust your thinking about the probability of rain or extreme temperatures in Vancouver?