Introduction

Being prepared for climate change, the symptoms of which include an increase in air temperature and the temperature of river waters, constitutes one of the main challenges for the monitoring and assessment of the ecological state of waters and the management of water resources (Bolker et al. 2009; Arismendi et al. 2014). The thermal characteristics of waters have considerable ecological and practical significance for the economic utilisation of rivers (Allan and Castillo 2007). The temperature of river waters is a good indicator of climate change and of the degree of control of processes occurring in aquatic systems (Conlan et al. 2005; Olden and Naiman 2010; Padilla et al. 2015; Jackson et al. 2016; Letcher et al. 2016).

The temperature of river waters is subject to daily, seasonal, annual, and multi-annual change, which is the result of the impact of climatic factors, river supply conditions, thermal characteristics of tributaries, and anthropogenic factors, e.g. the inflow of wastewater, thermal pollutants, and hydromorphological changes occurring within the channel of the water course (Sinokrot et al. 1995; Caissie 2006; Webb and Nobilis 2007; Graf 2018). The specific utilisation of the catchment area and the selected method of development of the river valley may also modify the thermal characteristics of river waters (Younus et al. 2000; Wiejaczka 2007; Gallice et al. 2015; Lisi et al. 2015).

The modelling of changes in river water temperature and its relationship with air temperature is conducted on various time and space scales (Caissie 2006; Arismendi et al. 2014; Hilderbrand et al. 2014). These dependences have been confirmed at various time resolution levels, taking into consideration the nature of short-term, medium-term, and long-term fluctuations (Webb et al. 2003; Sahoo et al. 2009; Toffolon and Piccolroaz 2015). Research into the relationships between river water and air temperature is conducted using genetic and statistical models. These are developed not only in relation to air temperature, but also as a function of the transfer of heat originating from groundwaters and the exchange that takes place in the hyporheic zone. Thermal energy is exchanged primarily on the air–water level, and to a lesser extent on the river bed–water level (Sinokrot and Stefan 1994; Caissie 2006).

The statistical methods used for analysing the thermal characteristics of waters and their relationships with air temperature range from simple linear regression equations to more complex parametric and nonparametric methods (Benyahya et al. 2007; Letcher et al. 2016). A multifaceted analysis makes it possible to determine the structure of connections and interdependences existing between water and air temperature (strength, form, and direction of the relationship), and forecast the relationship between variables. For the purpose of predicting the temperature of river waters, deterministic models make use of the energy balance (Sinokrot and Stefan 1994; Benyahya et al. 2007), whereas regression and stochastic models employ air temperature data (Caissie et al. 2004; Hilderbrand et al. 2014; Li et al. 2014). Due to their good forecastability, they are used for predicting changes in water temperature in the context of climate change (Neumann et al. 2003; Webb et al. 2003; Lagergaard Pedersen and Sand-Jensen 2007). Analyses are concerned primarily with the nature and strength of the relationship between water and air temperature measurement series, and also with the synchronicity of their fluctuations. Good results are obtained, among others, through the logistic regression model, which approximates the dependence by means of an S-shaped function. This model effectively reflects the behaviour of water temperature at negative and high (in excess of 25 °C) air temperature. Its application has made it possible, among others, to confirm that the strength of logistic and linear relationships between river water and air temperature is greater for average weekly values and average maximum weekly values than for average daily values or maximum daily values (Neumann et al. 2003).

