1 Introduction

Drought, as a destructive phenomenon, occurs in various climates, and its detrimental effect is considerable in arid and semiarid regions such as Iran. Due to the dependence of living organisms on water resources and attention to the harmful effect of extreme drought on soil and water resources, the trend analysis of dry and wet periods is vital to provide appropriate management principles. For quantitative and qualitative evaluation of drought in the whole world, different drought indices have been developed by researchers in the literature (Khanmohammadi et al. 2017a). Some indices such as Palmer Drought Severity Index (PDSI) (Palmer 1965), Crop Moisture Index (Palmer 1968), and Standardized Precipitation Evapotranspiration Index (SPEI) (Vicente-Serrano et al. 2010) utilize precipitation data combined with temperature. The precipitation data combined with soil moisture are used to calculate some indices such as the Moisture Adequacy Index (McGuire and Palmer 1957) and Keetch-Bryam Drought Index (Keetch and Byram 1968). Moreover, there are some standard indices that use only precipitation data. The Rainfall Anomaly Index (RAI) (Van Rooy 1965), Deciles Index (DI) (Gibbs and Maher 1967), Nitzche Index (Nitzche et al. 1985), SPI (McKee et al. 1993), Percent of Normal Precipitation Index (PNPI) (Willeke et al. 1994), Z-Score, China Z Index (CZI) (Ju et al. 1997) and Modified China Z Index (MCZI) (Wu et al. 2001) are some of them.

Due to the existence of various drought indices, comparing proposed indices and selecting the superior index have been current subjects in recent research (e.g. Quiring and Papakryiakou 2003; Morid et al. 2006; Adnan et al. 2018; Wable et al. 2019). Wu et al. (2001) compared the SPI, Z-score, and CZI in four regions of China based on the SPI index. In the mentioned study, the CZI index was more sensitive to dry conditions than the SPI index. Tsakiris et al. (2007) compared the SPI and RDI indices using recorded data in two river basins located in Greece. The results of the mentioned study showed the similarity of the SPI and RDI results. They also stated that the RDI index is more suitable for regions with environmental changes. Asadi-Zarch et al. (2011) compared the SPI and RDI indices for different scales. They used recorded data of 40 synoptic stations located in Iran. Based on obtained results, there was a considerable correlation between the RDI and SPI which were calculated in shorter time scales (such as three months) in comparison with longer ones. In the mentioned study, they suggested using the RDI index for drought analysis in Iran. In another study, the SPI and RDI indices were compared by Khalili et al. (2011). They used recorded data (39 to 53 years) at ten stations that had different climates in Iran. They suggested using the RDI index for drought assessment for agricultural purposes. Dogan et al. (2012), in their study, compared six different meteorological drought indices, including Percent of Normal (PN), statistical Z-Score, Rainfall Decile based Drought Index (RDDI), Standardized Precipitation Index (SPI), China-Z Index (CZI), and Effective Drought Index (EDI) to analyze the drought in Konya (a semiarid closed basin in Turkey). They used the data of 12 stations during 1972–2009. On the basis of the obtained results of the mentioned study, since the EDI index does not depend on time step and has good correlations with various time steps of other drought indices, they recommended EDI index for long term drought monitoring in arid or semiarid regions when monthly precipitation data were used for drought analysis. Paulo et al. (2012) compared the SPI, and PDSI indices with the modified PDSI developed for the Mediterranean conditions (MedPDSI) and the Standardized Precipitation Evapotranspiration Index (SPEI) in 27 stations of Portugal (1941–2006). The results showed that both the PDSI and MedPDSI drought indices, compared with the SPI and SPEI indices, identify more severe droughts and have more ability to identify drought occurrence. Jain et al. (2015) compared six deferent meteorological drought indices, including Rainfall Departure (RD), CZI, Z-score, EDI, SPI, and RDDI, in 13 stations of Ken river basin (central India). Based on the results of the mentioned study, similar to the study of Dogan et al. (2012), the EDI was a more suitable drought index. The literature review shows that the SPI index was proposed by Mckee et al. (1993) and is more acceptable and popular than other drought indices. In addition to mentioned studies, the SPI index alone or with other indices were used by Moreira et al. (2006), Silva et al. (2008), Asadi-Zarch et al. (2015), Al-Faraj and Tigkas (2016), Belayneh et al. (2016), Rawat and Tripathi (2016), Byakatonda et al. (2018), Mathbout et al. (2018), Tigkas et al. (2019), Shiau (2020), Khezri et al. (2021), Pham et al. (2021) and Yerdelen et al. (2021).

