Introduction

Depending on the time and place where the river flows, various natural (such as lithology and atmospheric precipitation) and artificial (such as discharge of various wastewater and dams) factors affect the quality of its water. Dams as important hydraulic structures that are built worldwide for surface waters management have closely related to the geological conditions of the site. Changes in water quality including salinity are among the important issues related to the quality of dam’s lake water and their associated rivers in the downstream and upstream.

Several factors are effective in selecting the dam site, important of which being topographic conditions, geological structures, and the status of the basin. Water quality of the dam’s lake is directly related to the lithology of the basin. The Gotvand-e-Olya Dam is the lowest dam built on the Karun River. Passing this dam, the river enters the plain of Khuzestan. In the upstream of Gotvand-e-Olya Dam, the Gachsaran, Mishan, Aghajari, and Bakhtiari formations are exposed in the course of the Karun River. In this region, the river flows in a bed where more than 50% of its length is composed of Gachsaran Formation and river water is in direct and permanent contact with it (Mozaffarizadeh and Chitsazan 2007). This formation has thick layers of gypsum and halite that their dissolution causes salting, sulfation, and increasing the hardness of water. Therefore, rivers passing through Gachsaran Formation are not suitable for drinking and agriculture (Fakoor and Namdar 2003). In the southern hillsides of Zagros Zone, outcrop of the Gachsaran Formation and the addition of relatively high saline branches increase the salinity of the Karun River (Hossein Zare et al. 2006). The Marghab, Andika salty, and Lali salty branches are located upstream of the Gotvand-e-Olya Dam and account for approximately 32% of the total EC of dam’s lake (Hasanvand et al. 2010).

The Gotvand-e-Olya Dam has been built on the Aghajari Formation and the Lahbari member of Bakhtiari Formation. In addition to the downstream of the dam, the Gachsaran Formation has outcrop at 5–9 km to the upstream of the dam and on both sides of the river with the length of 2.9, width of 1.45 km, and a total area of 4.2 km2. The major part of this formation, however, is located on the left shore of the river. The main concern is the dissolution of the salt available in the second member of this formation that, after the dewatering of the dam, is in contact with the water in the lake.

Regarding the key importance of Gotvand-e-Olya Dam for scientific communities and several issues about the effect of the geological conditions of the site and lake of dam on water quality, the present study was conducted to evaluate the factors affecting water quality in the lake and upstream of the dam using multivariate statistical methods. Figure 1 shows the outcrop location of this salt dome in the Lake of Dam. It should be noted that in recent years several studies have been carried out on Gotvand-e-Olya Dam (Hossein Zare et al. 2006; Hasanvand et al. 2010, 2011; Rostamy Paydar et al. 2011; Mansournejad et al. 2015).

Fig. 1
figure 1

Location of sampling stations including five stations in the lake and 20 stations in downstream of the Gotvand-e-Olya Dam

Multivariate statistical methods such as cluster analysis and principal component analysis, also known as chemometric techniques (Sojka et al. 2008), have a wide and effective application to identify and describe the quality of water resources, evaluate spatial and temporal variations of water sources under the influence of natural, and identify the underlying causes of water pollution (Shrestha and Kazama 2007; Zhou et al. 2007; Adebola et al. 2013; Wang et al. 2013; Azhar et al. 2015; Ogwueleka 2015; Muangthong and Shrestha 2015; Jung et al. 2016; Monica and Choi 2016; Chow et al. 2016; Le et al. 2017; Rehman et al. 2018; Ren et al. 2018; Kilic and Yucel 2019; Kwami et al. 2019). Using these techniques: (1) the multivariate nature of a natural system is more accurately determined, (2) a way is provided for managing large datasets, and (3) a tool is provided to identify and quantify multivariate patterns, which is driven from the correlation structure of variable sets (McGarigal et al. 2000; Boyacioglu and Boyacioglu 2008).