The majority of studies result in high determination coefficients (R2 > 0.8), which point to the high dependence of water temperature on air temperature (Pilgrim et al. 1998; Caissie et al. 2001; Webb et al. 2003; Morrill et al. 2005). Research into the thermal regime of Polish rivers also confirms the high impact of air temperature on the course and variability of river water temperature. Goodness-of-fit values of models for the lower River Świder calculated by Łaszewski (2014) are similar to the goodness-of-fit values obtained by the aforementioned authors. When analysing the relationship between air temperature and water temperature in the River Ropa, Wiejaczka (2007) determined that this relationship is very strong, which is confirmed by the fact that the corresponding coefficient of correlation ranges from 0.90 to 0.95. The coefficient of correlation between water temperature in the River Ropa and air temperature in winter half-year periods alternated between 0.75 and 0.89, whereas in the summer half-year periods the value of this coefficient was slightly greater, fluctuating from 0.85 to 0.95. In the winter half-year periods following the commissioning of the Klimkówka reservoir on the River Ropa, there occurred a noticeable increase in the value of the coefficient of correlation (0.80–0.89), while in the summer half-year periods it was observed that its value fell to the range of 0.61–0.87. According to Wiejaczka (2011), linear regression makes it possible, among others, to estimate the value of water temperature in rivers under conditions of increased air temperature brought about by potential climate changes, and also to determine the reach of subterranean supply and its impact on the thermal characteristics of rivers. Kędra and Wiejaczka (2016) have conducted an analysis of changes in the natural relations between the water temperature of the River Dunajec and air temperature based on values of the Pearson correlation coefficient. This research has shown that the dependences between the analysed variables in the years 1978–1992, i.e. before the group of reservoirs was commissioned, were stronger during the summer period (coefficient of correlation of 0.75–0.86) and weaker in winter (coefficient of correlation of 0.54–0.73). Following the erection of the Czorsztyn–Sromowce Wyżne reservoirs, values of the coefficient of correlation fell to the range of 0.53–0.77 in the summer half-year period, while in the winter half-year period the strength of the relationship grew to 0.60–0.82. The application of a model describing the dependence between water and air temperature by means of a linear function has proved useful in the case of the River Warta (the middle section of its course) for the range of temperatures from 0.5–1.0 °C to approximately 22–23 °C (Graf 2015). The analysis confirmed that this relationship has a nonlinear form which is most significantly impacted by the behaviour of water temperature at negative air temperature values or during periods of long-term frost. When the air temperature is high, the temperature of water in rivers does not increase linearly, this because of the intense loss of thermal energy in processes of evaporation and emission of long-wave radiation (Graf 2015; Łaszewski 2014). Statistical significance was also demonstrated for the coefficient of correlation between air temperature and the water temperature of the River Warta along the section between Bobry and Skwierzyna in the years 1991–2010 (Graf et al. 2018). The coefficient assumed a high value, ranging from 0.74 to 0.83 at individual stations. The principal components analysis (PCA) of the natural variability of water temperature in surface waters of the Tatra Mountains confirmed the dependence of water temperature on weather conditions, catchment characteristics, and flow rate, explaining 88.97% of total data variability (Żelazny et al. 2018). The authors of these studies also confirmed that wavelet analysis is helpful in identifying cyclical patterns in water temperature time series. Furthermore, a number of studies were carried out of the mutual relations between water and air temperature in terms of the assessment of long-term tendencies of change therein taking into consideration climate change. As regards the Polish Lowland, a clear increase in air and inland water temperature was determined over longer periods, such as the year or half-year. In shorter periods (months), this increase is not always obvious, and sometimes even a fall in temperature was observed (Graf et al. 2018; Marszelewski and Pius 2018). The allochthonous character of rivers guarantees greater temperature stability of waters along their course, while the thermal characteristics of tributaries and spatial changes in the methods of their supply may contribute to a disruption of the thermal continuum.

Analyses of the interdependence of statistical features of water and air temperature also use multi-level regression modelling, such as—for example—the hierarchical linear model, which is known as the regression model for random effects (Hox 2002). This is elaborated on the basis of a division of measurement series into permanent and random effects, a multi-level data structure taking into consideration inter-level interaction, and a specific approach to variance components (Gelman and Hill 2006). An example is, among others, a hierarchical model of daily stream temperature using air–water temperature synchronisation, autocorrelation, and time lags, elaborated in a small stream network in western Massachusetts—USA (Letcher et al. 2016). The presented model limits analysis to days when air and water temperature is synchronised, accommodates hysteresis, incorporates time lags, can deal with missing data and autocorrelation, and can include external drivers. An interesting approach applied in research into the relationship between river water and air temperature is the hybrid model, which uses a hybrid formulation characterised by a physically based structure associated with a stochastic calibration of the parameters (Piotrowski and Napiórkowski 2018). This model has been utilised among others to predict daily averaged river water temperature as a function of air temperature and discharge in selected rivers in Switzerland (Toffolon and Piccolroaz 2015). The degree of consistency achieved for different model versions with measurements performed in the three rivers suggests that the proposed model may constitute a useful tool for synthetically describing the medium- and long-term thermal characteristics of waters, and also for capturing their changes caused by variable external conditions. Furthermore, spatial analyses of river systems make use of geostatistical models (Rushworth et al. 2015) and regional neural networks (Sahoo et al. 2009; DeWeber and Wagner 2014; Napiórkowski et al. 2014). Finally, assessments of the regularity of features of the thermal regime of rivers also utilise the equilibrium temperature concept (Caissie et al. 2005) and regional dependences connected with geographical latitude (Arscott et al. 2001; Gardner et al. 2003).