During recent years, besides drought analysis, the researchers have been focused on the trend of wet and dry periods. Several studies have shown an increase in droughts (Bonaccorso et al. 2003; Vicente-Serrano et al. 2004; Vicente-Serrano and Cuadrat-Prats 2007). Zhang et al. (2009) investigated the seasonal trends of wet and dry periods on the basis of the SPI index by the Mann–Kendall test during 1960–2005. They used 42 stations’ data of a basin of China. Their results showed that the studied basin tends to be wet and dry in the winter and rainy seasons, respectively. In another study, the drought’s trend was analyzed by Tabari et al. (2012) at ten stations of Iran (1966–2005). The trend results of the SPI, except the Zabul station, showed the reduction of the mentioned index at all studied stations. Nikbakht et al. (2013) analyzed the hydrological drought in Urmia Lake Basin (Iran) by Percent of Normal Index (PNI). They applied the recorded data at 14 stations during 1975–2009. The results of their study showed that over the past years, the value of hydrological drought in the studied area had been increased, and most of the studied stations had a significant decreasing trend. Khanmohammadi et al. (2017b) investigated the variation of wet and dry periods in 30 synoptic stations in Iran. Firstly, they calculated the values of RDI and SPI indices based on the best distribution. Then, they analyzed the trend of these two mentioned indices. The results of the mentioned study showed that in most studied stations, the trend of dry and wet periods was decreasing. Achite et al. (2021) evaluated the trend of 12-month SPI using the Theil–Sen, and Mann–Kendall test in the Wadi Cheliff Basin, Algeria. They found that the trend of northern and southern parts of the studied basin was different. The trend of 12-month SPI was negative on the northern side, and vice versa was positive at the south side of the basin. Mohammed and Yimam (2021) evaluated the trend of RDI during 1986–2019, using the Mann–Kendall trend test and data of ten stations located in the Lake’s Region of Ethiopian Rift Valley. Their study showed that in most studied stations, the drought tends to increase.

According to the importance of drought and its destructive effect on different regions such as Iran, it is essential to conduct a more comprehensive study about this natural phenomenon on the basis of a suitable drought index. On the other hand, drought can affect water resources and their management. Misunderstanding of drought and its occurrence time can be costlier for governments and lead to unprincipled management by managers, experts, and engineers. Therefore, it is necessary to pay more attention to the selection of the best index. In fact, detecting drought periods using a suitable index leads to proper strategies for better drought management. Unfortunately, most researchers applied one index for drought analysis without selecting the best index among existing indices. But, for correct drought analysis, it is essential to use the best drought index. So, in the present study, nine drought indices (SPI3 index has been presented for the first time) were compared, and the most suitable index was introduced. Then, on the basis of relevant drought index, the annual trend of wet and dry periods was determined by modified Mann–Kendall test (with removing all significant autocorrelation coefficients) in 30 stations which are located in four different climates of Iran.

2 Materials and Methods

2.1 Study Context and Data Set

Iran is a country located in West Asia with an area of about 1,648,000 square kilometers. A large part of Iran has an arid or semiarid climate. Because of finding a considerable area of Iran in a dry zone and consequently the importance of drought study in this country, the present study focuses on drought analysis on the basis of a suitable precipitation-based drought index. For this purpose, in the present study, daily precipitation data recorded in 30 synoptic stations of Iran (Fig. 1) was taken from the Iranian Meteorological Organization. The period of 1960–2014 was common for all selected meteorological stations. The characteristics of studied stations can be seen in Table 1. As seen in this table, the average annual precipitation in these stations varies from 56.277 mm (Yazd) to 1334.297 mm (Rasht).

Fig. 1
figure 1

Geographical position of 30 studied stations in Iran

Table 1 Geographical information and mean annual precipitation of 30 synoptic stations in Iran with initial analysis results

