Introduction

The increased exploitation of groundwater resources throughout the world especially in arid and semi-arid regions causes water quality deterioration and contamination (Aly et al. 2016). The Kingdom of Saudi Arabia (KSA), located in arid region, is currently suffering from limited renewable water resources (Aly et al. 2015a, b). The groundwater in KSA is considered the main source for irrigation. In last three decades, the groundwater is subjected to over exploitation reaching 17 billion m3 year−1, and deterioration (Al-Omran et al. 2016). The increase demand of water for agricultural production has forced farmers to use unconventional water resources, i.e., treated municipal wastewater, to overcome their water need (Al-Omran et al. 2004, 2016). The groundwater spatial variability in KSA requires further investigations to allow better management and conservation (Al-Omran et al. 2016). Al-Kharj, located east of Riyadh city in KSA, is an agroecosystem depend mostly on groundwater as a main source of drinking and irrigation purposes. Like other agroecosystem in KSA, the Al-Kharj agriculture areas have been deteriorated rapidly due to groundwater salinization (Aly et al. 2016). A good understanding of hydrochemical processes that govern groundwater quality is required for the sustainable management of the groundwater resources (Ledesma-Ruiz et al. 2015; El-Sayed et al. 2012). The estimation of soluble ions concentration in groundwater are much more time consuming. Therefore, it is necessary to find a simple approach can predict spatial distribution of ions and contaminant throughout certain area. Classical statistics, which assumes completely independent measurements, was found unsuitable for capturing and describing spatial variability of soil and groundwater quality (Cemek et al. 2007). However, the geostatistics, a rapidly evolving branch of applied statistics and mathematics that offers a collection of tools, has been utilized extensively to illustrate the spatial variability in many fields. Several studies have been carried out to investigate the spatial variability of groundwater quality (Adhikary et al. 2012; Narany et al. 2015; Mahato et al. 2016; Singh et al. 2013). In recent year, the geostatistics and GIS techniques are very common practices to assess the groundwater, surface, and mine water quality and spatial variability (Khashei-Siuki and Sarbazi 2015; Tiwari et al. 2015, 2016a, b). The evaluating of spatial correlation of water quality variables is an important tool through the vairograms and kriging (Al-Omran et al. 2004). The geostatistics provides a set of statistical tools for incorporation the spatial and temporal coordinates of observations in data processing, allowing for description and modeling of spatial patterns, prediction at non sampled locations, and assessment of uncertainty attached to these predictions (Webster and Burgess 1980; Burgess et al. 1981). Geostatistical methods have become popular since 1980s; nevertheless, there is a shortage in information and knowledge concerning groundwater variability in KSA. The factorial kriging analysis is a variant of kriging that aims to estimate and map different sources of spatial variability determined from the experimental variograms (Goovaerts 1992, 1998). This multivariate geostatistical technique allows description of the spatial relationships as well as separating the sources of variation according to the spatial scales at which they operate (Imrie et al. 2008; McBratney and Webster 1983; Vaezil et al. 2010). Kumar and Remadevi (2006) have compared various models of variogram such as spherical, exponential, and Gaussian to identify the spatial variation of groundwater in Rajasthan, India. Marko et al. (2013) reported in their study of Wadi Usfan in the western region of Saudi Arabia that most of groundwater is not suitable for drinking purposes. Narany et al. (2015) reported that the groundwater quality of Amol-Bahol plain, Iran that maps generated by ordinary kriging of EC, SAR, Na% indicated an increasing trend of concentration from western and southern areas to the east and north-east of the plain. The maps show groundwater quality gradually decreases from west and south sides to the north-eastern side. Nas (2009) reported on his study of 156 wells in Konya, Turkey with an area of 427.5 km2, that the ordinary kriging method used in groundwater parameters such as EC, Cl, SO4 2− showed higher concentration in northeast part of the study area. The main objective of this study was to investigate the spatial variability of 180 groundwaters in Al-Kharj, Saudi Arabia, by using geostatistical and GIS tools.

Materials and methods

Study area

