Introduction

In recent centuries, researchers have paid special attention to rainwater composition studies since knowledge of rainwater chemical composition provides data on rainwater chemistry sources and local and regional dispersion of contaminants (Budhavant et al. 2011; Kumar et al. 2002; Momin et al. 2005; Rao et al. 2016; Saxena et al. 1996; Szép et al. 2019). Rainwater’s chemical composition varies from place to place, from shower to shower, and even from season to season at the same location. This has drawn special attention to precipitation chemistry around the world (Huang et al. 2010; Willey et al. 2006). Owing to urbanization and industrialization in the world, emissions of sulfur, nitrogen oxides, and trace elements have recently increased, thereby disrupting the normal acid–base balance of the atmosphere. As a result, acid rain and atmospheric deposition of trace elements pollute natural resources such as soil and surface water.

Trace elements can easily adsorb on mineral surfaces, and thus, they can be dispersed over large distances (Başak and Alagha 2004; Gao et al. 2016). The trace elements can be transported for long distances by attaching to aerosol and then be inputted into the ecosystem as a function of meteorological change by dry and wet deposition (Gao et al. 2016). Besides, the use of water by animals and plants contributes to the accumulation of trace elements in the food chain and, thus, acid rain containing a high concentration of trace elements presents a significant threat to natural resources and human health. The sources of sulfate (SO42−) ions in rainwater are the combustion of fuels containing sulfur, shallow-water marine environments, fresh-water lakes, salt flats, and ocean waters, while the source of nitrogen oxides is the combustion of fossil fuels. Various ranges of SO42− concentration have been reported by researchers. Nadzir et al. (2017) reported the concentrations of SO42− between 0.51 and 4.23 mg L−1 in Bangi of Malaysia. Although considerable increases in human-made acid oxide have been recorded in some areas, neutralizing compounds such as calcium carbonate and ammonia neutralize the acid rain (Norman et al. 2001; Tang et al. 2005). For example, in the arid and semi-arid regions, soil particles, as an important atmospheric constituent with a high concentration of alkaline salts, are adsorbed by rainwater. So it appears that soil properties influence the chemical composition and pH of precipitation (Niu et al. 2014).

Xu et al. (2015) studied the chemical composition of Beijing rainwater samples in northern China and Chizhou in southern China. They reported that the high concentrations of alkaline ions play an important role in the neutralization of rainwater acidity in Beijing. Wu et al. (2016) studied the effect of terrestrial sources on the chemical composition of rainwater in China. They found that more than 60% of the samples had a pH value higher than 6.0, and calcium (Ca2+) was the most dominant neutralization substance. Calvo et al. (2010) analyzed rainwater samples in Viznar, Spain. They reported that Ca2+, SO42−, and chloride (Cl) were dominant ions. Kumar et al. (2002) conceived a long-term study to explore rainwater’s chemical composition and the impact of dust on acid rain neutralization. Santos et al. (2011) compared the composition of rainwater in 2008–2009 with those obtained at the same site between 1986 and 1989. They reported an increase in nitrate (NO3) due to industrialization.

In developing countries, there are many drawbacks to assess rainwater quality, including data quality, accuracy, and accessibility. There is insufficient regional information on air quality and small stations in rural sites. On the other hand, air quality is impacted by building works such as site planning, foundation works, road construction, and maintenance in the evaluation of urban pollution impacts in so-called rural sites. Although some researchers reported useful information on the chemical composition of rainwater in the world, the chemical composition of rainwater in Iran, a vast country with different climates, is rarely studied and is not available in the west of Iran. Thus, in this paper, for the first time, the chemical composition of rainwater was determined at three different areas in Hamedan province, west of Iran. This study aims to: (1) investigate the chemical composition of major and trace elements (2) identify possible sources that contribute to its chemical composition, and (3) compare rainwater composition between urban and rural areas.

Material and methods

Site description