The study presents a multifaceted approach to the analysis of the relationship between daily river water and air temperature using selected estimation methods. The objective of research was to determine the character, strength, and direction of the relationship between observation series on the example of the River Noteć, which serves important economic and ecological functions (Western Poland, Polish Lowlands). For the purpose of assessing the relationship between data series, use was made of the cross-correlation function and its decay, while causality dependences were analysed in terms of Granger’s causality (referred to as G-causality). Cause-and-effect relationships occurring on the “water–air” axes were also determined. As regards water and air temperature time series, the identification of causal patterns for the variance and the mean using Granger’s causality analysis may serve to improve the quality of forecasting these values. Assuming a nonlinear relationship between water and air temperature data series, an indication was given of the usefulness and appropriateness for such research of the linear model and the natural cubic spline model.

Source material and methodology

Test area

Research into the dependences between daily river water and air temperature was conducted in the catchment area of the River Noteć that drains the western part of the Polish Lowlands (Fig. 1). The Noteć is the largest tributary of the River Warta, which itself flows into the River Oder (a drainage area of the Baltic Sea). In the division of Poland into physico-geographical regions (Kondracki 2008), the catchment area of the River Noteć is located within the reach of two macroregions: the Wielkopolskie Lake District, through which the river flows in its main bed, and the Pomeranian Lake District, which is traversed by its two right-bank tributaries—the rivers Gwda and Drawa (Fig. 1). The catchment area is located primarily within the reach of two climatic regions: that of Western Wielkopolska and that of Eastern Wielkopolska (Woś 2010), where the mean annual air temperature amounts to 8.3 °C and 8.0 °C, respectively.

Fig. 1
figure 1

Location of the Noteć catchment area in Polish regions with IMGW-PIB stations measuring water and air temperature

There are numerous lakes along the course of the Noteć and its tributaries, and these occupy approximately 4% of the surface of the catchment area (Fig. 1). The river is regulated by means of a system of flood gates and channelled in its middle course, which impacts its hydrological features. The Noteć and its tributaries are characterised by a snow-and-rain type supply. The greatest flows usually occur in March and April, when spring run-off accounts for some 130–180% of annual run-off. Average annual specific run-off for the River Noteć in the Nowe Drezdenko profile is 144 mm (according to IMGW-PIB data). The lowest flow values occur from July to September. Summer–autumn low waters are predominant in the Noteć and Drawa, and their average duration is longest, totalling 75 and 97 days, respectively. The river is characterised by considerable fluctuations of water levels, and their maximum spread in its lower course amounts to 3.5 m.

Taking into consideration the abiotic type of river waters and their biotic typology (macrobenthic, phytobenthic, and macrophytobenthic), the River Noteć has been classified among the “great lowland rivers” (ETC/ICM 2015). The water course serves as a migration corridor for numerous species of fishes, while due to its excellent natural qualities the river valley has become the object of conservation measures, notably through the establishment of Natura 2000 areas (which include the “Noteć Valley” and the “Valley of the Middle Noteć and the Bydgoszcz Channel”).

Database

When modelling the relationship between daily river water and air temperature, use was made of measurement data gathered by the Institute of Meteorology and Water Management—National Research Institute in Warsaw (IMGW-PIB in Warsaw) for the period 1987–2013. These data contain daily water temperature of the River Noteć registered at three points located along its course: at Pakość (upper course), Ujście (middle course), and Nowe Drezdenko (lower course), and also along its tributaries, i.e. the Gwda (Piła profile) and the Drawa (Drawiny profile)—Fig. 1. For comparative purposes, use was additionally made of daily water temperature for the River Drawa at the point in Drawsko Pomorskie, albeit for a shorter measurement period (1987–1992). Daily air temperature for the years 1987–2013 was obtained from the Piła synoptic station located in the catchment area of the Noteć. Data concerning air temperature obtained at this station are homogenous. Series uniformity was confirmed using the Alexandersson test, and therefore, these data should be considered as representative for the research area and period. The choice of research period was influenced by the ability to access a uniform observation series of water and air temperature, uninterrupted by the lack of measurement values.

Multifaceted modelling

Modelling of the relationship between time series of daily temperature values was preceded by an assessment of data series stationarity, conducted using the Augmented Dickey–Fuller (ADF) test (Dickey and Fuller 1981). As regards the analysed data series (1987–2013), it was determined that daily measurements of water and air temperature constitute stationary series (stationarity at a p value of 0.01) characterised by invariability when shifted along the time axis of the mean and the variance.

