Climate change effects on the hydrology of the headwaters of the Tagus River: implications for the management of the Tagus-Segura transfer

Currently, climate change is a major concern around the world, especially because of the uncertainty associated with its possible consequences for society. Among these can be highlighted the fluvial alterations in basins whose flows depend on groundwater discharges and snow melt. This is the case of the headwaters of the Tagus River Basin, whose water resources, besides being essential for water uses within this basin, are susceptible to being transferred to the Segura River Basin (both basins are in the Iberian Peninsula). This work studies the possible effects that the latest climate change scenarios may have 5 on this transfer, one of the most important in southern Europe. In the first place, the possible alterations of the water cycle of the donor basin were estimated. To do this, a hydrological model was calibrated. Then, with this model, three climatic scenarios were simulated, one without climate change and two projections under climate change (Representative Concentration Pathway 4.5 -RCP 4.5and RCP 8.5). The results of these three hydrological modelling scenarios were used to determine the possible flows that could be transferred from the Tagus River Basin to the Segura River Basin, by simulating the water 10 resource exploitation system of the Tagus headwaters. These hydrological modelling predict, for the simulated climate change scenarios, important reductions in the snowfalls and snow covers, the recharge of aquifers and the available water resources. So, the headwaters of the Tagus River Basin would be the loss of part of its natural capacity for regulation. These changes in the water cycle for the climate change scenarios used would imply a reduction of around 80% in the possible flows that could be transferred to the Segura Basin, with respect to a scenario without climate change. The loss of water resources for the 15 Segura River Basin would mean, if no alternative measures were taken, an economic loss of 330-380 million euro per year, due principally to decreased agricultural production.