In order to evaluate the quality of water, several variables must be measured at the same time in a specific period (Chapman 1992). Subsequently, it is determined whether the origin of these variables is natural or due to human activities (Pesce and Wunderlin 2000). Water samples with similar chemical and physical properties, based on the mineralogy, climate conditions, and durability period, often have a hydrological history, feeding sources, and similar flow paths. Multivariate methods and data exploration analysis are suitable solutions for simultaneously examining physical, chemical, and biological parameters and the origin of their source (Wenning and Erickson 1994). In fact, these methods, while reducing and categorizing variables in several groups, explain their correlation without losing necessary information (Nadiri et al. 2013).

In the present study, ionic ratios were used to confirm the results of multivariate statistical methods. Ionic ratios are appropriate indicators to evaluate the chemistry of water resources and their use is very effective to determine the origin of salts (Hounslow 1995). Various ionic ratios of the water chemical composition are affected by the chemical composition and value of the soluble minerals (Howard and Mullings 1996).

Materials and methods

Regarding the geographical location of Gotvand-e-Olya Dam and its lake, the studied area covers a range of 220 km. A total of 25 samples were extracted from selected stations including 20 locations in downstream and five locations in the dam’s lake (Fig. 1). The sampling stations were selected on a random basis. In the lake of the dam, samples were taken only from the lake surface. Because the flow at downstream is an artificial stream affected by the outflow of the dam, it is simply not possible to determine the wet and dry seasons. Therefore, samplings were carried out at two temporal points of the water year, each with a period of 6 months; in late November 2015 and late June 2016. Precipitation in the region begins from November and continues until May.

One of the common methods for classifying water variables is cluster analysis (Belkhiri et al. 2010; Mirzaei et al. 2013; Abdolabadi et al. 2014). Cluster analysis is performed in a variety of ways, including the hierarchical cluster analysis (HCA), K-means cluster analysis (K-MCA), and two-step cluster analysis (T-SCA). Because of the widespread use of HCA method in quality assessment (Ribeiro and Macedo 1995; Güler et al. 2002; Zarechahoki 2013), this method was used in this study. An important property of this method is the presentation of the Dendrogram diagram. In addition, in this method, the number of clusters is determined automatically and a single sample can form a cluster.

The HCA method has several algorithms for linking clusters and calculating the distance index; however, none of these algorithms has been proved as the best method. According to the results of various methods and other studies (Güler et al. 2002; Suvedha et al. 2009; Belkhiri et al. 2010; Mirzaei et al. 2013), in this research, the Wards method and squared Euclidean distance were used to link clusters and to calculate the distance index, respectively. Before the data analysis, the nearest neighbor method was used to determine the variables with the least dependency. Since the studied variables have different units and dimensions, before the analysis, the values of various variables must first be standardized so that they have the same significance for the analysis of similarity (Güler et al. 2002).

Factor analysis is a statistical method used to describe variability among observed, correlated variables in terms of a potentially lower number of unobserved variables called factors.

This method consists of three steps: (1) the preparation of the correlation matrix of all variables, (2) the extraction of factors, and (3) the interpretation of the results. Since the factor analysis method on the correlation between the variables, the correlation matrix of the variables must first be computed. To determine the usability of data for factor analysis, it is recommended excluding variables having no significant correlation with any variables from the analysis. The Kaiser–Meyer–Olkin (KMO) coefficient and Bartlett’s test of sphericity are used to determine the suitability of data for the factor analysis. The value of the KMO coefficient always varies between 0 and 1, where values less than 0.5 represent the inappropriateness of the analysis. If the value is between 0.5 and 0.69, the factor analysis must be done with caution. Finally, if it is more than 0.7, the available correlation between the data can be analyzed by factor analysis (Zarechahoki 2013).

