DOI: 10.17045/sthlmuni.27188004
title: Myrstener et al. (2025) Downstream temperature effects of boreal forest clearcutting vary with riparian buffer width - Data and Code

description: Please read the readme.txt !This depository contains raw and clean data (.csv),<br>as well as the R-scripts (.r) that process the data, create the plots and the models.We recommend to go through the R-scripts in their chronological order.Code was developed in the R software:<pre>R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life"<br>Copyright (C) 2024 The R Foundation for Statistical Computing<br>Platform: x86_64-w64-mingw32/x64<br></pre><br>****** List of files ********************************- Data---raw72 files from 72 Hobo data loggersnames: site_position_medium.csvexample: "20_20_down_water.csv" (site = 20, position = 20 m downstream, medium = water)---cleansite_logger_position_medium.csv list of all sites, their loggers, their position and medium in which they were placedloggerdata_compiled.csv all raw logger data (see above) compiled into one dataframe, for column names see belowDaily_loggerdata.csv all data aggregated to daily mean, max and min values, for column names see belowCG_site_distance_pairs.csv all logger positions for each stream and their pairwise geographical distance in metersDischarge_site7.csv Discharge data for the same season as logger data from a reference streambuffer_width_eniro_CG.csv measured and averaged buffer widths for each of the studied streams (in m)- Scripts01_compile_clean_loggerdata.r02_aggregate_loggerdata.r03_model_stream_temp_summer.r03b_model_stream_temp_autumn.r04_calculate_warming_cooling_rates_summer.r04b_calculate_warming_cooling_rates_autumn.r05_model_air_temp_summer.r05b_model_air_temp_autumn.r06_plot_representative_time_series_temp_discharge.r<br>****** Column names ********************************Most column names are self explaining, and are also explained in the R code.Below some detailed info on two dataframes (.csv)<br>- the column names are similar in other csv files<br><b>File "loggerdata_compiled.csv" </b>[in <b>Data/clean/</b> ]"Logger.SN" Logger serial number"Timestamp" Datetime, YYYY-MM-DD HH:MM:SS"Temp" temperature in °C"Illum" light in lux"Year" YYYY"Month" MM"Day" DD"Hour" HH"Minute" MM"Second" SS"tz" time zone"path" file path"site" stream/site ID"file" file name"medium" "water" or "air""position" one of 6 positions along the stream: up, mid, end, 20, 70, 150"date" YYYY-MM-DD<br><b>File "Daily_loggerdata.csv" </b>[in <b>Data/clean/</b> ]"date" ... (see above)"Logger.SN" Logger serial number"mean_temp" mean daily temperature"min_temp" minimum daily temperature"max_temp" maximum daily temperature"path" ..."site" ..."file" ..."medium" ..."position" ..."buffer" one of 3 buffer categories: no, thin, wide"Temp.max.ref" maximum daily temperature of the upstream reference logger"Temp.min.ref" minimum daily temperature of the upstream reference logger"Temp.mean.ref" mean daily temperature of the upstream reference logger"Temp.max.dev" max. temperature difference to upstream reference"Temp.min.dev" min. temperature difference to upstream reference"Temp.mean.dev" mean temperature difference to upstream reference<br><b>Paper abstract:</b>Clearcutting increases temperatures of forest streams, and in temperate zones, the effects can extend far downstream. Here, we studied whether similar patterns are found in colder, boreal zones and if riparian buffers can prevent stream water from heating up. We recorded temperature at 45 locations across nine streams with varying buffer widths. In these streams, we compared upstream (control) reaches with reaches in clearcuts and up to 150 m downstream. In summer, we found daily maximum water temperature increases on clearcuts up to 4.1 °C with the warmest week ranging from 12.0 to 18.6 °C. We further found that warming was sustained downstream of clearcuts to 150 m in three out of six streams with buffers &lt; 10 m. Surprisingly, temperature patterns in autumn resembled those in summer, yet with lower absolute temperatures (maximum warming was 1.9 °C in autumn). Clearcuts in boreal forests can indeed warm streams, and because these temperature effects are propagated downstream, we risk catchment-scale effects and cumulative warming when streams pass through several clearcuts. In this study, riparian buffers wider than 15 m protected against water temperature increases; hence, we call for a general increase of riparian buffer width along small streams in boreal forests.