Trends in minimum temperature are thought to be among the most telling signatures of climate change. This analysis tests that hypotesis by looking for this signature in climate data stored by NOAA’s National Climate Data Center.
The analysis looks the trend in TMIN (the minimum daily temperature). While changes are difficult to see in the overall trend, using a threshold level detection scheme and segregating data by season, we can clearly see an upturn in TMIN during Winter months. Surprisingly, the trend is not apparent during summer months. This suggests the effects of climate change are more subtle than one might expect, affecting minimum temperatures during colder months rather than, for instance, the maximum temperatures during hotter months.
Full code is available on Github
TempData <- read.csv("407964_A.csv", header=TRUE, na.strings="-9999")
Input and data cleaning are pretty straight forward. Data are downloaded from the National Climate Database by selecting
- Browse Data Sets
- Daily Summaries
- Mapping Tool - Selecting a station with an appropriately long record (preferably 1930’s to present)
- Select Custom GHCN-Daily CSV - Select Date Range
- On next screen select Station Name and Air Temperature (contains fields TMIN, TMAX, and TOBS)
- Enter email address
- Submit
A link to the data will arrive in your email in a few minutes to a few hours.
One the file is dowloaded it can be stored in the local directory. The program needs to be edited to read it.
The main data cleaning are eliminating NA’s and creating Date factor columns for later analysis. Here is a look at the structure of the cleaned data.
## Warning: / not meaningful for factors
## 'data.frame': 26990 obs. of 8 variables:
## $ STATION : Factor w/ 2 levels "","GHCND:USW00014764": 2 2 2 2 2 2 2 2 2 2 ...
## $ STATION_NAME: Factor w/ 2 levels "","PORTLAND INTERNATIONAL JETPORT ME US": 2 2 2 2 2 2 2 2 2 2 ...
## $ DATE : Date, format: "1940-11-07" "1940-11-08" ...
## $ TMIN : num -1.1 -0.6 -2.8 -5.6 2.2 7.8 4.4 2.8 3.3 -1.1 ...
## $ TMAX : num 7.8 10 9.4 7.2 10.6 12.8 8.3 5 6.7 7.2 ...
## $ TOBS : logi NA NA NA NA NA NA ...
## $ MON : Factor w/ 12 levels "Jan","Feb","Mar",..: 11 11 11 11 11 11 11 11 11 11 ...
## $ YEAR : Factor w/ 75 levels "1940","1941",..: 1 1 1 1 1 1 1 1 1 1 ...
The cleaned data contain 26990 observations from 1940-11-07 to 2014-09-29.
The maximum high temperature during this period was 39.4 degrees Celcius.
The maximum low temperature during this period was 24.4 degrees Celcius.
The minimum low temperature during this period was -39.4 degrees Celcius.
The Temperature trends for a specific location show expected seasonal variation and seems to follow a regular pattern with little apparent long term change.
The plot below is the TMIN data for the period mentioned above. In most cases a few data points which appear to be outliers are present. These points are not eliminated from the analysis since there is no documented reason to do so.
We can disect the seasonal trend from the data as in the plot below. Ranges vary but for most coastal data sets the variation in low temperatures is on the order of 10oC. This variation will swamp any expected changes (more on the order of 1oC) from climate change.
One place to start is looking at the trend of Min temps in the Winter months. This can be interesting from the standpoint that solar heating during the day is shorter and nightimes are longer, allowing for more time for a change in the greenhouse effect to manifest itself.
From the graph above, the TMIN for the Months December to March are fairly stable. So let’s start there.
The first thing to look at is the density of temperature data points for each year of the record. In the Figure below each TMIN is plotted with an alpha = 0.06, meaning that about 15 overlaying data points can be resolved. While the trend line shows little to no variation, but that is not necessarily the whole story.
## geom_smooth: method="auto" and size of largest group is >=1000, so using gam with formula: y ~ s(x, bs = "cs"). Use 'method = x' to change the smoothing method.
If there is a trend in minimum temperatures we obviously need to look at the data differently to see it. One way to do that is to set a threshold discriminator. In other words, how many days in the year have minimums above or below a given value. If the threshold is set near a the peak of the distribution, we should be able to see subtle changes.
Below is a plot of the number of days with TMIN above the median TMIN for the entire population. You can see clearly there is a uptick the number of days
The above plot shows the number of days above the median TMIN -7.2C. The below plot looks at the number of days above 0C, the freezing point. The reason this was picked is that the freezing point of water is significant biologically since many plants adn animals suffer more severe damage below freezing, so changes on flora and fauna might be expected for days with fewer days with zero degree days.
The number of days with TMIN above zero appears to be increasing in the last few years for the data set from Seaside OR. This is consistent with other pbservations that the effects of Climate Change are most prevalent after about 1980.
To compare I also wanted to look at the trend of TMAX to see whether comparable changes were seen.
Another place to look is at the trend of Min temps in the Summer months.
From the graph above, the TMIN for the Months July and Augist are fairly stable.
The first thing to look at is the density of temperature data points for each year of the record. In the Figure below each TMIN is plotted with an alpha = 0.06, meaning that about 15 overlaying data points can be resolved. While the trend line shows little to no variation, but that is not necessarily the whole story.
## geom_smooth: method="auto" and size of largest group is >=1000, so using gam with formula: y ~ s(x, bs = "cs"). Use 'method = x' to change the smoothing method.
If there is a trend in minimum temperatures we obviously need to look at the data differently to see it. One way to do that is to set a threshold discriminator. In other words, how many days in the year have minimums above or below a given value. If the threshold is set near a the peak of the distribution, we should be able to see subtle changes.
Below is a plot of the number of days with TMIN above the median TMIN for the population. In this case there is no change.
The temperature data from this station (PORTLAND INTERNATIONAL JETPORT ME US) don’t on the surface appear to show signficant change. However, by looking at a thresold level, we can see clearly the behavior of TMIN has changed for Winter months.
The Summer months do not show a similar trend.
It should be possible, but looking at a histogram, to estimate the change in temperature that would cause the observed shift in the Winter months, but that will be for later.