The point of departure for assessing the relationship between data series concerning daily temperature was an analysis of the cross-correlation function, which is the standard for determining the similarity of measurements. It uses value functions of the Pearson correlation coefficient for two time series shifted in relation to each other by time unit Δt either forward or backward, depending on the value of Δt. In order to provide a quantitative description of the phenomenon of decaying cross-correlations, a determination was made of the decay function of the square of cross-correlation for measurements carried out on the same day in different years. This may be interpreted as the variance percentage of one variable explained by another variable for measurements made on the same day in different years. To this end, use was made of third-degree polynomial regression for the natural logarithm of the square of correlation, where the distance between measurements—counted in years—was a dependent variable.

Further, a Granger’s causality analysis (Granger 1988) was performed, and this made it possible to identify the direction of cause-and-effect relationships between water and air temperature. The Granger’s causality refers to a situation where data concerning the past of one time series provide significant information that helps predict the value of a second series, which is not included in the information concerning its past values. Research utilised the Granger’s causality test (Detto et al. 2012), which was conducted for stationary processes. The general test determines solely whether a linear dependence exists. Granger’s causality is a statistical approach used to identify the presence of linear causal interactions between time series of data, based on prediction theory. In accordance with the assumptions of causality (Granger 1988), which makes use of only two time series and does not reference the complete information set, variable Y influences variable X if:

$$ P(Xt + 1 \in A|X,Y) \, \ne P(Xt + 1 \in A|X){\text{ for a certain event }}A, $$
(1)

X—history of time series, X, X, Y—history of time series X, and Y, Xt + 1—value of the variable at moment t + 1.

An analysis was also performed of the strength of the relationship between measurements of river water and air temperature on the same days, taking into consideration the possibility of occurrence of a nonlinear relationship between the two. To this end, use was made of two models—a standard linear model for predicting water temperature on the basis of air temperature and the natural cubic spline model. The degree of correlation between the random fluctuations of series, i.e. of those changes in temperature that are not the result of a long-term trend, historical values or periodicity, was also determined. It provided valuable insight into the characteristics of short-term connections between water and air temperature (Graf 2018).

$$ y_{t} = \varphi_{1} y_{t - 1} + \varphi_{2} y_{t - 2} + \varepsilon_{t} $$
(2)

where yt—series value at time t, yt−1—series value at time t − 1, etc., εt—random component, disturbance from time t, t—successive days, and φ—a parameter defining the strength of impact of the preceding value in the process (or successive ones, incrementally older) on the current value.

The above dependences were then used to determine the residues for time series of temperature, that is, that part of each measurement which may be considered as a random fluctuation. The analysis of residue series for models was augmented by means of Granger’s causality. When determining the changes in coefficients of determination (R2) for models taking into consideration the past values of the second time series, an indication was given of the strength of cause-and-effect connections existing between them.

Calculations and statistical analyses were performed in the R calculation environment, version 3.3.2 (2016 October 31). The R suite (GNU R) is a software package for analysing data, and also a programming platform (R Core Team 2015). The results of the statistical significance tests used were assessed with reference to the adopted level of α = 0.05. Whenever a different level of significance was adopted, the relevant information was attached to the results of calculations.

Results

Cross-correlations

The analysis of cross-correlations demonstrated a very high degree of interdependence between daily data series of water temperature values for the Noteć and its tributaries, and air temperature values for the station in Piła (Fig. 2). We can clearly observe that significant positive correlations occur between daily temperature measured for the same half-year periods (cold or warm in the hydrological year), and significant negative correlations for measurements performed in different half-year periods. Equally visible is the gradual decay of process memory, i.e. measurements from successive years are less and less correlated. This means that for a zero shift we have a maximum level of interdependence between both data series. As the shift increases over time, cross-correlation adopts a minimal value.

Fig. 2
figure 2

Function of cross-correlations between daily water and air temperatures: a Noteć—Ujście (1987–2013) and b Drawa—Drawsko Pomorskie (1987–1991)

As regards the measurement points located on the River Noteć and its tributaries, the rivers Drawa (in Drawiny) and Gwda (in Piła), a similar picture of the cross-correlation functions for daily water and air temperature was observed, and thus, Fig. 2a presents (as representative) the chart for the Noteć in Ujście (middle course). A high level of interdependence between series of daily water and air temperature, albeit lower and more rapidly decaying than that for the remaining stations, was demonstrated by an analysis of cross-correlations at the Drawsko Pomorskie point on the River Drawa. In this case, however, only a 12-year observation series of river water temperature was available (Fig. 2b).