Three sampling sites (Hamedan, Nematabad, and Kushkabad) were selected. These sites are located in three different areas in the Hamedan province in Iran (Fig. 1). Nematabad dam is located about 12 km northwest of Asadabad city in Hamedan province. It has an area of 161 km2 and 500 inhabitants. The annual average temperature and precipitation are 7.9 °C and 457 mm, respectively. Kushkabad is located in Bahar County, Hamadan Province, Iran. It has an area of 4500 km2 and 1620 inhabitants. The annual average temperature and precipitation are, respectively, 11.5 °C and 320 mm. Hamedan has an area of 19,368 km2 and 554,406 inhabitants. The average annual temperature and precipitation are, respectively, 3 °C and 339 mm. These regions have cold winter and dry summer. Precipitation occurs during the spring, autumn, and winter seasons. Snow is the winter’s form of precipitation. Nematabad and Kushkabad regions are appropriate for farming operations, while industrialization has been raised beside the use of private vehicles in Hamedan, and fossil fuels are dominant sources of energy in these areas. Rainwater samples were collected manually using polyethylene which was cleaned with hydrochloric acid then prewashed with distilled water, from January to April 2014. The electrical conductivity (EC) and pH of rainwater samples were measured immediately (after 10 min) after collection with the help of a pH meter (WTW-2029 pH meter) and conductivity meter (Milwaukee MW302), respectively. Samples were divided into two subsamples. One of them was used for acid-bearing ions determination, and another was acidified and sorted into the refrigerator for major ions and trace elements. Major anions including SO42− and NO3 were determined by spectrophotometry method using a Jenway 6105 spectrophotometer. Phosphorous (P) was analyzed by the (Murphy and Riley 1962) method. The titration technique was employed for measuring bicarbonate (HCO3), Cl, Ca2+, and magnesium (Mg2+). Sodium (Na+) and potassium (K+) were determined by the flame photometry method. Additionally, cadmium (Cd), iron (Fe), manganese (Mn), nickel (Ni), and zinc (Zn) were measured in rainwater samples using atomic absorption spectrophotometry. The blank sample from the laboratory was analyzed along with the rainwater samples. For the blank sample, double-distilled deionized water was used.

Fig. 1
figure 1

The location of rainwater sampling stations in Hamedan province, west of Iran

Data quality

A total number of 23 events occurred at three sites during the study period. The following equation was used to calculate the volume-weighted mean (VWM) concentrations of measured chemical species in rainwater samples.

$$\text{VWM}=\sum_{i=1}^{N}\frac{CiPi}{Pi}$$
$$ X_{{{\text{VWM}}}} = \, \left( {X_{{1}} P_{{1}} + \, X_{{2}} P_{{2}} + \, \ldots \ldots \, + \, X_{n} P_{n} } \right)/\left( {P_{{1}} + P_{{2}} + \ldots \ldots + P_{n} } \right) $$

where Pi is the amount of rainwater (mm) for each occurrence relating to the ith sample, Xi is the species concentration (meq L−1), and n is the total number of events of rainfall (Sequeira and Lai 1998).

The ionic balance was used to assign the data quality. The equivalent ratio of total anions to that of cations in an individual sample was considered to be an indication of the validity of the key measured ions, and the percent error should be within ± 5% (Gobre et al. 2010). The results of the rainwater sample percentage difference values are shown in Table S1 (supplementary information).

$$ \% {\text{difference}} = \, \left[ {\sum {{\text{cations}}} - \sum {{\text{anions}}} } \right]/\left[ { \, \sum {{\text{cations}}} + \sum {{\text{anions}}} } \right]*{1}00$$

Acid neutralization capacity

The acid neutralization capacity is evaluated by neutralization factors (NF) (Kulshrestha et al. 1996) and calculated by the following equation:

$${\text{NF}}_{\text{x}}= \frac{X}{({\text{SO}}_{4}^{2-}+ {\text{NO}}_{3}^{-})}$$

where X is the concentration of alkaline cations, all concentrations are expressed in meq L−1. In hydrogeochemical studies, numerous diagrams have been used to explain water chemistry, including the Piper diagram, Gibbs diagrams, USSL diagram, Wilcox diagram, and PI classification diagram. In this research, the piper diagram is used based on dominant ions to categorize water chemistry. In the Piper diagram, the groundwater samples are plotted according to the milliequivalent percentages in the samples of the eight typical major ions (He and Li 2020; Piper 1944). Several Piper diagram drawing applications are available, including AquChem, Origin, Grapher, etc. We used the Piper plot-QW. XLS developed by the US Geological Survey to draw the piper diagram.

Enrichment factor (EF) with marine and crustal contributions

The relative contribution of seawater source can be determined by calculating seawater enrichment factors (EFseawater), which are determined by the chemical composition of rainwater (Cao et al. 2009). Among major ions, Na+ is chosen as the reference element because its origin is from seawater. This parameter was assessed by comparing the ratio of significant ions to Na+ cation in rainwater with the proportion of significant ions to Na+ in seawater (Keene et al. 1986):