It is necessary to mention that the selected stations are located in various climates. Stations located in 1–13 and 14–27 rows have an arid and semiarid climate, respectively. The climate of Babolsar is humid, and Ramsar and Rasht have a very-humid climate. Regarding the initial analysis of studied data, the Run test and Double Mass method were used to evaluate the homogeneity and randomness of data, respectively (Bars 1990; Adeloye and Montaseri 2002). The results which are reported in Table 1, confirmed the homogeneity of data and the hypothesis of data randomness. It should be noted that the reported results for the Double Mass method in Table 1 represent the determination coefficient values between an average of cumulative annual precipitation of all studied stations and cumulative annual precipitation recorded in each station. Also, it should be mentioned that the run test statistic is compared with ± 1.96 values. If the run test statistic value is between -1.96 and 1.96, it represents the randomness of data (precipitation in this study).

2.2 Drought Indices

In the present study, nine drought indices, including SPI, SPI2, SPI3, RAI, DI, PNPI, Z-score, CZI, and MCZI, which are determined on the basis of precipitation data, were compared each other, and the superior index was determined.

2.2.1 Standardized Precipitation Index (SPI)

The SPI was introduced by Mckee et al. (1993) for drought analysis. This index only needs precipitation data. To obtain the SPI index, first, a suitable distribution (such as Gamma) is fitted to the precipitation time series, and then the cumulative probability is transformed to the Standard Normal distribution (with a variance of unity and mean zero) (Dogan et al. 2012). In other words, this transformation was carried out at the same probability level. The obtained values with Standard Normal distribution will be the SPI index (Mckee et al. 1993; Edwards and Mckee 1997). The PDF (Probability Density Function) of Gamma distribution is defined as:

$$g(x) = \frac{1}{{\beta^{\alpha } \Gamma \,\left( \alpha \right)}}x^{\alpha - 1} e^{ - x/\beta } \quad for\;x > 0$$
(1)

Using the maximum likelihood method, the optimal values of the \(\alpha\) (shape parameter) and \(\beta\) (scale parameter) can be calculated as:

$$\alpha = \frac{1}{4A}\left( {1 + \sqrt {1 + \frac{4A}{3}} } \right)\quad and\quad \beta = \frac{{\overline{x}}}{\alpha }$$
(2)
$$A = \ln \left( {\overline{x}} \right) - \frac{{\sum {\ln \left( x \right)} }}{n}$$
(3)

where, \(\overline{x}\) is the average value of time series, precipitation in this study, and n is the number of observations., The cumulative probability of Gamma distribution is given by using calculated parameters:

$$G(x) = \int_{0}^{x} {g(x)dx = \frac{1}{{\beta^{\alpha } \Gamma \,\left( \alpha \right)}}} \int_{0}^{x} {x^{\alpha - 1} e^{ - x/\beta } dx}$$
(4)

Since the values of precipitation may be zero and the Gamma distribution cannot be defined for zero values; therefore, the cumulative probability becomes:

$$H(x) = q + \left( {1 - q} \right)\,G(x)$$
(5)

where q is the probability of precipitation = zero. Then, the cumulative probability, H(x), is transformed to the standard normal variable (with variance of unity and mean zero), which is the value of the SPI index.

2.2.2 Deciles Index (DI)

Deciles Index (DI) was developed by Gibbs and Maher (1967), and it is widely used in drought analysis in Australia (Simmonds and Hope 1997; Mpelasoka et al. 2008). In order to calculate this index, actual precipitation values are ranked from lowest to highest ones, and then a cumulative frequency distribution is constructed. Then the distribution is divided into ten sub-sections, and each sub-section is named a decile. The first decile, including the high precipitation values, indicates the wettest periods, while the last decile, including the low precipitation values, indicates the driest periods in the studied time series. The other values of precipitation fall into one of the other declines (2 to 9).

2.2.3 The Other Studied Drought Indices

The integral equations for the calculation of other drought indices are presented in Table 2. In this table, \(P_{i}\) is the value of precipitation, \(\overline{P}\) is the average value of precipitation, \(\delta\) is the standard deviation of precipitation value, \(P_{m}\) is the median of precipitation value, \(\overline{E}\) is the mean of 10 lowest (for negative anomalies) and mean of 10 highest (for positive anomalies) values of precipitation in the studied time series and Cs is the skewness coefficient. It should be mentioned that the calculation process of SPI2 and Z-score is similar. The difference between these two indices is the different classifications of them for the determination of wet and dry periods (Table 2).