For comparative purposes, the effect of cross-correlation was determined for monthly water temperature of the River Noteć and its tributaries, and for air temperature measured in Piła. In this case, too, the ADF test showed that time series are stationary, while an analysis of cross-correlations confirmed a very high level of interdependence between data series (average monthly temperature measured for the same hydrological half-year periods—cold or warm), which are additionally strictly periodic in nature (Fig. 3a, b).

Fig. 3
figure 3

Function of cross-correlations between monthly water and air temperatures a Noteć—Ujście (1987–2013) and b Drawa—Drawsko Pomorskie (1987–1991)

In order to more precisely investigate the phenomenon of decaying cross-correlations, a determination was made of the decay function of the square of cross-correlation for measurements carried out on the same day in different years. Using third-degree polynomial regression for the natural logarithm of the square of correlation, solutions were obtained that were very well matched to the data (R2)—Table 1. The coefficients of determination obtained were similar, falling within the range of 0.993–0.998 for the measurement series for the River Noteć, and totalling 0.997 for its tributaries. Clearly, therefore, the variance of variables registered in the water temperature measurement series is explained mainly by the variable temperature of air for measurements taken on the same day but in different years.

Table 1 Model of third-degree polynomial regression applied to the logarithm of a square of correlation between daily temperature of river water and air (Noteć River)

The decay function of the square of cross-correlation for measurements of river water and air temperature at individual measurement points located on the River Noteć and its tributaries is presented in Fig. 4. In the case of the River Gwda in Piła, due to the occurrence of problems with an unequivocal determination of the peaks of annual cross-correlations, the model was constructed taking into consideration only distances of not less than 14 years (among others, a distance of 5 years was omitted). Despite this inconvenience, we can observe that the dependence is very similar to that occurring at other measurement points (Fig. 4).

Fig. 4
figure 4

Decay function of cross-correlation square for daily water temperature series (1987–2013)

Granger’s causality

When using Granger’s causality to analyse dependences between daily water temperature of the River Noteć and its tributaries and air temperature (station in Piła), it was determined a cause-and-effect relationship (Table 2).

Table 2 Cause-and-effect relation between series of river water and air temperature in terms of Granger’s causality

Furthermore, the test was a first-order test, which means that the cause-and-effect relationship occurs already between measurements t and t − 1, where t stands for the distance between measurements, which is counted in years. Granger’s causality was determined taking into consideration a one-day lag.

Forecasting the course of water temperature fluctuations for the Noteć and its tributaries on the basis of changes in air temperature may therefore ensure better results if use is made of information from the preceding day. The hypothesis as to the dependence between water and air temperature series is confirmed by a variance analysis (test) which made use of the test statistic F. Table 2 presents the standard notation of the test result, with the numbers in parentheses representing degrees of freedom of distribution F, while the value on the right side of the “=” sign is that of the test statistic F. The results of the variance analysis indicate a considerable Granger dependence of water temperature on air temperature at p < 0.001. The greatest impact was determined for the River Gwda at the station in Piła, which functions as a synoptic station.

Linear and natural cubic splines models

An analysis of the strength of the relationship between measurements of the water temperature of the Noteć and its tributaries and air temperature, performed on the same days, was also carried out using the linear model and the natural cubic spline model—Fig. 5.

Fig. 5
figure 5

Relationship between daily river water and air temperature (1987–2013) according to the natural cubic splines model

Results confirmed the existence a nonlinear relationship between them. In all instances, the linear model recreated water temperature variance to a lesser degree (78.65–88.02%) than the natural cubic spline model (84.05–89.83%). The differences between the models ranged from 3.96 to 4.73% and were statistically significant. The greatest difference (5.67%) was determined in the models elaborated for the River Drawa in Drawsko Pomorskie, which was connected with the fact that a shorter water temperature observation series (12 years) was adopted for modelling. A high degree of conformity was obtained in the model elaborated for the Noteć water temperature series at Nowe Drezdenko (Table 3).

Table 3 Degree of recreating water temperature variances for the Noteć River and its tributaries using the linear and natural cubic splines models

Prediction models