Based on the value and type of variance explained using the variables of each factor in the model, there are several methods such as principal components analysis (PCA) for factors extraction. There are several methods for extracting the criteria of the factors such as the criterion of cumulative variance percentage, which was employed in this research because of its widespread use. In this method, those factors with a higher percentage of variance are extracted. Another method for extracting these factors is the scree plot, which is plotted in terms of special values versus components, and a curve turning point (usually a specific value of 1) is used to identify the factors. The number of effective factors is equal to the number of components before the turning point (Zarechahoki 2013). The origin of each factor is determined and interpreted based on factor loads, hydrochemical processes, and hydrological and geological conditions.

Several researchers have used ionic ratios as a suitable tool to investigate the chemistry of water resources and determine the source of their salts (Wood and Jones 1990; Adhikary et al. 2010). In this study, the TDS and Cl/(HCO3 + CO3) ratio were used to confirm the effect of dissolution of the outcrop of evaporative formations in the dam’s lake area on water quality.

Results and discussion

As given in Table 1, sodium cation has the highest mean in both times of sampling. Chloride anion has the highest average for both times of sampling. In addition, concentration of sulfate anion is high both times. These conditions demonstrate the effect of geological formation and especially dissolution of Gachsaran evaporative formation on water quality. The Piper diagram (Fig. 2) also confirms this result. Sodium and chlorine ions have the highest concentration for the first time of sampling compared to the second one, and all the downstream stations have Cl–Na type. At the second time, the downstream stations mostly have the Cl–Na or Cl–Ca types. The reverse ion exchange process is one of the factors that interfere with Na–Cl balance and cause Cl–Ca types. Because of its durability, chlorine ion preserves its high concentration. In comparison, sodium is replaced with calcium or magnesium using reverse ion exchange process, leading to a decrease in its concentration.

Table 1 Descriptive indexes of the studied parameters of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam
Fig. 2
figure 2

Type of the water sample of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam

Compound diagrams can be used to characterize the reverse ion exchange process (Fisher and Mullican 1997; Jankowski et al. 1998; McLean and Jankowski 2000; Kortatsi 2007; Zaidi et al. 2015). As shown in Fig. 3, this process has a very significant effect on the water quality of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam. The sulfate types are observed in a few stations, which are affected by the dissolution of Gachsaran Formation in the region. In the lake of the studied dam, the water shows the SO4–Ca and HCO3–Ca types for the first time of sampling and the Cl–Ca and SO4–Ca types for the second time. The dissolution of formations in the dam’s lake and basin and transfer of sodium ions of Halite dissolution to the depth due to the more density are the major causes of this condition.

Fig. 3
figure 3

Result of the reverse ion exchange diagrams for the Karun River in the lake and downstream of the Gotvand-e-Olya Dam

The Dendrogram for the first time of sampling, based on the nearest neighbor method, is presented in Fig. 4a. Because the pH, Mg, and CO3 parameters do not show similarity to other parameters, they were removed from the analysis. In this time of sampling, the SO4 and HCO3 parameters are put in one cluster at the fourth level, suggesting that the dissolution rate of carbonate rocks is higher and its value is closer to the dissolution of the Gypsum. The discrepancy of these two parameters at lower levels is affected by the difference in the solubility of these minerals and the effect climate processes on the HCO3 parameter. The Na, EC, and TDS parameters are put in the same cluster (Fig. 4b) and chlorine is added to this cluster at two levels, indicating the effect of the dissolution of evaporative rocks on water quality.

Fig. 4
figure 4

Dendrogram of the studied parameters of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam; a nearest neighbor method and b wards method (the first-time sampling)

At the second time of sampling, the pH and K parameters show the least similarity to other parameters and thus were eliminated from the cluster analysis (Fig. 5a). As shown in Fig. 5b, in the first level, the EC, TDS, and Na parameters are grouped together, while in the third level, the Cl parameter is added to this cluster. This clustering, like the first time of sampling, shows the effect of the dissolution of evaporative rocks on water quality. The dissimilarity of Na and Cl parameters at the first time is affected by the durability of chlorine ion and its non-participation in the ion exchange process (normal or inverse); meanwhile, sodium ion can play a role in this process. The Ca and SO4 parameters are grouped together at level 10 and form another cluster. This condition shows that the dissolution of gypsum and anhydrite is not the only source of calcium ion in the water such that the dissolution of calcareous formation and the reverse ion exchange process are the other sources. The Mg and HCO3 parameters are each in a separate cluster and grouped together at the other high levels with other parameters that have an unimportant similarity. Climate processes affect the dissimilarity of HCO3 parameter with other parameters, especially Ca and Mg parameters.