Introduction
Currently, there are practically no doubts in the scientific community that the Earth is suffering climate change (CC) and that this is due to the anthropic action of greenhouse gas emissions (IPCC, 2014).At the global level, general circulation models predict a warming of the planet of about 2 • C for the year 2050, which will cause a reduction in accumulated ice masses and a rise in the sea level (IPCC, 2014).These changes in the natural environment, which are already causing alterations in the available resources, have a clear socioeconomic repercussion: decreases in fish stocks, increases in energy consumption, changes in the availability of water resources, and land degradation due to erosion.In areas with greater risk and with low capacity for adaptation, the consequences of CC could become critical, the emigration of their population being the only viable solution (Jha et al., 2018).
In the context of CC, water as a resource plays a fundamental role, since -as well as being a basic environmental asset -it is key to human survival and well-being.In general terms, an increase in rainfall in humid areas and a decrease in arid and semi-arid ones are predicted.This situation would be accompanied by an increase in the frequency and intensity of extreme events (droughts and floods), so in ar-Published by Copernicus Publications on behalf of the European Geosciences Union.
eas where already there are shortages of water resources the current situation would be exacerbated (IPCC, 2014).For areas close to polar regions or mountainous areas, the increase in temperature would reduce the precipitation that falls as snow (Szczypta et al., 2015), as well as the volume of ice in the glaciers and the snow cover on the summits (Bajracharya et al., 2018).As a consequence, the fluvial regime for this type of river basin would be modified (Morán-Tejeda et al., 2014), with an increase in the risk of floods and the loss of the part of their natural regulatory capacity provided by the ice and snow covers (Shevnina et al., 2017).Thus, in areas where the water reserves derived from snow covers are used during the summer, new reservoirs would have to be built in order to replace the loss of the natural regulation capacity (Özdoǧan, 2011).Similarly, in areas with important aquifers, part of the natural regulatory capacity could also be lost, since changes in precipitation patterns would affect recharge rates (Smerdon, 2017).Indeed, a higher intensity of rainfall would favour surface runoff to the detriment of infiltration (Pulido-Velazquez et al., 2014).In short, the CC predicted for many areas of the planet will suppose an increase in temperature together with a greater availability of surface water -which would increase the water evapotranspiration, accelerating the water cycle and reducing the available water resources that could be used (Wang et al., 2013).
The environmental and social repercussions of these physical effects are being studied from multiple perspectives (Olmstead, 2014;World Bank Group, 2016).For example, there is work related to water quality (Molina-Navarro et al., 2014), the effects on ecosystems and the services they provide (Warziniack et al., 2018), and the impact on the food security (Tumushabe, 2018) and water security (Flörke et al., 2018) of the population, although the majority of the studies deal with the impacts on the economic activities which are more sensitive to the availability of water resources, such as agriculture (Meza et al., 2012), urban supply (Díaz et al., 2017), or the hydroelectric sector (Solaun and Cerdá, 2017).
Water resource transfers between basins (inter-basin water transfer: IBWT) are instruments of water resource allocation that, despite the controversy they sometimes provoke, can play an important role in mitigating the effects of CC in many areas of the world (Shrestha et al., 2017).The IBWTs can be an alternative source of supply to basins affected by a decrease in their available resources and/or an increase in their water use demands (Zhang et al., 2015).In turn, the quantity of available water in the donor basins can change significantly, which makes CC a determining factor that must be analysed when assessing the potential or vulnerability of the IBWT (Zhang et al., 2018).Although there are some works that specifically studied the effects of CC on IBWTs, basically the focus has been on changes in the fluvial regimes in donor basins (Zhang et al., 2012;Li et al., 2015).Moreover, there are scarce examples in the specialized literature of the analysis of the effects of CC within a framework of integrated water resource management (Onagi, 2016).In ad-dition, for an adequate comprehensive study of the effects of CC in an IBWT, and to produce operational indicators for water management plans (Giupponi and Gain, 2017), including the management of water trade (Kahil et al., 2015), it is also necessary to consider the effects in the receiving basin.
The Tagus-Segura Aqueduct (TSA) is one of the most important IBWT projects in southern Europe.This hydraulic infrastructure, in operation since 1979, transfers flows from the Tagus Headwaters River Basin (THRB) to the Segura River basin (SRB).The destination of the volumes transferred, which are variable depending on the available water resources in the donor basin, is basically irrigation, but also urban and tourism uses (Grindlay et al., 2011).The regional models of CC forecast, for both basins, an increase in temperature together with a significant diminution in rainfall, so that a decrease in the available water resources in both is foreseen (CEDEX, 2011a).In addition, the THRB is located in a high, mountainous area where snowfalls are frequent and which extends over important karst aquifers.Then, it is expected that both the precipitation that falls as snow and the aquifer recharge would be reduced.Although there is work in which this problem is explicitly described, with proposals to mitigate the decrease in TSA flows due to CC (Morote et al., 2017), no specific modelling of climate scenarios has been made, neither from a hydrological perspective, to determine the water balance, nor by simulation of the water resource exploitation system.
The overall objective of this work was to determine the hypothetical effects that CC may have on the operation of the TSA.So, the transferable flows were estimated considering explicitly the operating rule of this IBWT -which, basically, is based on the available water storage in the main two reservoirs of the donor basin concerned.For this, first of all, the effects on the water cycle of the donor basin were evaluated by means of hydrological modelling in which the precipitation that falls as snow was included.Then, the historical climate data together with two CC scenarios of the fifth assessment report (AR5) of the Intergovernmental Panel on Climate Change (IPCC, 2013) were recreated in order to analyse the possible alterations in the fluvial regime of the THRB.The results of these three hydrological models were the inputs of the subsequent three simulations of the Tagus Headwaters Water Resources Exploitation System (THWRES), which provided a prediction of the flows that could be transferred to the SRB within a framework of integrated water resource management.Additionally, as another novel contribution of this work, the socioeconomic impacts produced by the climate change on these transferred flows were assessed.Finally, note that the complete methodology was developed by open-source tools and by free software for the scientific community, which facilitates the reproducibility of the work. 2 The water resource exploitation system of the Tagus Headwaters River Basin The THRB covers an area of 7000 km 2 and is located in the middle of the Iberian Peninsula (Fig. 1).It extends over a high, mountainous area with a continental-Mediterranean (CHJ, 2016) climate with a marked seasonality between the summer (June-September) and winter (December-March) months (Lorenzo-Lacruz et al., 2010;Molina-Navarro et al., 2014).The average annual precipitation is 620 mm and the minimum values occur in summer (June-August).While the average annual temperature is 11 • C, in the coldest months there are values less than zero (November-April), so snowfalls are frequent at the higher altitudes (Lobanova et al., 2016).Moreover, much of the THRB extends over karst aquifers, meaning that groundwater exerts an important influence on the surface flows that circulate along the main river streams (Pellicer-Martínez et al., 2015).
Regarding the water uses within the THRB (urban, industrial, and irrigation), their water necessities represent a very low percentage of the available water resources (around 1000×10 6 m 3 yr −1 , on average, in the last 70 years): this area has a low population density, is not conducive to agriculture, and its industrial facilities (hydroelectric power stations and an important thermonuclear power station) do not consume much water.
The water resources generated within the THRB are fundamental for the water uses located downstream of the Entrepeñas and Buendía reservoirs (EBR): irrigated agriculture, urban supply (including the city of Madrid), generation of electric power, and maintenance of environmental flows until the city of Aranjuez.Moreover, a large part of these water resources (up to 650 × 10 6 m 3 yr −1 ) is susceptible to being transferred to the neighbouring Guadiana River basin and, further away, to the SRB.The former can receive up to 50 × 10 6 m 3 yr −1 (BOE, 2014(BOE, , 2015)), of which 20 × 10 6 m 3 are for the maintenance of the wetland of Tablas de Daimiel and 30 × 10 6 m 3 are for urban supply to the populations located in the upper Guadiana River basin (CHG, 2016).The SRB can receive up to 600×10 6 m 3 yr −1 (gross volume), the maximum monthly flow being 68 × 10 6 m 3 .This IBWT is managed by a complex operating rule that gives priority to the water uses in the Tagus River basin and basically depends on the volume stored in the EBR, which have a total storage capacity of 2494 × 10 6 m 3 .The operating rule (Fig. 2) consists of two conditioning factors (BOE, 2014(BOE, , 2015)).The first restricts the maximum volume that can be transferred in each hydrological year (October-September) to 650×10 6 m 3 .The second establishes the transferable flows for each month according to four levels created from two variables: V acu , the accumulated volume stored in the EBR at the beginning of the month, and A acu , the accumulated volume of the flows that entered into the EBR in the previous 12 months.The four levels are the following.
-Level 2. When V acu is between the volumes established in Level 3 and 1500 × 10 6 m 3 , and in addition A acu is lower than 1000 × 10 6 m 3 .Transfers (Q trans ) of 38 × 10 6 m 3 month −1 are allowed.
-Level 1.When V acu is equal to or greater than 1500 × 10 6 m 3 , or A acu is equal to or greater than 1000 × 10 6 m 3 .Transfers (Q trans ) of 68 × 10 6 m 3 month −1 are allowed.