The levels of significance of standard statistical tests are a decreasing function of the number of observations, and therefore, an attempt was made at carrying out an additional assessment of the strength of the connections found. To this end, it was determined for the present instance by how much the determination coefficient (R2) of both models increases after the past values of the second time series are taken into account. The model predicting the water temperature of the Noteć and its tributaries on the basis of water and air temperature from the preceding day (station in Piła) explains 0.01–0.27% more of the unique variance than the model which utilises solely water temperature from the preceding day (Fig. 6). In the present context, “unique variance” refers to the variance percentage that is explained by a given factor in addition to that which is explained by historical values of a given variable, i.e. in the case of water temperature—by previous temperature values. The greatest increase in the percentage of unique variance that is explained by the additional factor has been determined for the water temperature series of the River Gwda (0.27%) and the River Noteć at Nowe Drezdenko (0.19%), and the lowest for the River Noteć in Ujście (0.07%, following the exclusion of data for the River Drawa in Drawsko Pomorskie)—Fig. 6. By way of comparison, the model predicting the average monthly water temperature of the River Noteć and its tributaries on the basis of water and air temperature from the preceding month explained 0.87–2.75% more of the unique variance than the model utilising solely water temperature.

Fig. 6
figure 6

Prediction models for the water temperature of the Noteć River and its tributaries (daily and monthly series) taking account of past values of the second time series (tw − 1) and increase in unique variance percentage explained by an additional factor (%) (tw − 1)—water temperature from the previous day/month (m)

The next stage of the analysis was concerned with determining the degree of correlation of random fluctuations (chance fluctuations) for the same days of both temperature measurement series. Random fluctuations were taken to be those changes in temperature that do not result from a long-term trend, historical values, or periodicity (Table 4). This provided valuable insight into the characteristics of short-term connections between water and air temperature. The occurrence of a statistically significant correlation was determined. Random fluctuations of air temperature explain from 1.8% (River Drawa at Drawiny) to 8.0% (River Noteć at Ujście) of random water temperature fluctuation variances.

Table 4 Degree of linear correlation of fluctuations occurring in random series of river water and air temperature changes for the same days

Random events and values in the measurement series that are atypical for the thermal regime of river waters appear in consequence of various disorders of its course. An analysis of the degree of correlation between random fluctuations of water temperature series for the River Noteć and its tributaries and air temperature for the same days has confirmed the short-term nature of this connection.

The strength of cause-and-effect connections was studied on the basis of an analysis of changes in the coefficients of determination (R2) of models taking into consideration the past values of the second time series (Table 5). As regards fluctuations of water temperature, the greatest R2 difference amounted to 9.98% (Drawa—Drawiny) in relation to R2 equal to zero. This means that in the present instance fluctuations of air temperature have a significant and by no means small (for it explains nearly 10% of variability) impact on random fluctuations of water temperature on the next day. Furthermore, the regression coefficient—which determines the impact of air temperature fluctuations on water temperature fluctuations—indicates that this is a positive relationship: on average, positive deviations of air temperature are associated with positive deviations of water temperature on the next day, while negative deviations are associated with negative deviations on the next day. In the remaining models for predicting the water temperature of the Noteć and its tributaries, obtaining of a low R2 value (0.56–0.94%) taking into consideration the past values of the second time series, confirms that in this case water temperature fluctuations are relatively independent of each other and are not significantly impacted by air temperature fluctuations.

Table 5 Increase in the coefficient of determination (R2) in models predicting random fluctuations of water temperature taking account of past values of the second time series (tw − 1) (%)

Discussion

Cause-and-effect relations

The existence of a relationship between fluctuations in river water temperature and air temperature has been confirmed under differing climatic and regional conditions (Bogan et al. 2003; Webb et al. 2003; Arismendi et al. 2014; DeWeber and Wagner 2014). In the case of the River Noteć and its tributaries, a high cross-correlation was established between daily water and air temperature, as well as Granger’s causality. The results of analyses of cross-correlation between both variables, which are strictly periodic in nature, indicate clearly that process memory undergoes gradual decay, and this means that measurements from successive years are less and less correlated (Figs. 2, 3). This is confirmed by analyses of the decay function of the square of cross-correlation for measurements carried out on the same day in different years (Fig. 4). The results of cross-correlation obtained for the River Noteć and its tributaries are of significance for the short- and medium-term assessment, concordant with seasonality or cycles (Liu et al. 2005; Toffolon and Piccolroaz 2015). In the short-term perspective, however, we should turn attention to the forecast and the deviation of the actual reading from the forecast. In the present instance, the cross-correlation was examined for the entire available time series of water and air temperature and did not take into consideration the specificity of individual thermal cycles. Neither to correlation connections explain the cause-and-effect relationships between temperature, which can be achieved using the Granger’s test. The determination of Granger’s causality dependence (first order) between daily temperature series provides confirmation of the impact of one data series on the evolution of a second data series. In the analysed instance, data concerning the past of a time series of air temperature provide information that is of significance for predicting the values of the time series of river water temperature, which is not included in the information concerning its past values (Detto et al. 2012). In the context of Granger’s causality, it is important to state that water temperature is determined causally by air temperature from the preceding day (Morrill et al. 2005; Letcher et al. 2016). These relationships occur mainly during water freezing and evaporation processes, which involve enormous quantities of energy. The latent heat of water phase transitions is collected from and given up to the environment (Hannah et al. 2004; Caissie 2006). In the local scale, these processes cause the significant heating or cooling of air above water courses and their immediate surroundings.