Al-Kharj is a productive agro-ecosystem set in a desert depression and is irrigated by waters from natural springs and dug wells. The region produces date palms, other fruits (e.g., grapes), and vegetables (e.g., lettuce, carrots, tomatoes, cucumbers, and melons). Al-Kharj is a fragile dryland agro-ecosystem that has a low degree of resilience to external stresses and a low carrying capacity, i.e., a limited potential for the expansion of economic activities and population. The Al-Kharj governorate, located at 24°8′54″N, 47°18′18″E, lies in a broad low area (wadi) in the center of the Kingdom of Saudi Arabia, 80 km from Riyadh, the capital of the kingdom. The term ‘Al-Kharj’ refers to a number of small towns. The two largest towns are Dilam and Asseeh, and the smaller towns in the region include Al-Hayathim, Yamamah, and Sulamiyya. In addition to these towns, the area has many smaller hamlets and villages. The climate of Al-Kharj is characterized by hot and dry summers with daytime temperatures range between 45 and 48 °C; on the other hand, the winter daytime temperatures range between 20 and 25 °C; in contrast, the winter nights are cold with average temperature of −2 and 5 °C. The average precipitation during winter is 51 mm; however, no rainfall in summer is recorded (Aly et al. 2016).

Hydrogeology

The Primary origin aquifers in study area include the quaternary sands of the wadi systems which are quartzose sandstones, and conglomerates with primary porosity; and calcarenites, coquinites and oolitic limestone with secondary porosity (Vincent 2008). In Al-Kharj, the floods of many wadis (valleys), such as Wadi Hanifa, discharge water into Wadi Al-Kharj. The Al-Kharj ecosystem contains several springs, called Oyun or Asiah, and is considered to be one of the richest locations in the kingdom with respect to water resources; since ancient times (Vincent 2008).

Sample collection and analyses

In this study, groundwater samples were collected from 180 different locations in the Al-Kharj region of the KSA, in an attempt to capture the spatial variations in groundwater quality in the study area (Fig. 1). All samples were stored in the dark at room temperature. The samples were analyzed for EC, pH, Ca2+, Mg2+, Na+, K+, HCO3 , Cl, SO4 2−, and NO3 . The EC was measured by using an EC meter in units of dS m−1 at 25 °C (Test kit Model 1500_20 Cole and Parmer). The water reaction (pH) was determined using a pH meter (pH meter—CG 817). The soluble Ca2+ and Mg2+ were determined by versenate titration method (EDTA); however, the soluble Na+ and K+ concentrations were determined using flame photometer (Corning 400) (Matiti 2004). The HCO3 concentration was determined by titration with sulfuric acid (H2SO4), whereas the Cl concentration was determined by titration with silver nitrate (AgNO3) (Matiti 2004). The sulfate (SO4 2−) concentration was determined by the turbidity method (Tabatabai 1996), and the nitrate (NO3 ) concentration was determined by the phenoldisulfonic acid method (APHA 1998). The boron (B) was determined by using azomethine-H method (Bingham 1982).

Fig. 1
figure 1

Location of the study area

Ion balance errors

The correctness of the chemical analysis was verified by calculating ion balance errors; furthermore, standard solutions and blanks were commonly run to check for possible errors in the analytical procedures. The level of error in the data was calculated using the following formula (Appelo and Postma 1996):

$${\text{Error}}\;{\text{of}}\;{\text{ion}}\;{\text{balance}} = \frac{{\sum {{\text{cations}} - \sum {\text{anions}} } }}{{\sum {{\text{cations}} + \sum {\text{anions}} } }} \times 100$$
(1)

An error of up to ±3% is tolerable, while every water sample with a calculated error outside this range should be measured again. Approximately 95% of the measured water samples were within this range. This means that the resultant data quality is sufficient for chemical modeling and/or for drawing simple conclusions about water quality.

Data analyses

A classical statistics, with mean, variance and coefficient of variation (CV), range etc., were computed for each soil properties with the assumption that the data are spatially independent. Finally, descriptive statistics (range, median, SD, max, min, etc.…) were calculated using Manugistic Inc. (2000). Also a geostatistical software (GS+ 9.1, 2005) was used to construct semivariograms and spatial structure analysis for the data. The theory of geostatistics and its application in soil science has been described in details by Trangmar et al. (1985) and Webster and Oliver (2001). A semivariogram display the change in the semivariance between soil samples as the distance between them increases. The semivariance function γ(h) at a given lag (h) is estimated using the following equation (Trangmar et al. 1985):

$$\gamma (h) = \frac{1}{2N(k)}\sum\limits_{i = 1}^{N(h)} {[z(x_{i} ) - z(x_{i} + h)]^{2} }$$
(2)

where: γ(h) = semi variance, Z = regionalized variable (i.e. soil property), Z (x i ) = measured sample at point x i , Z (x i h) = measured sample at point (x i  + h), N(h) = number of pairs separated by distance or lag h.

The kriging estimate can be expressed as:

$$Z(X_{o} ) = \sum\limits_{i = 1}^{n} {\lambda_{i} Z(X_{i} )}$$
(3)

where: Z (X o ) = estimate of unknown true value, λ i  = weighted coefficient, n = number of neighboring observation used in kriging.

The kriged values were then used to produce maps for each groundwater properties.

Hydrochemical characteristics

The hydrochemical characterizations of the groundwater samples were evaluated by using the Piper (Piper 1944) and Gibbs (Gibbs 1970) diagrams. In addition, salinity hazard, sodium adsorption ratio (SAR), Kelly’s ratio (KR), residual sodium carbonate (RSC), and magnesium hazard (MH) were calculated to investigate the groundwater suitability for irrigation uses.

  • The sodium adsorption ratio is computed as:

    $${\text{SAR}} = \frac{\text{Na}}{{\sqrt {\frac{{{\text{Ca}} + {\text{Mg}}}}{2}} }}$$
    (4)

    where the ionic concentration is in meq L−1.

  • The Kelly’s ratio is computed as:

    $${\text{KR}} = \frac{\text{Na}}{{{\text{Ca}} + {\text{Mg}}}}$$
    (5)

    where the ionic concentrations are in meq L−1.

  • Residual Sodium Carbonate (RSC) is as:

    $${\text{RSC}} = \left( {{\text{CO}}_{3}^{ - } + {\text{HCO}}_{3}^{ - } } \right) \, - \, \left( {{\text{Ca}}^{2 + } + {\text{Mg}}^{2 + } } \right)$$
    (6)

    where the ions are expressed in meq L−1.

  • Magnesium Hazard (MH) was calculated on the basis of the following equation (Szabolcs and Darab, 1964):

    $${\rm MH}=\frac{{\rm Mg}}{{{\rm Ca} + {\rm Mg}}} \times 100$$
    (7)

    where the ions are expressed in meq L−1.

Results and discussion

Hydro-geochemistry of groundwater

The chemical data of the groundwater samples were plotted on a Piper trilinear (Piper 1944) diagram (Fig. 2). The piper diagrams provide a convenient method to classify water types collected from different groundwater resources, based on the ionic composition of different water samples (Al-Omran et al. 2012). The piper diagram reveals that the majority of Al-Kharj groundwater is calcium–magnesium/sulfate–chloride water types. It also may be seen that there is a predominance of sodium and magnesium/calcium which influences the tendencies towards the chloride/sulfate–sodium/magnesium and calcium facies (Al-Omran et al. 2016).

Fig. 2
figure 2

Piper diagram

Gibbs’s diagrams, representing the ratios of Na+ + K+: (Na+ + Ca2+ + Mg2+) and Cl: (Cl) + HCO3 ) as a function of TDS, are widely employed to assess the functional sources of dissolved chemical constituents, such as precipitation-dominance, rock-dominance and evaporation-dominance (Gibbs 1970). The Chemical data of groundwater sample points of the studied area are plotted in Gibbs’s diagrams (Fig. 3). The distribution of sample points suggests that the chemical weathering of rock-forming minerals and evaporation are influencing the groundwater quality. Evaporation increases salinity by increasing Na+ and Cl with relation to increase of TDS. The rock domain suggests that rock–water interaction is the major source of dissolved ions over the control of groundwater chemistry. The rock–water interaction process includes the chemical weathering of rocks, dissolution–precipitation of secondary carbonates and ion exchange between water and clay minerals. The evaporation greatly increases the concentrations of ions formed by chemical weathering, leading to higher salinity. The moving of groundwater sampling points in the Gibbs field towards the evaporation domain from the rock domain suggests an increase of Na+ and Cl ions and consequent higher TDS due to water contamination, caused by the influences of poor sanitary conditions, agricultural fertilizers, and irrigation-return flows (Kumar et al. 2014).

Fig. 3
figure 3

Diagram depicting the mechanism controlling groundwater quality

Interpolation using geostatistical software

A Geostatistical software (GS+ 9.1) was used to construct semivariograms and spatial structure analysis for the studied groundwater data. The EC and NO3 frequency and their spherical isotropic semivariograms are shown in Figs. 4, 5 and 6. The Variance ratio, structural variance as related to sill, and r 2 are presented in Table 2. The results indicated that 57.353% of EC variations are due to structural variance of spatial variability of the EC and the random variance accounted to 42.647. However, 98.309% of NO3 variations are due to structural variance of spatial variability of the NO3 , while the random variance was only 1.691. The spherical model was the best variogram to fit the present data. The variogram model is useful in predicting the values of the groundwater parameter for un-sampled locations. The results showed that the effective range was 0.08 and 51.10 m for EC and NO3 , respectively. This mean that the least distance of groundwater EC and NO3 sampling are 0.8 and 51.10 m, respectively (Table 2), due to homogeneity within these distance (Utset and Castellanos 1999).