$$ {\text{EF}} = {\text{~}}\frac{{\left( {{\raise0.7ex\hbox{$X$} \!\mathord{\left/ {\vphantom {X {{\text{Na}}}}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${{\text{Na}}}$}}} \right)_{{{\text{rain}}}} }}{{\left( {{\raise0.7ex\hbox{$X$} \!\mathord{\left/ {\vphantom {X {{\text{Na}}}}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${{\text{Na}}}$}}} \right)_{{{\text{seawater}}}} }},$$

X is the interest ion concentration. Relative to the reference source, an EFseawater value much higher than 1 or much less than 1 is known to be enriched or diluted (Wu et al. 2016). Sea salt fraction (SSF) and non-sea water fractions (NSSF) are calculated to determine the rainwater chemistry percentage of the sea and non-sea sources:

$$\text{\% SSF}= \frac{100 \left(\text{Na}\right)\left[{\left(\frac{X}{\text{Na}}\right)}_{\text{sea}}\right]}{X}$$
$$ \% {\text{ NSSF }} = { 1}00 \, {-}{\text{ SSF}} $$

where X is the interest component.

Crustal enrichment factors (EFcrust), the ratio of the element to reference element in crustal material, were calculated to evaluate the contribution of the lithosphere on rainwater chemistry using the following equation. Among components, aluminum (Al), Fe, and Ca2+ in the earth's crust are abundant (Mason 1966). Any of these components can, therefore, be used as a reference item. Calcium was regarded as a reference component in this research:

$$ {\text{EF}}_{{{\text{crust}}}} = \frac{{\left( {{\raise0.7ex\hbox{$X$} \!\mathord{\left/ {\vphantom {X {{\text{Ca}}}}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${{\text{Ca}}}$}}} \right)_{{{\text{rain}}}} }}{{\left( {{\raise0.7ex\hbox{$X$} \!\mathord{\left/ {\vphantom {X {{\text{Ca}}}}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${{\text{Ca}}}$}}} \right)_{{{\text{crust}}}} }}$$

where X is the component of interest, (X/Ca)rain is the ratio of the concentration of an element X and Ca2+ in the rainwater sample, and (X/Ca)crust is the ratio of the same element and Ca2+ from the crustal composition. The EFc’s were calculated by using average concentrations from crustal elements from Mason (1966) and the VWM concentrations of measured elements in rainwater samples.

An EFcrust < 1 indicates that an element in rainwater has a substantial crustal origin, and EFcrust greater than 1 in rainwater samples represents that a substantial percentage of an element has an anthropogenic origin and demonstrates that components are enriched (Chester et al. 1999). An EFcrust value close to unity shows the crustal is only sources (Igbinosa and Aighewi 2017).

Correlation and cluster analysis

The correlation analysis is a valuable way to find out the origin of ions in the rainwater samples. In this study, using the SPSS software, Pearson correlation analysis was performed. Cluster analysis was used to interpret results and to find the similarities between different measured parameters (Li et al. 2019; Wu et al. 2020) using Minitab software. Single linkage and correlation coefficient distances were used. All mathematical and statistical calculations were carried out using SPSS software.

Backward trajectory

One-day (24 h) back trajectories of each rainfall event were computed using the web HYSPLIT model (https:/ready.arl.noaa.gov/HYSPLITtraj.php) to explore the possible effect of air mass transport on rainwater chemistry and to classify the potential source regions of elements and their transport pathways in the study locations. In this work, the trajectories were determined using the meteorological data of the GDAS (Global Data Assimilation System) with a one-degree archive conducted on the READY web interface by the National Center for Environmental Prediction (NCEP). All the trajectories are started from 500 m above ground level (AGL) over the sampling site.

Results and discussion

pH and electrical conductivity of rainwater

Table 1 presents the descriptive statistical compositions of the rainwater samples. The pH values for individual precipitation occurrences ranged from 5.30 to 7.50 for Hamedan with a volume-weighted mean (VWM) of 6.38, from 6.70 to 7.60 with a VWM of 7.17 for Kushkabad, and from 6.50 to 7.60 with a VWM of 7.01 for Nematabad, respectively (Table 1). Hamedan is urban, while Kushkabad and Nematabad are rural sites. Rainwater verified with a pH equal to 5.6 is called normal pH because carbon dioxide (CO2) reacts with water and a weak carbonic acid is formed (Charlson and Rodhe 1982). Therefore, rainwater with a pH of less than 5.6 is known to be acid rain, and rainfall with a pH of more than 5.6 indicates that an alkaline material is present. Demirak et al. (2006) recorded a pH range of 4.5–7.7 with an average of 6.9, which was in the alkaline range. pH values in a coastal site in India ranged from 4.8 to 6.4 (Prathibha et al. 2010), which were less than the pH value in this study. The average pH value was 6 ± 0.57 in Malaysia (Tay et al. 2014). In rainwater samples in Shenzhen, South China, a varying pH range (3.72–6.77) was observed (Zhou et al. 2019). The pH value of the rainfall relies on the neutralization with an alkaline substance of acid-forming ions (Wang and Han 2011). The current study's pH VWM was contrasted with other researches worldwide (Table 2). As can be seen in this research, the pH VWM is greater than other reported values in Table 2 (except Monterrey, Mexico, which is greater than the Hamedan site). Rainwater obtains its compositions primarily through the dissolution of particulate matter in the atmosphere and, secondarily, through the dissolution of atmospheric gases (Jain et al. 2019). Lower industrial activities and higher loading of alkaline earth cations in our studied areas resulted in a higher pH value in rainfall than in other studies. Soil particles, which are rich in alkaline salts, are a major atmospheric constituent in arid and semi-arid regions. The reaction between these alkaline salts and rainwater determines the final pH of rainwater, resulting in neutralizing acid rain and alkaline rainfall in this study. The VWM of EC was 87.2, 137.1, and 105.0 µS cm−1 for Hamedan, Kushkabad, and Nematabad, respectively (Table 1). The lower EC in Hamedan indicates the dilution effect, which can be due to the relatively abundant rainfall in Hamedan in these months. In Western Poland, the mean EC of rainwater was greater (> 1000 μS cm−1) (Walna 2015) than that recorded in this study. Research conducted in Pakistan's Karachi city found that rainwater EC ranged from 20.0 to 210.0 μS cm−1 (Chughtai et al. 2014). In Ya’an, southwestern China, the EC of rainwater collected at a semi-rural site ranged from 30.0 to 274.0 μS cm−1, with a VWM value of 79.6 μS cm−1 (Zhao et al. 2013). The EC of rainwater in southwestern Nigeria fluctuated between 19.4 and 122.6 μS cm−1 (Adeniyi and Olabanji 2005). Different EC ranges were obtained in different areas due to variations in climate, geographical location, and special rainfall distribution.

Table 1 Volume-weighted mean (VWM) concentration of major ions (in meq L−1) and trace elements (in µg L−1), electrical conductivity (EC) (in μS cm−1) and pH along with statistical results in rainwater samples at three sites
Table 2 Published VWM of pH and major ions (μeq l−1) in rainwater

Major and trace element composition of rainwater

The average value along with the VWM of the main concentrations of ions in rainwater is shown in Table 1. Based on VWM values, the concentrations of anions in rainwater in three stations had following trend SO42−  > C1  > HCO3  > NO3  > P for Hamedan and C1  > SO42−  > HCO3  > NO3  > P for Kushkabad and Nematabad stations. The concentration of major cations decreases in the order Ca2+  > Mg2+  > Na+  > K+  > H+ for Kushkabad and Nematabad stations and Mg2+  > Ca2+  > Na+  > K+  > H+ for Hamedan station. In Maharashtra, India, the ionic concentration of rainwater samples showed the order of SO42−  > C1  > NO3 for anions and Ca2+  > Na+  > Mg2+  > K+ for cations (Salve et al. 2008). Calcium and SO42− ions were the most abundant cations and anions, respectively, in southwest China (Wang and Han 2011). Momin et al. (2005) reported that the dominant cations in rainwater samples were Ca2+ and Mg2+, and the major anions were SO42− and C1. Our results are similar to those reported in some areas (Keresztesi et al. 2020; Xu et al. 2015).

The high Ca2+ concentration in rainwater events reflects the presence of calcium-rich dust in the atmosphere. Soil dust contains calcite minerals that are mainly due to the presence of calcium carbonate in soils in these regions. Therefore, the high concentration of SO42− in rainwater is neutralized by aerosols produced from soil (Keresztesi et al. 2020; Liu and Han 2020). The predominant cations were Ca2+ and Mg2+ which accounted for (sum of both cations and based on VMW) 82.5%, 90.4%, and 88.1% of total cations for Hamedan, Kushkabad, and Nematabad stations, respectively. Keresztesi et al. (2020) reported that Ca2+, SO42−, and NH4+ concentrations were notable in desert areas or regions with significant anthropogenic activity. In the same way, the contribution of SO42− and NO3 was 39.8%, 33.8%, and 34.1% of the total anions for Hamedan, Kushkabad, and Nematabad stations, respectively. Figure 2 shows the average percentage distribution (overall rainwater occurrences and stations) of ionic compositions in rainwater. This Figure indicates that ionic species in rainfall had following order Ca2+  > SO42−  > Mg2+  > C1  = HCO3  > Na+  > K+  > NO3  > P. The contribution of the concentration of P and H+ in rainwater was less than 1%. Although the VWM pH of the current study was generally contrasted with other research worldwide (Table 2), the comparable pH value was stated in some studies (Demirak et al. 2006; Nadzir et al. 2017). Comparison of our results with other studies has shown that alkaline earth cations such as Ca2+ and Mg2+ have an important effect on acid anion neutralization such as SO42− and NO3. Besides, in semi-arid and arid areas, these cations dominate, leading to a rise in rainwater pH.

Fig. 2
figure 2

The percentage of chemical composition of rainwater in the study area (average of three stations)

Table 2 shows that the levels of Ca2+, Mg2+, K+, Na+, SO42−, and C1 ions in this study were higher than those reported by other researchers around the world, while decreased levels of NO3 were observed compared to those reported in the literature. The concentration of NO3 in this study ranged from 19 to 30 μeq L−1 which was lower than that in Ahvaz (Iran); Beijing (China), Tirupati (India), Ankara (Turkey), and Mexico reported by (Naimabadi et al. 2016), Tang et al. (2005), (Mouli et al. 2005), (Kaya and Tuncel 1997), respectively, while it was higher than that in Lijiang (China), Juiz deFora (Brazil), Bermuda, Amsterdam, and Pacific ocean reported by (Niu et al. 2014), (Facchini Cerqueira et al. 2014), (Galloway et al. 1989), and (Galloway and Gaudry 1984), respectively.

The order of trace element concentrations in rainwater was Zn > Ni > Fe > Cd > Mn. Oliveira et al. (2012) stated that the VWM concentration of trace elements declined as follows: Zn > Fe > Mn > Ni. The mean concentration of the trace elements in the rainwater was shown to obey the order of Pb > Fe > Zn > chromium (Cr) > Cd = Al (Akoto et al. 2011). Despite our results, Gana’s rainwater samples had a higher Fe concentration than Zn. Different results were observed in rainwater samples collected in Shiraz, southwest of Iran (Mirzaei et al. 2018). Local sources have an important role in trace element concentrations in rainwater (Mirzaei et al. 2018; Tripathee et al. 2014). The most prevalent trace element in the bulk deposition at the three sites was Zn. A similar outcome has been observed in some studies (Avila and Rodrigo 2004; Gao et al. 2016). The construction of the Nematabad Dam began in 2004. Owing to funding limitations, it was postponed and suspended multiple times. In every civil engineering project, it is obvious that the use of machinery is an unavoidable part of construction work. During building work, site planning, foundation work, road construction, and repair, air pollution occurs. Dam building activities and machine traffic are possibly one of the factors for trace element enrichment in rainwater in the Nematabad dam. The high concentration of trace elements in the Hamedan station has also been attributed to the drastic rise in the number of vehicles in the city of Hamedan in recent decades. Dust emissions are the primary explanation for trace element enrichment in all three stations. In the last decade, the west and southwest of Iran were affected by a dust storm that originated from Syria and northern Saudi Arabia (Cao et al. 2015). Dust storms originating in Iraq have been recorded to have high concentrations of airborne trace elements, such as Pb and Cd (Kadhum 2020; Leili et al. 2008). Table 3 shows that the levels of trace elements in this study were higher than those reported by other researchers around the world, except for Fe concentration and Ni and Zn concentrations that were reported by Uygur et al. (2010) and by Başak and Alagha (2010), respectively, in Istanbul, Turkey.

Table 3 Published mean values of trace elements (μq l−1) in rainwater

The rainwater sources of trace elements are primarily from combustion factories, non-ferrous metallurgy, iron and steel sectors, waste incineration plants, car traffic, cement or glass manufacturing sectors, ores for metal refining, and waste material burning (Göbel et al. 2007). Trace elements are adsorbed by minerals, and wind erosion can transport them over continents (Gallon et al. 2011). Zinc, Pb, Cu, Ni, and Cr oxides are released by tire wear and brake shoes, while the origin of Fe is due to the worn brake (McKenzie et al. 2009). Researchers reported that among trace elements, Zn was abundant in the precipitation (Al-Momani et al. 1995; Avila and Rodrigo 2004). It is clear that the order of trace element concentrations was affected by sampling sites and a similar trend was reported around the world. Cadmium had the lowest concentration, while Zn had the highest concentration in the rainwater. The elevated atmospheric concentration of Zn is due to a rise in the number of vehicles. Zinc is used in car breaks, and it is released into the air from wearing breaks (Valiulis et al. 2002). Similar high Zn concentrations were observed in highly polluted Mexican cities like Zacatecas and Mexico City (Mugica-Álvarez et al. 2012). Trace elements concentration in rainwater reflects the main type of land uses in watersheds (Herngren et al. 2005).

Neutralization factor in three stations

The NF for Ca2+ ranged from 0.47 to 1.38 in Hamedan, with an average of 0.88, and changed from 0.70 to 3.07 with an average of 2.0 for Kushkabad, and this value fluctuated between 0.70 and 1.89 with an average of 1.11 for Nematabad (Table 4). The mean NF for Mg2+ in precipitation events was 0.96, 0.80, and 0.94 for Hamedan, Kushkabad, and Nematabad, respectively. The NF for Na+ for Hamedan, Kushkabad, and Nematabad was 0.32, 0.25, and 0.17, respectively. The NF for K+ was negligible (Table 4), showing that the dominant ions for neutralization were Ca2+ and Mg2+ (Fig. 3). The elevated concentration of alkaline earth metals in rainwater is associated with soil dust transport with a big proportion of calcite and dolomite due to the calcareous soil in these areas. Salve et al. (2008) found that NF for different cations followed a sequence of Ca2+  > Mg2+  > NH4+ with factors of 1.1, 0.38, and 0.15, respectively. The primary neutralizing agent of rainwater in Romania was Ca2+ (Szép et al. 2019). Similar findings have also been reported in other studies (Xu et al. 2015; Zhang et al. 2012). Although industrial activities cause to release of acid-forming ions into the atmosphere, alkaline substances neutralize the impact of acid-forming ions (Keresztesi et al. 2020; Saxena et al. 1996; Wu et al. 2016). Some researchers reported that NH3 was the dominant compound to neutralize acid rain. The dominant source of NH3 in rainwater is fertilizer applications and livestock farming. The concentration of NH3 was not measured since most of the samples were collected in winter, and NH3 did not play a role in neutralizing, as agricultural activities such as fertilization are negligible in the winter season. The release of NH3 into the atmosphere decreases during the wet season (Başak and Alagha 2004). During the dry season, NH3 volatility increases due to the high temperature and farming. Therefore, according to the above findings, the Ca2+ and Mg2+ ions tend to be the key sources of neutralization, consistent with the results found by Budhavant et al. (2011).

Table 4 Average neutralization factor values in three stations
Fig. 3
figure 3

Piper diagrams of NFs of dominant alkaline ions

Correlation and cluster analysis

The results of the correlation between measured parameters in rainwater samples are presented in Table 5. There was a significant relation between pH and HCO3 ion, while there was no correlation between pH and acid-bearing anions (SO42−, NO3). Calcium and K+ ions have a positive correlation with SO42−. The positive correlation between Ca2+ and K+ cations and SO42− indicates that Ca2+ and K+ ions are neutralized in rainwater with SO42− ions and regulate rainwater chemistry (Mouli et al. 2005; Saxena et al. 1996). The existence of dust particles presents in atmosphere derived from gypsum or other evaporite/halite may explain the positive association between Ca2+ and SO42−. In previous studies, a positive association was found between SO42− and Ca2+ (Wang and Han 2011). The atmospheric SO42− originated from natural sources including local weathering, volcanic source, sea salt, and atmosphere deposition (Bao et al. 2004) and anthropogenic activities due to the combustion of fossil fuels and the smelting of metals. Sulfuric acid droplets and other secondary aerosols are formed when SO2 is oxidized in the gas phase (Jain et al. 2019). Although in the present study the dust particles were not analyzed, in some studies the presence of gypsum as aerosol particles was reported (Miyamoto et al. 2020; Rea et al. 2020; Trochkine et al. 2003). Trochkine et al. (2003) studied mineral aerosol particles collected in Dunhuang, China, and indicated that 13–41% of the aerosol particles were Ca-rich particles composed of calcite, dolomite, and gypsum. Since studied areas are located in arid and semi-arid regions, the presence of gypsum particles in aerosol particulates is expected. There has been a poor correlation between Ca2+ and Mg2+ ions, suggesting that crustal sources do not necessarily provide Mg2+ and the sources of these two ions may be different. Moreda-Piñeiro et al. (2014) found a similar very low correlation in rainwater on Spain’s northwest coast. They proposed that the origins of Ca2+ and Mg2+ ions could be different and that Ca2+ originated from terrestrial sources, whereas Mg2+ originated from marine sources. The findings are inconsistent with those of previous results (Kumar et al. 2002; Wang and Han 2011; Zhou et al. 2019). Wang and Han (2011) indicated that the sources of Ca2+ and Mg2+ in the southwest of China are mainly due to the soil dust, while Zeng et al. (2020) indicated that the main sources of Ca2+ and Mg2+ in rainwater in southwest China are calcite dissolution. There was a high positive correlation between rainwater levels of Na+ and Cl. A similar positive correlation was reported in different studies (Başak and Alagha 2004). The extremely high association stated by (Keresztesi et al. 2020) between Na+ and Cl since they assume these ions derive primarily from sea spray and marine salts. A significant correlation between Ca2+ and Cl shows that Cl was enriched in rainwater samples by NSSF sources. Das et al. (2005) found that in rainwater samples, crustal and anthropogenic sources had an important role in Cl concentration. Additionally, a positive correlation is found between HCO3 and Ca2+ and Mg2+ cations. Our results were similar to those reported by (Bisht et al. 2017). Phosphate ion showed a positive relation with SO42−, HCO3 and the sum of Ca2+ and Mg2+ cations, indicating that crustal and anthropogenic sources (Das et al. 2005). A positive correlation found between Mn and K+ suggesting the terrestrial source of Mn. A significant relation was observed between Mn and SO42−, implying that Mn-like major cations play an important role in neutralizing rainwaters. The positive correlation between Zn and Ni suggests that under certain physical conditions, such as wind speed, air temperature, and rainfall quantity, they may have similar behavior. Similar results were reported by Báez et al. (2007); Başak and Alagha (2004) and Başak and Alagha (2010). The adverse relationship between Zn and Mg2+ indicates that they came from various sources.

Table 5 Correlation coefficients among ionic constituents in rainwater

The dendrogram was used to examine the relationships between different measured parameters using water samples (Fig. 4). The first cluster contained pairs of EC-Ca2+, K+-P, and pH, HCO3, SO42−, Mn, and Mg2+ variables, indicating contribution primarily from natural sources. The second cluster contained a pair of Na+-Cl variables, indicating an association with sea aerosols ad anthropogenic sources. The third, fourth, fifth, and sixth clusters contained NO3, Cd, Fe, and a pair of Ni-Zn variables, respectively, indicating anthropogenic sources, but from different sources. Similarly, Zeng et al. (2020) used factor analysis to explore the alkaline rain pattern in southwest China, and found three factors: factor 1 included Ca2+, Mg2+, K+, SO42−, and Cl, which was related to natural dust, factor 2 included Na+, which was related to the marine, and factor 3 included NO3, NH4+, and F, which were related to anthropogenic sources.

Fig. 4
figure 4

Dendrogram showing clustering of water sample variables

Enrichment factor, sea salt fraction, and non-sea water fractions

The primary sources of atmospheric aerosols are sea salts, terrestrial wind erosion dust, and anthropogenic emissions (Guerrot and Millot 2007). The results of the EFseawater are shown in Table 6. Ions with EFseawater higher than 1 reflect the impact of other sources than sea salt. According to Table 6, the EFseawater values for NO3, SO42, Ca2+, Mg2+, and K+ were higher than 1 in all three stations, indicating a major earthly impact, whereas Cl had a low EFseawater value, indicating a significant contribution from marine water. The EFseawater of Mg2+, Ca2+, and SO42− was greater than one in a study conducted by (Salve et al. 2008), indicating that they are predominantly affected by soil and anthropogenic sources. In polluted areas, including industrial belts, Cl can derive from anthropogenic sources in addition to marine sources (Keresztesi et al. (2020). The anthropogenic contribution of Cl could come from different sources of pollutions, including car exhaust, coal combustion, and fertilizers (Wu et al. 2016). Similar results were observed in previous studies (Bisht et al. 2017; Kumar et al. 2002; Wu et al. 2016).

Table 6 The ratio of ions to Na in seawater and rainwater and corresponding calculated EFseawater for the three stations

The SSF and NSSF fractions are presented in Table 7. As can be seen, all element ratios were much higher than those ratios in seawater values (Das et al. 2005). The increase in these ratios showed a close contribution due to evaporites, crustal materials (soil dust), and anthropogenic sources to rainwater chemistry (Zhang et al. 2012). Kumar et al. (2002) stated that the anthropogenic and crustal nature of major components such as K+, Ca2+, SO42, and NO3 are can be shown by SSF and NSSF parameters. Wu et al. (2016) at three non-urban sites in Hebei Province, north China analyzed the chemical compositions of rainwater and found that all major ions derived from non-sea sources. Table 7 showed that SO42− and NO3 ions are brought through anthropogenic activities. The contribution of these anions to the NSSF is more than 95% (Facchini Cerqueira et al. 2014; Jawad Al Obaidy and Joshi 2006). The contribution of the soil source was considerable for Ca2+ and Mg2+ ions (Table 7) (Saxena et al. 1996; Xu et al. 2015). Based on data obtaining by SSF fraction, Cl ion in precipitation has seawater and anthropogenic sources so that approximately 40.60%, 28.36%, and 18.56% of Cl originated from the sea in Hamedan, Kushkabad, and Nematabad, respectively. Our findings were consistent with those results that were presented by (Zhang et al. 2012). Although sea salt, anthropogenic, and soil resources had a significant role in K+ in all samples, anthropogenic activities were the dominant source.

Table 7 Table 7

Table 8 indicates that Cd, Zn, and Ni in rainwater have EFcrust values higher than 1, while rainwater was not enriched with Fe and Mn. Cadmium had the largest EFcrust value in all stations among trace elements. Mirzaei et al. (2018) found that samples were not enriched with Fe and Mn, but that Zn, Cu, and Ni were fair to highly enriched. Malassa et al. (2014) reported that rainwater used for drinking was polluted with Ni. The EFcrust of Cd, Zn, and Ni was the highest in Hamedan station due to the excessive activities of humans on this site. The EFc’s of trace elements in stations follow the order: Cd >  > Ni > Zn >  > Mn > Fe. The higher Zn concentration at Hamedan station is due to the contribution of the traffic. The role of traffic congestion on Zn concentration in rainwater samples was reported by (Avila and Rodrigo 2004; Morselli et al. 2003). Besides, high levels of these trace elements can be attributed to storms of dust in the Middle East that have increased dramatically in recent years due to the dry wetlands in Iraq and the western neighbor of Iran (Cao et al. 2015; Pirsaheb et al. 2014). Başak and Alagha (2004) found that the trace element EFc's in rainwater in Büyükçekmece had following the order: Cd > Cu > Pb ∼ Zn >  > Ni > Cr > V. The higher EFcrust for Zn in this study compared to other studies may be related to the impact of local sources of Zn. Churc et al. (1984) showed that the EFc’s were more than 1 (except for Mn). The EFc’s value for trace elements in Bermuda was in the following order Cd > Pb > Zn > Cu > Ni > V. Together with distinct wind and precipitation patterns, these differences can be due to variations in industrial operations.

Table 8 Crustal enrichment factors (EFcrust) for K, Mg, Fe, Cd, Zn, Mn, and Ni using volume-weighted mean concentrations

Backward air mass trajectory analysis

Figure 5 demonstrates the outcomes of the trajectory model. The model showed that two major sources of contaminants affected the quality of rainwater at three stations. The main source was the dust storm of Iraq, Syria, and northern Saudi Arabia during the recent decays. This phenomenon was dominant in Kushkabad station, as can be seen in Fig. 5. The origin of the air masses at the station of Hamedan was divided mainly into two branches, namely the west and the north. The air mass of the west may have transported significant quantities of contaminants from Iraq. The northern pollutant originates in the Caspian Sea, situated in northern Iran. The sources of air pollution in certain rainwater events emerged in the southwest of Iran. Strong storms of dust have been observed in the southwest of Iran in recent years.

Fig. 5
figure 5figure 5

Backward 24 h trajectory plot from three study locations at 500 m above ground level using the Global Data Assimilation System meteorological data achieved by the Hybrid Single-Particle Lagrangian Integrated Trajectory (HYSPLIT) model (https://www.ready.noaa.gov/HYSPLIT traj.php) Hamedan station (a); Kushkabad station (b); Nematabad station (c)

Conclusion

In Hamedan, western Iran, the chemical composition of rainwater indicated that the rainwater was usually alkaline, especially in rural sites of Kushkabad and Nematabad. Due to the low content of acid-bearing ions, rainwater events at Hamedan station demonstrated the lowest pH. The low EFseawater of Ca2+ in Hamedan caused less SO42− to be neutralized, whereas the EFseawater of SO42− anions in Hamedan was close to that in Kushkabad station. According to the results found in three stations, calcium carbonate had strong neutralizing effects on acids from fossil fuel combustion. Chloride ion originates mostly from sea salt sources in three stations. Cadmium, Ni, and Zn in rainwater were enriched, and Cd had the highest EFcrust. High concentrations of these trace elements can be ascribed to storms of dust in the Middle East. It is suggested that the anthropogenic activities at Hamedan station were more due to the greater number of cars and industrialization than at other stations. The results generally suggest that terrestrial and anthropogenic sources have been important sources of cations and have had a major influence on rainwater chemistry.