Local factors affecting the stream temperature

River thermal regimes are impacted first and foremost by the surface exchange of heat with the atmosphere in processes of radiation, evaporation, and convection (Caissie 2006), and also by the turbulent mixing of water of varying temperature, e.g. inflows, wastewater, thermal pollutants. It is assumed that molecular diffusion, the exchange of heat with the subsoil, and conductivity in the water mass play a less important role in shaping the thermal regime characteristics (Sinokrot and Stefan 1994). Local factors that modify the thermal characteristics of river waters usually include anthropogenic change (Olden and Naiman 2010), which may disturb the continuity of processes and the gradient nature of zones in rivers (the so-called river continuum) (Caissie et al. 2005). In the case of the catchment area of the River Noteć, local factors that impact its thermal regime include the specific morphological nature of the river valley—the flat, broad Toruń-Eberswalde Glacial Valley, springs flowing from the edges and terraces of river valleys, and the proximity of peat bogs. Vast wetlands are present in the lower and middle courses of the River Noteć (Fig. 7). These wetlands contribute to the lowering of river water temperature in the summer period due to the supply to the river of groundwater of a considerably reduced temperature.

Fig. 7
figure 7

Land coverage in the Noteć catchment area taking account of the extent of wetlands in the Toruń-Eberswalde Urstromtal system—orthophotomap of the Noteć catchment area [based on http://web4you.com.pl/geofinder.php]

As regards the Noteć, one of the more significant causes of undesirable changes in flowing water temperature (Poole and Berman 2001; Lisi et al. 2015) may be the degraded morphology of the channelled sections of its course. This factor usually makes it difficult to recreate the historical thermal regime of a water course.

Numerous studies concerning the dependence between times series of water and air temperature have shown that the relationship between variables is not ideally linear (Langan et al. 2001; Wiejaczka 2007; Letcher et al. 2016). This is supported among others by the results of the natural cubic spline model, which was used in research—Fig. 5. First and foremost, this is connected with the fact that water temperature, as opposed to air temperature, has a lower limit and cannot attain a value of less than 0 °C, even during periods of long-term frost. The impact of local factors modifying the thermal characteristics of river waters is also visible in the diversity of features of the winter ice regime (Graf and Tomczyk 2018; Graf et al. 2018). During the summer season, when air temperature is high, the temperature of water in the river does not increase linearly (Fig. 5), this because of the intense loss of thermal energy in processes of evaporation and emission of long-wave radiation. Changes in temperature in the aquatic environment occur at a considerably slower rate than changes in air temperature due to the lower conductivity of water in comparison with air.

Usually, a strong, nonlinear statistical dependence between the temperature of water and air is shown by the logistic (nonlinear) and linear regression models. Despite the nonlinear character of the dependence, the appropriate selection of measurement data makes it possible to effectively apply the linear model (Łaszewski 2014), which accurately reflects the connection between average monthly water and air temperature. In turn, this association is weakened by the following: daily averages, weekly averages, and maximum daily or weekly values of air temperature lower than 0.0 °C (Mohseni and Stefan 1999). The nonlinear form of dependence in the logistic model is described by the S-shaped function (sigmoidal) with input values from the range (0,1), which properly reflects the behaviour of water temperature in the presence of negative and high (above 25 °C) air temperature (Mohseni et al. 1998; Neumann et al. 2003; Caissie et al. 2001; Łaszewski 2014), and this fact has indeed ensured the universality of application of the method. Among dependences approximated by logistic models, the strongest association was determined for the average weekly and average maximum weekly water and air temperature (Wiejaczka 2011), while the connection between the average daily and maximum daily water and air temperature (Webb et al. 2003; Morrill et al. 2005) turned out to be weakest. In turn, Zhu et al. (2018) while analysing three standard models—linear regression, nonlinear regression, and the stochastic—confirmed that the stochastic model clearly exceeds the other two. In stochastic models, water temperature is modelled as a function of time comprising two completely different components—a short-term residual component and a long-term component that is periodic in time (Caissie et al. 1998; Hadzima-Nyarko et al. 2014). Furthermore, in stochastic models water temperature is generally modelled as a function of time consisting of two entirely different components: a short-term residual component and a long-term component which is periodic in time (Zhu et al. 2018).

The natural cubic spline model used in research also confirmed the nonlinear dependence between river water and air temperature. The spline-based method resulted in an acceptable water time series temperature pattern that properly reflects its actual association with air temperature. Due to seasonal changes in water and air temperature, the model determining the dependence between them should ensure continuous seasonal patterns for each day throughout the year, and also the smooth periodicity of changes under specific boundary conditions. The spline technique additionally makes it possible to intercept the data trend irrespective of the character of the base relation, with the simultaneous reduction of the tendency to oscillate and of susceptibility to changes in data. Thus, we can use this method to, for example, supplement missing data, which frequently constitutes a significant problem in statistical research into water temperature measurement series.

Data generating process (DGP)

As regards water and air temperature time series, the identification of causal patterns for the variance and the mean using Granger’s causality analysis may serve first and foremost to improve the quality of predictions of these values through the construction of models that take them into consideration. A narrowing of the interpretation concerns linear causality (for water-air temperature), whereas in the broader context we are concerned with the dependence of data generating processes (DGPs) (Cameron and Trivedi 2005). The concept of Granger’s causality is not limited to the search for a variable whose presence in the model may improve the accuracy of forecasts. In line with the concept of causality, the cause in time series precedes the effect, while the causal series contains information about the variable being the effect, which was not included in other series (Granger 1988).

Conclusions

Research into the relationship between daily river water temperature registered at selected measurement profiles (the River Noteć and its tributaries) and air temperature has confirmed their considerable dependence during the analysed period. The application of multidimensional statistical modelling, taking into consideration varied methodological criteria, has made it possible to determine the nature of relationships occurring between data series. It was particularly interesting to determine cause-and-effect relationships not only along the water–air axis, but also along the air–water axis, which occur mainly during water freezing and evaporation processes. The application of Granger’s causality demonstrated the existence of complex multi-level dependences that are conditioned by the number of variables used in research. When taking into consideration a one-day lag between measurements, Granger’s causality was confirmed in two directions, which fact is of considerable importance for forecasting. Namely, this means that forecasting the fluctuations of the temperature of river waters on the basis of changes in air temperature may be more effective when use is made of information from the preceding day.

The results of the analysis have also confirmed the presence of a nonlinear relation between daily river water and air temperature. In all instances, the linear model recreated water temperature variance to a lesser degree than the natural cubic spline model. Differences between these models amounted to approximately 4–5% and were statistically significant. Also established was a weak, albeit statistically significant correlation of random fluctuations for the same days for both series, i.e. changes in temperature which do not follow from a long-term trend, historical values, or periodicity. This made it possible to confirm the occurrence of short-term connections between water and air temperature. The thermal regime of the researched rivers is impacted first and foremost by the surface exchange of heat with the atmosphere. Locally, the thermal characteristics of river waters may be modified by anthropogenic factors identified in the catchment area and the river valley, which may disturb the continuity of processes and the gradient nature of zones in rivers. In the case of the River Noteć, these factors include the morphological nature of the river valley and the risk of inflow of pollutants, which are the single most important factor contributing to increases in the temperature of flowing waters.

The results obtained constitute a database for reference indications of thermal parameters that are of significance for predicting climate change and for conducting research into the thermal regime of the river. On a regional scale, they may be used to assess the impact of climatic change, while on the local—to analyse anthropogenic influences on the development and nature of the relationship between river water and air temperature. Furthermore, the relations determined between thermal water and air parameters determine the degree of risk for the functioning of aquatic ecosystems represented by habitats and species susceptible to changes in river water temperature. This problem is particularly important in the case of rivers with significant ecological functions (e.g. migration corridors for various species of fishes), among which the Noteć is classified.

The results can be used to determine the qualities of thermal regimes and to predict the temperature of river waters under conditions of climate change. In light of the constant demand for information concerning the thermal regime features of waters in lowland river ecosystems (which are subjected to varying degrees of anthropogenic transformation), the results obtained constitute an important supplementation of databases used to ensure their rational management.