Fig. 4
figure 4

EC and NO3 frequency

Fig. 5
figure 5

Isotropic semivariograms of groundwater EC of 180 points

Fig. 6
figure 6

Isotropic semivariograms of groundwater NO3 of 180 points

Comparing interpolation using GS+ and GIS

In this study, the coordinates of the groundwater samples were recorded by GPS with an accuracy of ~5 m. The GPS signal is corrected by a radio signal in real time. The locations of the groundwater salinity were configured as a comma-delimited text file (in the form of groundwater no, easting, and northing). The point data was overlaid on a satellite image by Arc GIS 9.3 software (ESRI 2010). The kriging interpolation using geostatistical method for EC was carried out using kriging interpolation tool of geostatistical analyst of ArcGIS 9.3 and geostatistical software of GS+ 9.1. Figures 7, 8 and 9 concluded that the groundwater in western part of studied ecosystem is considered highly saline since its salinity almost more than 4.75 and 6 dS m−1 for interpolation using GS+ and ArcGIS, respectively. Furthermore, both interpolation methods illustrate that the eastern part of AlKharj contains groundwater of higher quality than western part since its EC around 2 dS m−1. These finding is in agreement with the finding of Aly et al. (2016). This study suggest that using the interpolation methods of geostatistical software (GS+ 9.1) and ArcGIS 9.3 are efficient in groundwater quality prediction of un-sampled sites and give almost same results (R 2 = 94%) (Foroughifara et al. 2013; Delbari et al. 2013).

Fig. 7
figure 7

Interpolation of groundwater EC using GS+

Fig. 8
figure 8

EC (dS m−1) simulated 3D Map (distance (km) and coordinates (°)) using GS+

Fig. 9
figure 9

Interpolation of groundwater EC using Arc-GIS

Water quality evaluation for drinking and domestic purposes

The statistical analysis of the Al-Kharj groundwater was carried out to identify the suitability of the water for drinking purposes using the standard of WHO (2011) (Table 1). It was recorded that the mean, median, and maximum values of the EC, Cl, and SO4 exceeded the acceptable limits of the used standard (Al-Omran et al. 2016) (Table 1, Fig. 2). Furthermore, 8 and 61% of studied water samples were exceeded the permissible limits for NO3 and B, respectively (Table 1). The main reason of high NO3 concentrations in some groundwaters is the over application of fertilizer on surrounding agricultural land (Al-hadithi 2012; Aly et al. 2015b).

Table 1 Descriptive statistics of Al-Kharj groundwater chemical composition (n = 180)

Water quality evaluation

The statistical analysis revealed that the groundwater samples pH ranged between 6.78 and 8.6 with an average of 7.72 (Table 1). This means that the waters were suitable for irrigation with respect pH. On the other hand, the waters salinity (EC) ranged between 1.05 and 10.15 dS m−1 with an average of 3.00 dS m−1 (Table 1, Fig. 4). This illustrate that this waters can be used for irrigation of high salinity tolerance crops (Ayers and Westcot 1985). The excessive sodium content in water sample reduces the permeability, and hence, the available water for the plant is reduced. Sodium replacing adsorbed calcium and magnesium is a hazard, as it causes damage to the soil structure resulting in compact and impervious soil (Arveti et al. 2011). Excess absorption of sodium can cause sodium toxicity in sensitive plants, causing marginal leaf burn on older foliage and possibly defoliation and water containing excessive amount of sodium may immobilize other nutrient ions particularly calcium, magnesium and potassium, which can result in deficiencies of these elements in plants (Sharifi and Safari Sinegani 2012). One of the most important criteria in determining sodium hazard is sodium adsorption ratio (SAR) (Todd and Mays 2005). The SAR values of the groundwater samples varied from 1.08 to 9.14 with an average value of 3.74. All SAR values of the water samples were less than 10 and are classified as excellent for irrigation (Richards 1954). Kelly (1940) has also determined the hazardous effect of sodium on water quality for irrigation usage in terms of Kelly’s ratio (KR). A Kelly’s ratio of more than one indicates excessive sodium in water. Therefore, water with a Kelly’s ratio less than one is considered suitable for irrigation; on the other hand, the ratios more than one are unsuitable. The Kelly’s ratios of studied waters were ranged between 0.2 and 2.3 with an average value of 0.7 (Table 1). About 93.3% of the studied waters were considered suitable for irrigation since Kelly’s ratio less than one (Ayers and Westcot 1985). The USSL diagram (Richards 1954) described three salinity classes for Al-Kharj groundwater (Fig. 10). 40% of studied waters fall in C3–S1, 42% in C4–S1, and the remaining in C4–S2 representing high to very high salinity hazards with low to medium sodium hazards, respectively (Fig. 10). The high salinity is considered a main problems when using groundwater for irrigation in study area. These waters cannot be used for irrigation of sensitive crops for salinity; however, can be used for salinity tolerant crops (Aly et al. 2016) (Table 2).

