# Lab 05: Local Climate Data Analysis

Terence Day

Your friend is getting married, congratulations to them! And because they know you’ve become an expert on physical geography, they’d like you to help them choose between two possible places for the wedding. It is currently planned for June 21. The two places under consideration in BC are the lovely Stanley Park near Vancouver Harbour, and a delightful winery near Okanagan Centre. The ceremony will be held outdoors early- to mid-afternoon (the hottest time of day). Based on the climate, where would you advise your friend to get married?

In this lab you will use a variety of statistical analyses to answer questions on the best, most dependable climate to hold a wedding. 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 using the Environment and Climate Change Canada website.
- Calculate and interpret a mean (average).
- Calculate the probability of extreme events occurring.
- Construct and interpret graphs showing local climate trends.

# Pre-Readings

## Climatology

Climatology is the study of climate through long-term weather patterns. When examined over time and space, areas with similar weather statistics can be identified, and are called climate regions. A **Climate Normal** is a 30-year (for example, 1981-2010, 1991-2020) average of climate conditions at a particular location. Climate Normals are used to for planning purposes and to determine official governmental policies at a larger scale.

## Summary Statistics and Probability

Understanding of the following terms/concepts is required in order to complete this lab:

- Mean or average.
- Probability.
- Data trends.

## Types of Graphs and How to Create Them

**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 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 specific units of time. For example, when plotting Climate Normal precipitation, there will be one bar for each year, and the length of each of the 30 bars is proportional to the amount of precipitation that falls each year.

Drawing graphs is fairly easy by hand, but more professional-looking graphs can easily be constructed using your laptop or other device. We will practicing creating charts in Google Sheets, here, or you can use Microsoft Excel or other spreadsheet program.

In order to be sure that the data you are presenting makes sense to other people (or yourself later on) and is useful for your analyses, it is important to include some extra information, in addition to the data itself. Here is the **checklist for graphs**:

- Is the x-axis the independent variable?
- Are both axes labelled and do they include appropriate units (e.g., °C for temperature, mm for precipitation)?
- Does the graph have a descriptive title or figure caption?
- Do the size and scale of both axes on the chart make sense – not cramped up, nor too much white space? Can you view the data clearly?

# Lab Exercises

In this lab you will collect historical climate data from the Environment and Climate Change Canada website, and analyse the data using statistical techniques in order to determine the probability of certain weather conditions (precipitation, extreme heat) occurring at the time of your friend’s wedding. You will also use statistical methods to assess whether or not precipitation and temperature have changed over the past 30 years, and reflect on how this may affect the recommendation you are making to your friend.

A Worksheet is provided for you to complete as you work through the lab exercises. Your instructor will provide you with instructions on how to submit it once complete.

First, you need to collect some data to help with your recommendations. Specifically, you need data for 30 years to obtain a Climate Normal (e.g., 1991 – 2020) for June 21. In this exercise you will collect Maximum Temperature (°C) and Total Precipitation (mm).

You will have to get the record for each year individually.

**Step 1**: Open the Environment and Climate Change Canada website.

**Step 2**: Once you are on the website, search for your site by typing the name in the **Name** box.

**Step 3**: Select **daily** as the **Data Interval**. Change the **year** to **2020** and select **June** for the **month**. The days will become greyed out – you will be given the entire month. Click **Go**.

**Step 4**: On the data page, scroll down to June 21 to see the data you need. If you have a smaller screen but would like to see the column headings with the data, you can reduce the size of the font by clicking **<Ctrl><->** on your keyboard. Once you have recorded the information you need, change the **year** using the drop-down menu at the bottom of the page. Continue this process until you have all your data.

- Collect the data and add it to Table 5.1. The data for Vancouver Harbour are provided, as is the data for Okanagan Centre for 2020 (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 at Okanagan Centre for 2019, but there is for all other years.

- Calculate the mean value for each variable at both locations, and fill in the bottom row of Table 5.1. The mean can be calculated in Excel or Google Sheets using the expression
**=average(data)**, or you can calculate it by hand. - What are these numbers telling you about whether or not it is a good idea to hold the wedding at Vancouver Harbour vs. Okanagan Centre? (1 – 2 sentences)

EX2: Examining the Probability of Rain or Extreme Temperatures

With your friend’s comfort in mind, you will want to make sure that the probability for rain and ridiculously hot or cold temperatures is low. Based on the 30-year record you have created, it is possible to calculate these probabilities.

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 we know the probability of it raining on June 21. To do the calculations you will need to know how many years it rained. When doing the calculation **do not include any years for which there is no record**.

For example, suppose that it rained on that day 3 years out of 30, then

[latex]\dfrac{3}{30} \times 100\% = 10\%[/latex]

If on the other hand you only had 27 years of record and it rained on 3 of them then the probability would be

[latex]\dfrac{3}{27} \times 100\% = 11.1\%[/latex]

Your friend **really** doesn’t want it to rain on their wedding day, so even though the rain wasn’t measurable, count days with “Trace” rain as rainy days.

You also want to make sure that the temperatures aren’t too hot nor too cool. More specifically, your friend does not want the temperature to be over 30 °C, nor under 20 °C. To do the calculations you need to know how many days out of the 30-year record the temperatures were higher than 30 °C or were below 20 °C.

Use these guidelines to determine answers to the following questions. **Show your work.**

- Based on what has happened over the past 30 years, what is the probability of it raining on June 21 at
- Vancouver Harbour?
- Okanagan Centre?

- Based on what has happened over the past 30 years on June 21, what is the probability of temperatures
- exceeding 30 °C at Vancouver Harbour?
- being less than 20 °C at Vancouver Harbour?
- exceeding 30 °C at Okanagan Centre?
- being less than 20 °C at Okanagan Centre?

- Based on your responses to the above questions, what are your conclusions about where to hold the wedding? (2 – 4 sentences)

EX3: 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**. Stationarity is an assumption that variations in measurements are due to random fluctuations, and are not associated with any systematic change. However, it is 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.

In this exercise, you will plot the total monthly precipitation and mean daily maximum temperature for June for Vancouver Harbour. Has it changed over the past 30 years? For your convenience, the data is listed in Table 5.2.

- Construct a bar graph of June precipitation at Vancouver Harbour for the period 1991 – 2020.
- Copy and paste Table 5.2 into Google Sheets or Excel.
- Select the
**Year**and**Total June Precipitation**columns and click on**Insert/Chart/Column**. - Check that your labels, title, and axis are correct using the checklist for graphs and copy and paste your graph into your Worksheet.

- Construct a line graph of June mean daily maximum temperature at Vancouver Harbour for the period 1991- 2020.
- Select the
**Year**and**June Mean Daily Temperature**columns and click on**Insert/Chart/Line**. - Check that your labels, title, and axis are correct using the checklist for graphs and copy and paste your graph into your Worksheet.

- Select the
- Are there any trends here? Your opinion will be a little subjective, but try to be as objective as possible. There are world-wide datasets that show warming trends. Explain your results in this world-wide context. (2 – 4 sentences)
- 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 you identified, do you have any reason to adjust your thinking about the probability of rain or extreme temperatures in Vancouver? (2 – 4 sentences)

Reflection Questions

Please take 15 minutes to consider the following questions. You can type your responses into your Worksheet.

- Now that you have some experience calculating means, can you think of another use for this new skill of yours?
- Describe a scenario where calculating the mean could help you make a decision in your life. Include a description of the data you would need to collect to help inform your decision.
- How long would you need to collect the data for in order for the mean to be representative? Explain your reasoning.

- In EX3 you assessed trends in climate data based on one relatively small set of data. What type of data would you need to see larger trends?