Fig. 5
figure 5

Dendrogram of the studied parameters of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam; a nearest neighbor method and b wards method (the second-time sampling)

As shown in Figs. 6a and 7a, station 25 and station 1 are different from the other stations for the first-time sampling and the second-time sampling, respectively, and thus were excluded from the analysis. The clustering of stations in both times is mainly influenced by their distance from the dam so that upstream stations are in a cluster, although there are also some exceptions (Figs. 6b, 7b).

Fig. 6
figure 6

Dendrogram of sampling stations in the lake and downstream of the Gotvand-e-Olya Dam; a nearest neighbor method and b wards method (the first-time sampling)

Fig. 7
figure 7

Dendrogram of sampling stations in the lake and downstream of the Gotvand-e-Olya Dam; a nearest neighbor method and b wards method (the second-time sampling)

Based on the results of the correlation matrix (Table 2), at the first-time sampling the pH, Mg, and CO3 parameters and at the second time the pH and K parameters were not significantly correlated (Sig. > 0.5) with other parameters and thus were eliminated from factor analysis. The values of the KMO and Bartlett statistics after the removal of non-dependent parameters confirm the suitability of the data for factor analysis (Table 3).

Table 2 Correlation coefficient results for factor analysis for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam
Table 3 Results of KMO and Bartlett test for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam

Based on the analysis of total variance (Table 4) for the data of the first time, two factors were extracted. These factors account 69 and 23% of the variance, respectively. In the first factor, the Na, Cl, Ca, TDS, and EC parameters have the highest load of factor influenced by the weathering of regional formation (Table 5). The second factor is related to the K, SO4, and HCO3 parameters. The increase in load factor of the HCO3 parameter and the presence of SO4 parameter in the second factor show the effect of atmospheric precipitations on water quality. The explanation for this result is that the increase in the dissolution of carbonate rocks, gypsum, and anhydrite is more intense for first-time sampling compared to the second time.

Table 4 Results of factor analysis for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam
Table 5 Rotated component matrix for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam

Results of the analysis of variance (Table 4) show that the studied parameters at the second-time sampling are summarized in only one factor, which accounts for about 82% of the total variance. This condition confirms that just one process controls almost all of the parameter changes and other processes are affected by it. Due to the conditions of the region, the weathering of rock units (carbonate and evaporative) is the major process in controlling water quality. The Cl, Na, Ca, and SO4 parameters have the highest load of factor, which shows the effect of dissolution of Gachsaran Formation on the water quality of the river. The factor load of the Mg and HCO3 parameters is in the second level of importance, which shows the effect of the dissolution of carbonate rocks. The TDS and EC parameters are also affected by the concentration of ions in the water. In the second factor, with about 9% of the total variance, the bicarbonate parameter is the only parameter that has high load of factor and can partly reflect the effect of the evaporation process on the water quality. Nevertheless, due to the specific value less than 1, this factor is not important as an effective factor (Table 5 and Figs. 8, 9).

Fig. 8
figure 8

Scree plot for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam

Fig. 9
figure 9

Plot of initial eigenvalues for studied parameters in the lake and downstream of the Gotvand-e-Olya Dam

The geological formations, which outcrop at the Karun basin, are sedimentary rocks, especially carbonate and evaporative formations. This formation has a great potential for erosion and dissolution by surface water and groundwater flows. These processes increase significantly the concentration of salts in the river. However, the outcrop of the problematic formations in the dam’s lake and the constant contact with water has a more pronounced effect than the salts in the input water of the upstream to the dam’s lake.