Methodology
The methodology applied to determine the maximum monthly volumes that can be transferred from the THRB to the SRB was structured in two stages (Fig. 3).
The first stage consisted of modelling the hydrology of the THRB until the EBR.For that, a hydrological model was calibrated for the most recent observed flows.Then, with the calibrated model, three scenarios were recreated.In the first one the historical climate series were used (No CC) without climatic correction coefficients.In the others, the data from two characteristic CC scenarios of AR5 (Representative Concentration Pathways 4.5 (RCP 4.5) and 8.5 (RCP 8.5)) were used (IPCC, 2013).In the first (RCP 4.5), CO 2 emissions increase in the future, until in 2050 they stabilize (stabilization scenario), while in the second (RCP 8.5), a continuous and greater increase in emissions of CO 2 is assumed (scenario of very high emissions).
The second stage consisted of simulating the THWRES by means of a decision support system (DSS).This simulation incorporated the future water uses contemplated by the water management board.As water uses downstream of the EBR have priority over possible transferable flows (CHT, 2015), they were included in this simulation.
The methodological framework stages were developed with open-source tools.QGIS (QGIS Development Team, 2016) was used in the data processing of spatial information, R was employed for data analysis and hydrological modelling (R Core Team, 2016), and the DSS SIMGES was used for the simulation of the water resource exploitation system (Pedro-Monzonís et al., 2016a).
Finally, once the series of transferrable flows were calculated, as a complementary goal of this work, an assessment of the socioeconomic consequences that climate change effects have on the main destiny of these flows, the SRB, was made.

abcd water balance model with snowmelt module
The hydrological modelling was carried out using the abcd water balance model (Thomas, 1981).It was applied in a semi-distributed manner (Pellicer-Martínez and Martínez-Paz, 2014), allowing the use of all the gauging stations in the calibration (and validation) in order to maintain the spatial heterogeneity that defines the parameters and variables.This conceptual model was improved by taking into account the hydrological processes of snow and melting.This water balance model and this structure were selected in order to facilitate the understanding of the developed process, allowing the potential reproducibility of the work.
The hydrological modelling, whose scheme is shown in Fig. 4, began with the snowmelt module proposed by Xu and Singh (1998).This module recreates the hydrological processes of precipitation as snow (S n ), snow accumulation on the summits (S np ), and snowmelt (S m ).One equation, with a parameter that depends on the temperature, establishes which part of the precipitation (P ) occurs as rain (R f ) and which part occurs as snow (S n ).Snow is accumulated in a storage called snowpack (S np ).Then, another equation controlled by one parameter, which also depends on the temperature, establishes the snowmelt (S m ) of the snowpack when the temperature increases.In the modelling, the melting snow ends up forming part of the storage that represents the soil moisture (S).This snowmelt module has been used in previous work, for example, by Li et al. (2011Li et al. ( , 2013) ) in basins of China, and by Pellicer-Martínez and Martínez-Paz (2015) for the Segura headwaters river basin.
The modelling continued with the incorporation of rainfall (R f ) and melting snow (S m ) into the abcd model.This water balance model simplifies the hydrological cycle in two storages, one that simulates the soil moisture balance (S) and another that represents the groundwater storage (G).The model has four parameters -a, b, c, and d (Thomas, 1981) -that give the model its name.The parameters "a" and "b" manage the soil moisture balance (S), establishing evapotranspiration Hydrol.Earth Syst.Sci., 22, 6473-6491, 2018 www.hydrol-earth-syst-sci.net/22/6473/2018/  (E T ) and the water susceptible to being lost by surface runoff and/or percolation (Q s + G).The third parameter "c" identifies percolation ( G) towards aquifers (G) and surface run-off (Q s ).The fourth parameter "d" determines the discharge from the aquifer (Q g ).The output variables of the model are evapotranspiration (E T ) and surface run-off (Q).

Calibration-validation process
The parameters were calculated by a cascading calibration process (Xue et al., 2016), which consists of determining the parameter values from upstream to downstream.In other words, once the model's parameters are established for upstream catchments, their values become input data in the calibration process of the downstream catchments.The splitsample test, proposed by Klemeš (1986), is carried out by splitting the data series of observed flows into two periods: calibration and validation.
The objective function used in the calibration is the Nash-Sutcliffe efficiency criterion (E NS ).This function quantifies the goodness of fit of the model in order to evaluate the performance of the variables selected for study (Nash and Sutcliffe, 1970), which are the flows that go out from each catchment (Q).The E NS varies between ]−∞, 1] and the closer its value is to 1, the better the performance of the model is.The calibration is developed automatically with the Shuffled Complex Evolution Method (SCE-UA) algorithm (Duan et al., 1994;Skøien et al., 2014).Once the semi-distributed model has been calibrated, another three metrics that evaluate the performance of the model, comparing observed with simulated flows, are calculated: the determination coefficient (R 2 ), the percentage of the bias (P BIAS ), and the root mean square error (E RMS ) (Gupta and Kling, 2011).

Simulation of the water resource exploitation system
The operation of the water exploitation systems for a specific scenario is usually evaluated by a DSS which simulates the part of the water cycle that is anthropically modified.These systems represent the main hydraulic network of an area, generally a river basin, together with its natural and artificial storages (rivers, reservoirs, aquifers, canals, among others), establishing the water uses in them (Pulido-Velazquez et al., 2013).In this hydraulic network, series of flows are introduced, generally in their natural regime.Then, the DSS simulates this kind of system in an integrated manner, fulfilling the priority criteria among the different water uses and the pre-established operating rules (Pedro-Monzonís et al., 2016a).The DSS provides, as results, flow and volume series related to the main fluxes of the hydraulic network (supplies to uses, water consumptions, returns, evaporation in the reservoirs, etc.).Therefore, it is able to estimate the water uses that are not completely met, which are generally those with lower priority and/or those whose spatial location in the hydraulic network does not make it possible to always guarantee their supply (Chavez-Jimenez et al., 2015).For example, water uses located upstream of a reservoir have less guarantee than those located downstream.
There are different DSSs for water exploitation systems (Zare et al., 2017).But, as was advanced in the Methodology section, in this work the model applied is the simulation module of AQUATOOL called SIMGES (Pedro-Monzonís et al., 2016b), which is one of the models applied most in Spanish river basins, as well as in other countries (Chile, Italy, Morocco, etc.).SIMGES simulates the water exploitation system on a monthly basis in a conservative flow network, seeking a compatible solution that accomplishes the defined constraints (Pedro-Monzonís et al., 2016b).This DSS was selected since it is able to reproduce complex operating rules such as the TSA operating rule.