Fig. 10
figure 10

Salinity classification of Al-Kharj groundwater

Table 2 Isotropic semivariance analysis of NO3 at 180 sites

Residual sodium carbonate (RSC) is also calculated in this study. A negative RSC means that sodium buildup is unlikely since sufficient calcium and magnesium are in excess of what can be precipitated as carbonates. A positive RSC indicates that sodium buildup in the soil is possible. The zero RSC means no sodium hazard anticipated; however, RSC = 0–1.25, 1.25–2.50, and >2.50 mean low, medium and high sodium hazardous, respectively. All studied water samples RSC below zero which mean that there is no hazardous of sodium due to using these type of water (Table 1) (Eaton 1950).

Magnesium Hazard (MH) was calculated on the basis of Eq. (7). Magnesium present in water would adversely affect the soil quality (Venugopal et al. 2009). If magnesium hazard was less than 50, the water can considered safe and suitable for irrigation (Szabolcs and Darab 1964). 86% of studied water samples had MH < 50, it suitable for irrigation. However, remaining samples had MH ranged between 51 and 62 (Table 1). No harmful effect of these waters due to boron toxicity with exception 11.1% of studied water samples contain B more than 1 mg L−1 (Table 1). The NO3 in studied area ranged between 0.00 and 111.5 mg L−1 with an average of 14.7 mg L−1. The NO3 concentrations increased dramatically to reach 111 mg L−1 in two sites due to the use of NO3 fertilizers in these agriculture area (Tiwari and Singh 2014) (Table 1, Fig. 4).

Conclusion

The Al-Kharj groundwaters chemical analysis revealed that the waters salinity (EC) ranged between 1.05 and 10.15 dS m−1 with an average of 3.00 dS m−1. This illustrate that this waters are unsuitable for drinking; however, they can be used only for irrigation of high salinity tolerant crops. Some groundwater found contaminated with nitrate; yet, no harmful effect with respect to boron toxicity when use these waters for irrigation. The SAR, Kelly’s ratio, RSC, and MH concluded that there are no sodium or magnesium hazard are anticipated. The USSL (1954) diagram described three salinity classes; C3–S1, C4–S1, and C4–S2 representing high to very high salinity hazards with low to medium sodium hazards, respectively. The high salinity is considered main problems when use these groundwaters for irrigation. The main reasons of the groundwaters deterioration in the study area are the overexploitation of groundwater by large agriculture investment companies and the intensive use of nitrogen fertilizers. Many sane use of saline irrigation water are currently in use, including cyclic strategy (saline and non-saline water in a repeating sequence), blending strategy (dilution process), rotation strategy (low-salinity water for salt sensitive crops in a rotation with saline water for salt-tolerant crops), and planting salt tolerant crop varieties or genotypes/cultivars. Kriging can be considered as an appropriate technique for illustrating the distribution of EC and NO3 in groundwaters. The Kriged maps can facilitate the better groundwater management. Preparation of such kinds of maps before setting up strategies could be helpful in devising ways for making sustainable ecosystem management. Kriging interpolation of the groundwater’s EC using geostatistical analyst of ArcGIS 9.3 and geostatistical software (GS+ 9.1) concluded that the groundwater in western part of AlKharj is considered highly saline since its salinity almost more than 4.75 and 6.00 dS m−1 when make interpolation using GS+ and ArcGIS, respectively. Furthermore, both interpolation methods illustrate that the eastern part of AlKharj contains groundwater of higher quality than western area. This study recommend that using the interpolation methods of geostatistical software (GS+ 9.1) and ArcGIS 9.3 are efficient in groundwater quality prediction of un-sampled sites and give almost same results (R 2 = 94%).