The results of different ionic ratios at both times of sampling clearly show the effect of dissolution of different formations, especially Gachsaran evaporative formation, on water quality (Fig. 10). Due to the layering of the dam’s lake caused by the difference of salinity from the surface to the depth, the quality of samples taken from the lake surface is not significantly affected by the dissolution of evaporative formations. The water outflow of the dam is not just from the surface of the lake and includes lower levels. Therefore, the salt concentration in the downstream samples is higher than in the lake-surface samples. Another important point is the difference in salt concentration at both sampling times. At the second-time sampling, which coincides with the peak of hot season in the region, water quality in the dam’s lake is reduced by the increase in evaporation. On the other hand, because of an increase in rainfall and a decrease in evaporation in the wet season, water quality is expected to improve. However, in downstream, the first-time samples have higher solute concentrations and therefore lower quality than the second-time sampling. These conditions are affected by the increase in dam output that occurs during the wet season, leading to water drainage from a lower depth of lake. The first time of sampling coincides with the wet season in the region. It is of note that due to an increase in solubility of different formations, an increase in precipitation level may also increase the salt concentration and decrease water quality.

Fig. 10
figure 10

Results of TDS and Cl/(HCO3 + CO3) ratio to evaluate the chemistry of the Karun River in the lake and downstream of the Gotvand-e-Olya Dam

Conclusion

The order of the main parameters in the studied samples is Cl > SO4 > HCO3 and Na > Ca > Mg. Hence, the water in the downstream stations at the first-time sampling its shows Cl–Na while for the second-time sampling shows Cl–Na or Cl–Ca type. The reverse ion exchange process is one of the factors that interfere with Na–Cl balance and cause the type of water of Cl–Ca. The ion exchange diagrams confirm this process. At the lake of the dam, the water types of the first-time sampling are the SO4–Ca and HCO3–Ca and at the second-time sampling they are SO4–Ca and HCO3–Ca types. These conditions are affected by the dissolution of the formations at the basin and dam. Another important factor in these conditions is the transmission of sodium ions resulting from the dissolution of halite to the depth because of the higher density.

The results of the cluster analysis show that the EC, TDS, and Na parameters and with a slight difference the Cl parameter are grouped in one cluster, suggesting the effect of the dissolution of evaporative formations on water quality. The dissimilarity of Na and Cl parameters in the first level is due to the durability of ion chloride and its non-participation in the ion exchange process. At level 10, the Ca and SO4 parameters are grouped together. This clustering shows that the dissolution of gypsum and anhydrite is not the only source of calcium in the river and the dissolution of calcareous formation and the reverse ion exchange are the other sources of calcium ions. At the first-time sampling, SO4 and HCO3 parameters are grouped at level 4, indicating an increase in the dissolution rate of carbonate and approaching its value to the dissolution of gypsum and anhydrite. The clustering of the stations in both times is affected by their distance from the dam, so that upstream stations are located in only one cluster.

Based on the results of the factor analysis for the first-time sampling, two factors were extracted. The first factor, which includes being Na, Cl, Ca, TDS, and EC parameters, is affected by the weathering of the regional formations. The second factor, which includes SO4 and HCO3, shows the effect of atmospheric precipitations on water quality because of the increased dissolution of carbonate formations, gypsum, and anhydrite. At the second-time sampling, the weathering process controls almost all the changes in the parameters studied and other processes are affected by it. The Cl, Na, Ca, and SO4 parameters have the highest factor load and confirm the effect of dissolution of Gachsaran Formation on river water quality. The factor load of Mg and HCO3 is in the second rank of importance, indicating the effect of the dissolution of carbonate formations.

As for the geological location of Gotvand-e-Olya Dam and its lake, the weathering process in the form of dissolution of rocks is the most important factor in controlling water quality and other natural factors are important at the next degree. The results of ionic ratios also confirm the effect of the dissolution of geological formations on water quality. However, the volume of water outflow from the dam has a significant impact on the water quality downstream.