Socioeconomic impacts at the Segura River basin (SRB)
The precise quantification of the socioeconomic impact of reductions in the volume of water transferred via the TSA would require new integral simulations of the exploitation system of the receiving basin (SRB), which exceed the scope of this work.However, an initial quantification of this impact has been made, based on the work of Martínez-Paz et al. (2016), where supply failures were assigned an economic value in irrigation in the SRB, and of Martínez-Paz and Pellicer-Martínez ( 2018), who estimated the economic value of the risk associated with droughts in the Region of Murcia.But, given the order of priority of allocation among the water uses, irrigation would suffer the full brunt of any supply deficit.The almost 270 000 ha of irrigated land in the SRB has a net demand of 1363 × 10 6 m 3 yr −1 (CHS, 2015), a large part of which is supplied by the TSA.The whole irrigated area in the SRB is divided into seven irrigation zones (IZs); for each of them the water demand curve is estimated from a linear programming model that optimizes the gross value added (GVA) by the optimal cultivation plans according to the water supply.This crop programming includes the irrigation situations of woody crop maintenance, the change from irrigated to rainfed crops and the abandonment of irrigation plots, as well as the impact on employment.
The modelling of the optimal crop plan for each IZ is determined by the following objective function (1) that maximizes the GVA: where i denotes crop activities under different management options, Y i is the yield of each crop i, P i the price received by the farmer, C i the direct costs of production per unit area, and L i the area dedicated to each activity.The objective function is subject to the following constraints (Eqs.2-7): Hydrol.Earth Syst.Sci., 22, 6473-6491, 2018 www.hydrol-earth-syst-sci.net/22/6473/2018/ L T is the total available surface irrigable in the IZ; q i is the water requirement of each crop per unit area and Q T is the availability of water for the entire campaign in the IZ; L R i is the surface of irrigated woody crops; L S i is the irrigable surface that goes to rainfed; L M i is the irrigable surface of woody crops under maintenance irrigation; L P i is the surface of the irrigation plots abandoned; L G i is the surface of existing irrigated greenhouses; L E i is the existing area of each activity in the basin in the reference year; lf i are the labour requirements for each crop, and LF T is the availability of agricultural labour in the IZ.
The first constraint (Eq.2) prevents each unit of demand (IZ) from cultivating more area than the available net irrigable area.The following constraint (Eq. 3) represents the limitation of water availability for each IZ.The set of constraints (Eq.4), (Eq.5), and (Eq.6) allow simulation of specific management options to certain crop groups.Constraint (Eq.4) fixes the total area of woody crops such as almond, olive, and wine, distributed between irrigated and rainfed depending on the availability of water.Constraint (Eq.5) represents citrus and fruit trees, whose total area is equal to the area actually irrigated plus, in situations of scarcity of resources, the surface under maintenance irrigation and/or loss of trees because of not being able to perform the minimum maintenance irrigation.Constraint (Eq. 6) sets the maximum available area for greenhouse crops in the reference year.Finally, constraint (Eq.7) represents the limitation of the available labour for each IZ.The programme used allows estimation of the gross margin generated under different water availability assumptions, as well as derivation of water demand curves and the marginal value of this resource (Griffin, 2006).
The necessary data to characterize the technical coefficients of each IZ have been obtained from the sources indicated in Martínez-Paz et al. (2016) and in Martínez-Paz and Pellicer-Martínez ( 2018), updating all the economic figures to EUR of 2017.The programme was solved for each IZ and for the three climatic scenarios (No CC, RCP 4.5, and RCP 8.5), so the availability of water in each of them changes (Q T ).The differences in the average volume transferred to the SRB in each CC scenario (RCP 4.5 and RCP 8.5) calculated with SIMGES were distributed proportionally for each IZ, taking as a reference the volume transferred in the scenario without CC.Thereby, the socioeconomic impact due to changes in the availability of water was obtained, ceteris paribus the rest of the parameters of the model.Finally, the comparison among the results obtained from GVA and employment for each scenario are presented in the Discussion section.
4 Data source