Table 2 Seven studied drought indices

The SPI3 index, which is presented in Table 2, was first used in this study. Its calculation process is similar to the SPI2. In the calculation of the mentioned indices, the transformation of studied data from their probability distribution to the Normal distribution (identical to the SPI index) is not required. But, contrary to the SPI2 index, in the calculation of SPI3, the median value is used instead of the mean value of precipitation. It should be mentioned that the median and average values of precipitation time series were different due to not having the Normal distribution.

Table 3 provides a classification based on nine used drought indices. Common Quantitative Grouping (CQG), including seven categories, has been defined to better compare studied drought indices.

Table 3 Specified common quantitative grouping of the studied drought indices for wet and dry periods

2.3 Trend Study

2.3.1 Mann–Kendall Approach

The Mann–Kendall is a well-known and standard test to detect a trend in time series data. This test includes all advantages of non-parametric methods and is less sensitive to extreme values (Xu et al. 2003). It should be mentioned that the common Mann–Kendall test was first introduced by Mann (1945) and then was developed by Kendall (1975). The steps of trend analysis for N data using the mentioned test are presented by Eqs. (6) to (9):

$$S = \sum\limits_{i = 1}^{N - 1} {\sum\limits_{j = i + 1}^{N} {{\text{sgn}} (x_{j} } } - x_{i} )$$
(6)
$${\text{sgn}} \,(x_{j} - x_{i} ) = \left\{ \begin{gathered} + 1\quad if(x_{j} - x_{i} ) \succ 0 \hfill \\ 0\quad \;\,if(x_{j} - x_{i} ) = 0 \hfill \\ - 1\quad if(x_{j} - x_{i} ) \prec 0 \hfill \\ \end{gathered} \right.$$
(7)
$$Var(S) = \frac{1}{18}[N(N - 1)(2N + 5) - \sum\limits_{i = 1}^{m} {t_{i} (t_{i} - 1)(2t_{i} + 5)]}$$
(8)
$$Z = \left\{ {\begin{array}{*{20}c} {\frac{S - 1}{{\sqrt {Var(S)} }}} & \; & {if\;S\rangle 0} \\ 0 & \; & {if\;S = 0} \\ {\frac{S + 1}{{\sqrt {Var(S)} }}} & \; & {if\;S\langle 0} \\ \end{array} } \right.$$
(9)

where xj and xi are the consecutive values of the series in the j and i years, respectively, n is the duration of time series, sgn (xj–xi) is the sign function, Var(S) is the variance of S, which for \(n \ge 8\) normally distributed and has a zero mean, m is the number of tied values, ti is the number of ties for the ith value and Z is the Mann–Kendall test statistic. More details can be obtained by Yue et al. (2002a) and Khanmohammadi et al. (2017c). This method is used when there is no significant autocorrelation coefficient in time series of data. Otherwise, the modified version of the Mann–Kendall which has been introduced by Hamed and Rao (1998), should be used. The calculation phases of the modified version are almost similar to the initial version of the Mann–Kendall test, but it uses modified variance [Var (S)*] instead of Var (S). Var (S)* can be calculated as:

$$Var(S)* = Var(S)\frac{n}{n*}$$
(10)
$$\frac{n}{n*} = 1 + \frac{2}{n\,(n - 1)(n - 2)}\sum {(n - k)(n - k - 1)(n - k - 2)\,r_{k}^{R} }$$
(11)
$$r_{k}^{R} = \frac{{\frac{1}{n - k}\sum\limits_{i = 1}^{n - k} {\left[ {\left( {RX_{i} - E(RX_{i} )} \right)\left( {RX_{i + k} - E(RX_{i} )} \right)} \right]} }}{{\frac{1}{n}\sum\limits_{i = 1}^{n} {\left( {RX_{i} - E(RX_{i} )} \right)^{2} } }}$$
(12)

where \(\frac{n}{n*}\) represents the correction factor, \(r_{k}^{R}\) represents the lag-k serial correlation coefficient of the ranks RXi of the studied data, and n represents the number of data (Hamed and Rao 1998; Yue et al. 2002b; Dinpashoh et al. 2013). Equation (13) represents the existant significance (95% confidence level) in kth autocorrelation coefficient of data. In other words, if obtained \(r_{k}^{R}\) places in this bound, the used data will be independent (95% confidence level). Otherwise, the used data are dependent, and for their analysis, the effect of the autocorrelation coefficient should be considered. Using these phases the obtained Z value will be modified Z (Hamed and Rao 1998; Kumar et al. 2009).

$$\frac{{ - 1 - 1.96\sqrt {n - k - 1} }}{n - k} \le r_{k}^{R} (95\% ) \le \frac{{ - 1 + 1.96\sqrt {n - k - 1} }}{n - k}$$
(13)

It is necessary to state that IMK and MMK in this study illustrate initial and modified Mann–Kendall tests, respectively.

2.3.2 Theil–Sen’s Estimator

The trend line slope (\(\beta\)) for n data was calculated by Theil-Sen’s Approach (TSA) (Theil 1950; Sen 1968):

$$\beta = Median\left( {\frac{{x_{j} - x_{i} }}{j - i}} \right)\quad \forall i < j$$
(14)

In Eq. (14), 1 <i<j<n and xi and xj are the observed ith and jth data, respectively. The positive value \(\beta\) represents an increasing trend and vice versa; the negative value of this parameter represents a decreasing trend for data series (Kumar et al. 2009).

In the present study, the time series of nine drought indices were obtained for each station. First, the capability of the mentioned indices was compared. Then the superior drought index was selected, and it was used for trend analysis of wet and dry periods. For trend analysis, the initial and modified versions of the Mann–Kendall test were applied. Also, the trend magnitude in the studied time series was determined by the Theil-Sen’s slope approach.

3 Results and Discussion

3.1 Selection of Superior Drought Index

Due to defining CQG for studied drought indices, it is able to investigate the relationship between studied indices. Therefore, to assess the performance of studied indices and compare them, the determination coefficient between the SPI index and the other eight indices are reported in Table 4. Although the SPI, SPI2, and SPI3 indices have similar classification limits, their different results in this table can be explained regarding their different calculations. In fact, in the SPI index, the precipitation data were transformed to Normal distribution. In other words, the distribution of precipitation data was considered. According to this table, the linear relationship between the mentioned indices with SPI has been increased, and consequently, the value of the determination coefficient (R2) has been improved (from 0.966 to 0.973) by using the average value (for calculation of SPI2 index) instead of median value (for calculation of SPI3 index). Moreover, it is necessary to note that the difference between SPI and Z-score indices is based on the different classification limits. Besides this study, in Wu et al.'s (2001) study, R2 > 0.9 resulted between annual SPI and CZI in studied stations. However, the value of R2 can not only describe the linear relationship between studied indices. The values of R2 > 0.9 in Table 4 shows the good linear relationship between studied indices with the SPI but give no detail and complete information. Therefore, in addition to the R2 values, a graphical relationship between indices in three different classes (drought, normal and wet) is needed. The values of the SPI index (as the base index) against the values of other studied indices for all selected stations are shown in Fig. 2. In other words, Fig. 2 shows the scatter diagrams between the classified values of the SPI index and classified values of eight indices. As seen in Fig. 2, opposite of Table 4, except CZI and MCZI indices, there was no linear relationship between the time series of studied indices and the SPI time series, and each index showed a unique behavior. Similar to Table 4, Fig. 2 shows that the linear deviation of SPI3 from SPI was more than SPI2. This deviation is based on the use of the median value in the calculation of SPI3 instead of the mean value. According to this figure, the value of R2 is the highest in the Normal period compared to wet and dry periods. The results of Fig. 2 show the insufficiency of Table 4 results and also show that the relationship between indices in different periods was different.

Table 4 Determination coefficient between SPI index and eight other indices
Fig. 2
figure 2

Values of SPI index against the values of other eight studied indices for all selected stations

Moreover, to select the suitable index, the probability density function (PDF) of dry and wet periods was considered based on the CQG drought events classification (Table 3) for all nine drought indices and studied stations. Figure 3 shows the PDF of dry and wet periods for nine drought indices in all studied stations. Based on Fig. 3, the PDF of dry and wet periods in SPI, SPI2, SPI3, PNPI, CZI, and MCZI indices was similar to the PDF of the Normal distribution. In fact, 68% of mentioned indices have been placed in the Normal class, and the sum of other values probability in wet or dry classes was equal (16%). The PDF of wet and dry periods based on RAI, Z-score, and DI indices had approximately symmetric form and a few ranges of variation. The probability of normal state (CQG = 0) in the three mentioned indices was approximately 40%, and the sum of the probability of both of the different wet or dry states was approximately 30% (about two times of six mentioned indices). In other words, the more severe wet and dry periods were reported on the basis of these indices. Overall, the indices with a PDF similar to PDF of Normal distribution are more acceptable to analyze the drought as a natural phenomenon. Therefore, RAI, Z-score, and DI indices cannot correctly determine the class of drought. However, these mentioned indices cannot be a good candidate for the appropriate index because of non-following from Normal distribution. Therefore, these mentioned indices were not considered in the following steps, and the residual indices were compared to each other.

Fig. 3
figure 3

Probability density function (PDF) of dry and wet periods based on nine studied indices in comparison with the PDF of normal distribution

In order to select the best index among residual five indices, their sensitivities to drought analysis of minimum precipitation were examined. The calculated values based on mentioned indices for minimum recorded precipitation data in all studied stations are presented as a box plot diagram (minimum, 25%, 50%, 75%, and maximum) in Fig. 4. Based on the results of this figure, in the majority of stations and the process of drought analysis based on minimum precipitation, the SPI index was more sensitive than others. The minimum calculated values for CZI and MCZI indices correspond to Bushehr station. In drought analysis based on minimum precipitation, MCZI and SPI2 indices had considerable efficiency, and they were more sensitive than CZI and SPI3 indices. Therefore, the use of SPI2 instead of SPI3 (using the average value instead of the median value) and MCZI instead of CZI (using the median value instead of the average value) are recommended.

Fig. 4
figure 4

Calculated values based on the SPI, SPI2, SPI3, PNPI, CZI and MCZI indices for minimum recorded precipitation data in all studied stations

The results of the correlation coefficient (R) between the SPI index and precipitation data are presented in Table 5 to ensure the correct selection of the SPI index in the studied area. The values of the correlation coefficient, more than 0.920, confirm the capability of the selected index (SPI) for the drought analysis. Therefore, the trend of the selected index can express the trend of wet and dry periods in Iran. Similar to this study, the SPI was chosen as a suitable drought index for drought analysis in Pakistan (Adnan et al. 2018).

Table 5 Correlation coefficient (R) between SPI and precipitation values in all studied stations

It should be noted that the obtained results will be correct for precipitation-based indices. In other words, the conclusion does not include other indices such as RDI or SPEI, which need evapotranspiration and precipitation data.

3.2 Drought Monitoring

Figure 5 illustrates the wet or dry conditions of studied stations each year. This figure shows the number of stations that are located in one of the defined classes (Table 3) on the basis of the SPI index results. As seen, in 10 years of the studied period (~ 18%), including 1968, 1969, 1972, 1976, 1977, 1982, 1984, 1986, 1992, and 2004, no drought (moderate, severe, and extreme) happened in the studied stations, but in other years, minimum one drought was reported in each station. At some years, for example, in 1960, 1973, 1990, 2001, 2008, and 2010, drought occurrences were monitored in 15, 18, 15, 15 18 and 17 stations, respectively (at minimum 50% of stations (15 cases)). The SPI values also showed that there was an extreme drought in 1960–1962, 1964, 1966–1967, 1970, 1973, 1985, 1987, 1989–1990, 1995, 2001, 2005, 2008, and 2010 in some of the stations. Generally, on the basis of the values of the SPI index in Fig. 5, there was a minimum of one drought in the majority of studied years (~ 82%), which confirms that the drought condition had governed the studied area, especially in 2008 and 2010.

Fig. 5
figure 5

Wet or dry condition of studied stations at each year

3.3 Trend Analysis

The results of trend analysis of wet and dry periods, which were calculated using the initial (IMK) or modified Mann–Kendall (MMK) tests in the studied area, are presented in Fig. 6. As shown in this figure, on the basis of both the initial and modified Mann–Kendall tests, the trend of SPI index was negative (decreasing trend) in 19 stations and was positive (increasing trend) in 10 stations. The trend value of this index in Bandarabbas station was zero (Z = 0). The results of two methods showed that the positive trend of SPI was significant (at 95% confidence level) only in Esfahan station. On the basis of the results of initial and modified Mann–Kendall tests, the negative trend of SPI was significant (at 95% confidence level) in seven and four stations, respectively. Therefore, not only the trend value but also the number of stations that had a significant trend was changed by using the modified Mann–Kendall test (with removing all significant autocorrelation coefficients). Figures 7 and 8 show the effect of significant autocorrelation coefficients on the results of trend values which were obtained using the modified Mann–Kendall test in comparison with the results, which were calculated using the initial Mann–Kendall test. As shown in these figures, there was a linear relationship between the positive values of Z statistic, which were calculated using both the initial and modified Mann–Kendall tests. But there was not this relationship between negative values of Z. Therefore, for correct analysis of the trend which exists in hydrological time series, all significant autocorrelation coefficients should be attended.

Fig. 6
figure 6

Values of initial (IMK) and modified (MMK) Mann–Kendall tests for the SPI index

Fig. 7
figure 7

Box plot of initial (IMK) and modified (MMK) Mann–Kendall tests values for the SPI index

Fig. 8
figure 8

Linear relationship between the values of initial (IMK) and modified (MMK) Mann–Kendall tests for the SPI index

Figure 9 shows the spatial distribution of dry and wet periods trend based on the SPI drought index calculated by the modified Mann–Kendall test ​​(the trend of wet and dry periods). This figure shows that the SPI trend was negative in the west, east, southeast, northeast, and northwest of Iran, but the SPI trend was positive in the south, some northern and central parts of Iran. Besides this study, the results of Tabari et al. (2012) also showed that, during 1966–2005, the annual trend of SPI in the majority of stations located in the east of Iran, was negative. The results of this figure also show that in studied stations located in Urmia Lake Basin, the trend of dry and wet periods was negative. Based on the results of the SPI trend, the reduction of water in Urmia Lake is reasonable.

Fig. 9
figure 9

Spatial distribution of wet and dry periods trend on the basis of SPI index (the values of modified Mann–Kendall test)

The values of trend line slope for the SPI index are presented in Table 6. The values of this slope for SPI index were negative in the majority of stations. The maximum negative and positive values of this index correspond to Tabriz and Esfahan stations, respectively.

Table 6 Values of trend line slope for SPI index

Similar to the obtained results, Tabari et al. (2012) and Nikbakht et al. (2013) reported the reduction for the SPI and PNI indices at most of the studied stations of Iran, respectively.

4 Conclusions

In this study, using annual precipitation data in 30 stations in Iran, nine precipitation-based drought indices including SPI, SPI2, SPI3 (introduced in this study), RAI, DI, PNPI, Z-score, CZI, and MCZI were compared. The SPI index was determined as the best index. On the basis of the results of the SPI index, drought monitoring of the studied area was assessed, and the obtained results showed that the studied area was faced with drought conditions, especially in 2008 and 2010.

Then, on the basis of the results of the SPI index, the annual trend analysis was conducted using the initial and modified Mann–Kendall tests. The trend analysis results showed the decreasing trend of the SPI index in the majority of studied stations. In the west and northwest of Iran, this decreasing trend was significant at a 95% confidence level. But the SPI index had an increasing trend in south and some parts of north and central of Iran. The positive trend of this index in Esfahan station was significant (95% confidence level). The values of the trend slope of the SPI index in most of the studied stations were negative. The maximum positive and negative values of trend line slope were observed in Esfahan and Tabriz stations, respectively. On the basis of the obtained results, for acceptable trend analysis of the SPI drought index, all significant autocorrelation coefficients must be removed.

Finally, results indicated that to correctly assess the drought, the existence indices should be compared and the best index should be selected.

For future studies, it is recommended that other indices, especially agricultural drought indices, are compared with each other, and the best index is selected for arid or semiarid regions such as Iran. Also, the comparison of meteorological and agricultural drought indices can be an interesting issue. In addition, the effect of climate change on drought conditions can be a pertinent issue that helps programmers to have a view of future conditions to make the right decisions and consequently reduce the possible damages.