Hydrological modelling of the Tagus Headwaters River Basin
The digital elevation model (DEM) employed has a 25 m resolution and is available on the website of the National Geographic Institute of Spain (http://www.cnig.es/,last access: 15 December 2017).This DEM was used as an auxiliary variable in the interpolation models of the climatic variables, and to delimit the main streams and catchments using the D8 algorithm (O' Callaghan and Mark, 1984).The locations of the 12 gauging stations, which have observed flows in the same period, were used to establish the outlet points of the 12 catchments into which the THRB was divided (Fig. 5).The data series of the observed flows are available in the gauging yearbook of the Official Gauging Station Network of Spain (MITECO, 2018) and cover the period from September 1985 to December 2009.These observed flows have been previously naturalized to be used in the calibration-validation process (Wurbs, 2006).For that, the main human alterations located upstream of each gauging station were undone: regulation and evaporation in the reservoirs, as well as the derivations for urban, agricultural, and industrial uses (also, the returns of these uses were considered).As available data for the 12 gauging stations exist for the same period, it is possible to calibrate the model jointly for all the catchments.Since the objective of this work is to obtain a statistically significant calibration and data for its testing, each series of observed flows was divided into two periods (Klemeš, 1986), the first (from September 1985 to July 1995) being used in the validation and the second (from August 1995 to December 2009) being used in the calibration.Thus, the parameters to be used for the CC projections were determined with the most recent data.
The historical climate series used in the calibrationvalidation comprise the period from September 1980 to December 2009.Thus, the 5 years before the observed flow series were used to warm up the hydrological model.Two information sources were used to obtain the monthly climatic series.The first was the Spain02v5 dataset (Herrera et al., 2016), the historical series used for the calibrationvalidation of the hydrological model and for its simulation in the scenario without climate change (No CC).For the No CC scenario, these series of data were extended from October 1940 to September 2010 (70 consecutive years), and they were used in the simulation without climatic correction coefficients.The advantages of using Spain02v5 are that the daily series of precipitation and temperature are refined (without outliers and/or in homogeneities), and that they include the spatial variability of the climatic variables in a grid with a 12.5 km resolution (Fig. 5).Since these data are daily, they were aggregated on a monthly basis to apply them in the model.The second source of data was the State Meteorological Agency of Spain (AEMET) and was used for the two CC scenarios of AR5 (IPCC, 2013).This source (AEMET) provides the regionalized projections of 27 models (13 for RCP 4.5 and 14 for RCP 8.5), using the statistical method of analogues (Amblar-Francés et al., 2017).The daily temperature and precipitation series of the 6 thermometric and 48 precipitation stations closest to the THRB were used (Fig. 5).These daily data were also aggregated to monthly series.Next, the reference historical data series of each model were compared with Spain02v5 data, using as a control period the 1971-2005 interval.The 10 models that best fitted for both temperature and precipitation were assembled using the Simple Average Forecast Combination (SA) and Bias-Corrected Eigenvector Forecast Combination (EIG2) (Hsiao and Wan, 2014), available in the GeomComb R-CRAN package (Weiss and Roetzer, 2016).Then, both ensembles were also compared with Spain02v5 data using the same control period .Finally, the series obtained by EIG2 were used, with a lower prediction error compared to the rest of the series.For example, the ENS values obtained with EIG2 for the temperatures were 0.87, while in the separate models they never exceeded 0.77.For the precipitations, the ENS value was 0.30, while in the models it was always lower than 0. In addition, another advantage of the EIG2 method is that it allows one to correct the bias produced by predictive models.The period used in the simulation of CC scenarios (RCPs 4.5 and 8.5) is from October 2020 to September 2090 (also 70 consecutive years).
Based on the average monthly temperature data of the three climatic scenarios, the potential evapotranspiration series were estimated using the Thornthwaite method (Thornthwaite, 1948;Gomariz-Castillo et al., 2018).As this method tends to underestimate the potential evapotranspiration, the series generated were corrected from a linear regression between the estimated series and those used by the SIMPA hydrological model (BOE, 2007).These series used by SIMPA have already regionalized for the Iberian Peninsula based on the Penman-Monteith method (Allen et al., 1998), correcting the underestimation of the Thornthwaite method.
Once the monthly series of precipitation, temperature, and potential evapotranspiration had been calculated, they were spatially interpolated on the cells using the thin-plate splines method (Wahba, 1990), which is based on local interpolation from polynomials.This method turns out to be relatively robust against non-compliance with the statistical assumptions necessary in methods such as kriging, being used with good results for the interpolation of climatic variables such as rainfall (Hutchinson, 1995) and temperatures (McKenney et al., 2006).Finally, each catchment was assigned the average value of the cells over which it extends.

Water resource exploitation system of the Tagus
Headwaters Basin (THWRES) The THWRES covers the basin upstream of the EBR and the water uses located in the basin downstream of these reservoirs, up to the city of Aranjuez (Figs. 1 and 6).In its design, the possible future water uses for the years 2016, 2021, and 2033 contemplated by the water management board (CHT, 2015) were analysed.And, as there are no relevant differences between them, the uses predicted for the year 2033 were taken as the reference for the three climatic scenarios (No CC, RCP 4.5, and RCP 8.5) (Table 1).In addition, as the available water resources in the catchments downstream of the EBR are so low with respect to those generated in the EBR drainage basin, they were neglected in the water resource exploitation system simulation.
Regarding water uses, the majority of the urban and irrigation uses are concentrated downstream of the EBR, requiring more than 85 % of the total volume demanded.For urban use, a water return of 80 % was considered with respect to the volume supplied.In 2033 irrigation will have a low water return into the system (< 1 %) due to improvements in irrigation facilities and in the application systems which will be used, so this low return was implemented in the DSS.The main industrial use of water occurs at the Trillo Nuclear Plant.This industrial use requires a constant flow over time that returns 46 % of the water supplied.Finally, an environmental flow of around 11 m 3 s −1 must circulate in the Tagus River from the EBR to the city of Aranjuez.The order of priority in the water resource allocation among the different water uses is urban supplies, Trillo Nuclear Plant, and irrigation.Once the water uses in the THWRES have been supplied, the possibility of authorizing transfers is evaluated (BOE, 2014(BOE, , 2015)).Among the four uses of the transfer there is no stipulated clear criterion in the operating rule that governs it, since sometimes it is done discretionally depending on the needs or level of urgency of the uses.In fact, the transfer to Tablas de Daimiel has occurred only once, to avoid serious damage to this wetland.Therefore, in order to accomplish the general criteria of Spanish legislation, the order of priority followed is urban supply to Segura (TSA), urban supply to the populations located in the upper Guadiana River basin, and irrigation supply to Segura (TSA) and Tablas de Daimiel.

Climate change effects on the hydrology of the Tagus Headwaters River Basin
The values of the criterion coefficients calculated in the hydrological modelling show that the model employed reproduced properly the surface flows in the THRB in the calibration period: high values of E NS and R 2 , together with low relative errors (E RMS ) and volume errors (P BIAS ).However, in the validation period, there are some low values for the goodness-of-fit coefficients calculated, indicating that the results of these catchments have greater uncertainty.These results can be explained by the fact that the validation period was used just after the warming-up process.Thereby, it could cause, in some catchments, the warming to extend to a part of the validation period.This would entail the calibration process using a part of the validation to adjust the initial parameters, obtaining worse adjustments in the validation of the model.However, it is important to highlight that the parameters used in the simulations are adjusted with the more recent data, providing a good performance of the surface flows in the THRB.In addition, the best performance in calibration corresponded to the outlets of the catchments of Entrepeñas and Buendía, which were the flows used as the input in the subsequent simulation of the water resource exploitation system.In fact, both catchments had NSE values around 0.80 and low P BIAS (Table 2).
The simulation of the historical climate series of 1940-2010 with the calibrated model provided an average annual resource of 954.6 × 10 6 m 3 yr −1 (Q).This series was temporally moved to the 2020-2090 time period in order to reproduce a future climate scenario without climate change (No CC).The simulations for climate change scenarios RCP 4.5 and RCP 8.5 with the same calibrated model indicated that the THRB could suffer a considerable loss of its natural water resources.The RCP 4.5 scenario forecasted a value of 575.6×10 6 m 3 yr −1 , representing a decrease of 39.7 %, while the RCP 8.5 scenario predicted a 46.6 % decline in resources to 508.9 × 10 6 m 3 yr −1 , on average (Fig. 7).This is due to a combination of a reduction in precipitation (15 % and 20 % for each scenario, respectively) and an increase in potential evapotranspiration resulting from an increase in temperature of 2.2 and 3.4 • C, respectively, for CC scenarios RCP 4.5 and RCP 8.5.
Regarding the snow-melting modelling, the scenario without CC (historical series) provided an average precipitation as snow (S n ) of 185.4 × 10 6 m 3 month −1 (considering the whole year), reaching a maximum value of 406.9 × 10 6 m 3 month −1 .The hydrological modelling considered the snow for the months between October and May to be relevant, especially that of December, January, and February.The snow accumulated on the summits (S np ) represented an average reserve for each winter of about 112.7 × 10 6 m 3 , with a maximum value of 481.5 × 10 6 m 3 (Fig. 8a).For the CC scenarios, the snowfall would significantly decrease; in fact, the models did not detect relevant snow-melting processes for the months of October and May.The snowfall would drop by 68 % for RCP 4.5, the average value being around 59.3 × 10 6 m 3 month −1 , while for RCP 8.5 the snowfall would drop by 90 %, giving an average value of about 19.2 × 10 6 m 3 month −1 .These values would decrease the snow covers to a similar extent.In the RCP 4.5 scenario the average snow cover of each winter would be 29.5 × 10 6 m 3 (Fig. 8b), which represents a reduction of 74 %, whereas the RCP 8.5 snow cover would suffer a reduction of 80 %, reaching an average value of 22.1 × 10 6 m 3 (Fig. 8c).
The aquifers' recharge estimated by the hydrological modelling ( G) had an average value of about 771.0 × 10 6 m 3 yr −1 for the historical climate series, with high monthly variability.This value indicates that almost 80 % of the surface flows (Q) have previously passed through aquifers, which underlines the relevance of the groundwater in this river basin.The maximum recharge occurs during the winter and spring months (January-May), the minimum values being found in the summer months (Fig. 9a).For the CC scenarios, the recharge is significantly reduced and concentrated in the months of February and April.In the RCP 4.5 scenario the aquifers' recharge is reduced by 54 % (to 357.7 × 10 6 m 3 yr −1 ) and represents 62 % of the surface flow (Q) (Fig. 9b).For RCP 8.5 the aquifers' recharge is reduced by 62 % (to 290.0 × 10 6 m 3 yr −1 ) and would represent only 57 % of the surface flow (Q) (Fig. 9c).The snowfall reduction is one of the reasons for this decrease in aquifer recharge, since the melting snow in the model becomes soil moisture (S), as usually happens in nature.These changes in the aquifers' recharge alter the pattern of the groundwater discharge (Q g ), which is part of the surface flows (Q).In fact, the relative differences in the possible groundwater discharges between the summer and spring months would be greater (Fig. 10a).Overall, the CC scenarios predict a significant reduction in the water resources with respect to the historical climate series, together with a loss of the natural capacity of regulation of the river basin itself, manifested as an increase in the relative values of the maximum flows (Fig. 10b).

Climate change effects on the Tagus Headwaters Water Resources Exploitation System
The simulation of the THWRES was carried out with the flows obtained in the previous hydrological modelling.The  results obtained using the historical climate series (No CC) and the stabilization scenario (RCP 4.5) indicate that the supply to the water uses in the Tagus River basin is guaranteed, in both cases, for the whole of the time period simulated.However, for the scenario of very high emissions (RCP 8.5), the simulation indicates that there would be supply deficits in the THWRES in some years towards the end of the time period considered.
Once the water uses in the Tagus River basin have been supplied, the TSA operating rule comes into effect, providing the monthly volumes that would be possible to transfer in each climatic scenario evaluated.The results are presented in Fig. 11, which shows the volume stored in each month in the EBR (V acu ), the transferred volume (Q trans ) that leaves the Tagus River basin, and the flow that would go through the TSA to the SRB.
Table 3 summarizes the main statistics of the annual transfer series, specifying which part goes to the SRB.If the future climate were similar to that of past years (No CC), the average transferable volume would be about 450 × 10 6 m 3 yr −1 (Fig. 11a).This volume would break down, following the priority criterion established, into about 40 × 10 6 m 3 yr −1 for the Guadiana River basin (29 × 10 6 m 3 yr −1 for urban supply and about 10 × 10 6 m 3 yr −1 for Tablas de Daimiel) and 411 × 10 6 m 3 yr −1 for the TSA.Thus, given the average losses by infiltration and evaporation from the transfer channel, which are around 10 % (CHS, 2015), the net volume that would reach the SRB would be 370 × 10 6 m 3 yr −1 , a value close to those of the actual series of transfers that have occurred since it came into operation (Morote et al., 2017).So, if there were No CC, despite the fact that the volume reaching the SRB via the TSA would be, on average, much lower than the planned 540 × 10 6 m 3 yr −1 (600 × 10 6 m 3 yr −1 minus 10 % losses), it would be possible to transfer an average of 411 × 10 6 m 3 yr −1 to the SRB.
In the RCP 4.5 scenario, the transferable volumes drop to 143 × 10 6 m 3 year −1 on average, 17 × 10 6 m 3 yr −1 being for the urban supply in the Guadiana River basin, 2.5 × 10 6 m 3 yr −1 for Tablas de Daimiel, and 123 × 10 6 m 3 yr −1 for the SRB by means of the TSA infrastructure.So, considering losses of 10 %, this would mean net water resources of 111 × 10 6 m 3 yr −1 being transferred to the SRB, barely 20 % of the maximum transferable volume.As worrisome as this important decrease in the average value is the existence of  consecutive periods of 3 and 4 years in which no transfer would occur (Fig. 11b).
This situation would be aggravated for the climatic scenario RCP 8.5 since the transferable volume would be reduced to about 100 × 10 6 m 3 yr −1 , on average, distributed as 12 × 10 6 m 3 yr −1 for the urban supply in the Guadiana River basin, 1.5×10 6 m 3 yr −1 for the maintenance of the Tablas de Daimiel wetland, and 86 × 10 6 m 3 yr −1 for the TSA.Thus, the SRB would receive approximately throughout the year the volume planned for just 1 month in the operating rule.This scenario worsens the duration and frequency of the notransfer periods, which intensify over time, reaching a situation of total cessation of the TSA from the year 2067 due to a lack of accumulated volumes (V acu ) in the EBR (Fig. 11c).

Discussion
The hydrological modelling carried out with the AR5 CC scenarios predicts a sharp decrease in the water resources of the THRB.These results are in line with the previous simulations made on the same scale (Lobanova et al., 2018), as well as on a larger scale (Guerreiro et al., 2017;CEDEX, 2011b;Lobanova et al., 2018).The hydrological modelling indicated that the increase in temperature would generate a decline in snowfall, which would lead to a reduction in the snow cover period of 2 months.The relevant snowfalls would have a delay of 1 month and the snowmelt would start a month earlier.The decreases provided by the simulations are similar to those published by CEDEX (2017) for the same mountainous area, in which a decrease of up to 70 % was predicted for the interval 2070-2100 in the RCP 4.5 scenario, and greater than 90 % for the RCP 8.5 scenario (same interval).In addition, CEDEX (2017) also predicted a decrease in the 2month snow cover period.Regarding the aquifer recharge, the hydrological modelling indicated a decline greater than 50 %.Although these values are slightly higher than those published by CEDEX (2017) for the whole Tajo River basin, they are in line with the provisions in the THRB, since the majority of the projections used for these two scenarios (RCP 4.5 and RCP 8.5) indicated diminishments of around 50 % in aquifer recharge within this area.These alterations of the hydrological processes will probably generate a change in the fluvial regime.In relative terms, the months of autumn (October, November, December) would suffer the major decrease, this change being consistent with the results of Lobanova et al. (2018).At the annual level, these alterations would result in greater variability of the surface flows of the basin due Hydrol.Earth Syst.Sci., 22, 6473-6491, 2018 www.hydrol-earth-syst-sci.net/22/6473/2018/  to increases in the relative difference between the maximum and minimum flows of spring and summer, respectively.In short, these changes are going to diminish the natural capacity of the THRB to regulate its own water resources.However, the results of the THWRES simulations indicate that the EBR will not reach their maximum volume in any situation, and no new infrastructure will be necessary to overcome this loss of regulation.The effects of these physical changes on the THWRES will translate into average decreases around 70 %-79 % in the volume expected to be available for the TSA in both scenarios evaluated (RCP 4.5 and RCP 8.5).In addition, there would be long periods without transfers for the RCP 4.5 scenario, and this IBWT could even stop operating for the last third of the simulation period under the RCP 8.5 scenario, when there would be deficits regarding the water uses in the Tagus River basin itself.
At this point it is necessary to consider two reflections.The first is the uncertainty of regionalized projections, whose origin is associated with the uncertainties inherited during the different stages of their generation.To this uncertainty must be added the influence of uncontrolled local factors in the regionalization, which have a great relevance in the case of precipitation.In this sense, in Spain, while the regionalized series for temperature are in line with the historical reference series, those of precipitation have strong uncertainties associated with the models (Amblar-Francés et al., 2017;Mitchell and Hulme, 1999).Even so, the use of these data sources is the best way to understand the repercussions of CC for water resources and hence to adapt strategies to CC.The second is that the simulations carried out for the water resource exploitation system represent scenarios in which the uses of the water and the operating rule do not change with time.The flows that enter in the model are the only input data that vary.So, they are not tools to predict future behaviour, since water needs, infrastructure, and water policy are not static.However, they do serve to evaluate the effects that CC could have on the TSA if measures are not taken regarding the management of the demand for water or the incorporation of alternative sources of water resources into this system.
The socioeconomic impact of the decreases in the TSA supply were calculated by the methodology presented in  2016), which were conditioned by the water demand and by the topology of the exploitation system of the SRB.Once these deficits were determined, they were valued using the linear programming presented, calculating GVA and agricultural employment for each IZ according to water allocations available in each scenario.The results are presented in Table 4, which shows the differences in relation to a scenario with no climate change (No CC).
By calculating the ratio between the GVA and TSA the marginal value of water used in irrigation was obtained: 1.29 EUR m −3 for the RCP 4.5 scenario and 1.31 EUR m −3 for the RCP 8.5 scenario (average values for the whole SRB).The marginal value establishes the upper limit of the marginal productivity of water, and therefore it represents the maximum payment capacity of the sector for water in each scenario.The figures obtained are in line with those presented in other studies for the area (Martínez-Paz et al., 2016;Albaladejo-García et al., 2018).
Thus, the decrease in the TSA supply for the RCP 4.5 scenario would mean a direct loss of 380 million EUR yr −1 (at the prices of 2017), while for RCP 8.5 it would amount to 425 million EUR yr −1 .Given that the GVA of irrigation in the SRB is around 1870 million EUR yr −1 (Martínez-Paz and Pellicer-Martínez, 2018), these figures represent, respectively, direct losses of 20 % and 23 % in terms of GVA.In addition, the decrease in the volumes transferred in the CC scenarios means that the irrigated area is occupied by more labour-extensive crops, causing the loss of around 6690 and 7369 direct full-time agrarian jobs per year in the sector (Table 4).To all these direct effects we should add the drag effects of the primary sector on other economic sectors that depend directly on the use of irrigation in the area (food industry, marketing, transport, inputs, etc.) and make up the TSA to SRB GVA Labour TSA to SRB GVA Labour (10 6 m 3 yr −1 ) (10 6 EUR yr −1 ) (full-time jobs yr −1 ) (10 6 m 3 yr −1 ) (10 6 EUR yr −1 ) (full-time jobs yr well-known agro-industrial cluster of the Region of Murcia (Colino et al., 2014).In this sense, some authors propose a multiplier of no less than 3 to calculate the total economic impact of agricultural production on other related activities.
To this economic impact it would be possible to add the environmental one (Martínez-Paz et al., 2018), as it would be, for example, the reduction of the flows circulating in the Segura River, since it is part of the distribution network of the TSA volumes, which would also have effects on the ecosystems associated with this river (Perni and Martínez-Paz, 2017).

Conclusions
In this work, the possible effects of CC on the Tagus Headwaters Water Resources Exploitation System have been evaluated.In particular, the work has focused on the hydrological changes that would arise in the Tagus Headwaters River Basin (THRB) if the predicted climatic scenarios arose, and how these would affect the uses of the basin itself and the IBWT (the TSA) that transfers flows to the Segura River basin.The main effects on the water cycle would be the reduction of snowfalls and their accumulation on the summits, and a decrease in aquifer recharge.These changes would generate a significant loss of the natural regulation capacity of the THRB itself, which could not be corrected with new infrastructure since there would also be a significant reduction in the water resources.The hypothetical flows that can be transferred by the TSA would suffer a significant decrease if the simulated CC scenarios came into being.For RCP 4.5 there would be an average reduction of 70 %, while for RCP 8.5 it would be 79 %, both figures being with respect to the series without CC.These reductions would result in direct economic losses in the irrigation sector of around 20 %.Beyond these average figures, the increase in the zero-transfer periods would have a high impact, since it would further increase the uncertainty associated with this source of supply, preventing adequate planning of water uses in the receiving basin.
Finally, in addition to the undoubted interest that is presented by the case study analysed, this work shows a complete sequential methodological framework which should serve as a guide for the comprehensive evaluation of IBWT within a framework of integrated water resource management.Moreover, the entire methodology has been developed with open-source tools, facilitating its reproducibility in other areas.
Author contributions.Both authors contributed equally to this work.
Competing interests.The authors declare that they have no conflict of interest.Special issue statement.This article is part of the special issue "Assessing impacts and adaptation to global change in water resource systems depending on natural storage from groundwater and/or snowpacks".It is not associated with a conference.

Figure 4 .
Figure 4. Conceptual scheme of the abcd model.

FFigure 5 .
Figure 5. Spatial distribution of climate stations with AR5 information and the grid obtained from Spain02v5.

Figure 6 .
Figure 6.Scheme of the water resource exploitation system of the Tagus Headwaters, as far as Aranjuez.

Figure 10 .
Figure 10.Alteration of the intra-annual pattern of the groundwater discharges from aquifers (a) and surface flows (b), in relative terms (%).

Table 2 .
Results of the calibration-validation process for the 12 gauging stations in the hydrological modelling.

Table 4 .
Differences of the RCP 4.5 and RCP 8.5 scenarios with respect to No CC (these values represent decreases with respect to the No CC scenario).