1 Introduction

Precipitation and temperature are key meteorological parameters necessary for several hydro-climatological studies to identify the regional vulnerabilities due to global climate change. Indeed, precipitation is a key hydrologic variable that connects the atmosphere and land surface processes. Hence, the assessment of spatial variability of precipitation and temperature using appropriate methods is very much essential in the context of any pilot hydro-climatological study [23]. The precipitation in arid and semiarid climatic zones reflects great spatial and temporal variability due to wide swings in aerial temperature. The arid and semiarid environments dominate in Iran, which has eight distinct sorts of climatic zones as classified in Modarres and Sarhadi [22] based on factors such as proximity to the sea, elevation above mean sea level and the occurrence of the large atmospheric phenomenon such as subtropical highs. Agricultural productivity in dry lands depends on the total quantum of rainfall received in a season or a year as well as its distribution within that period [5]. Some of the methods used for the assessment of spatiotemporal variability of rainfall and temperature include geostatistics and classical statistics techniques [6]. In the analysis of ‘developed data’ through classical statistics, random variables are considered independent of each other, thus disregarding the influence between neighboring observations [27]. The spatial structure of rainfall (which is shown by the variogram) is highly variable depending on the type of climate and geography. It is also affected by accumulated precipitation over a time period. For example, a variogram which shows the spatial correlation of total daily rainfall is influenced by local weather conditions, while the monthly total rainfall is influenced by large-scale weather patterns [2].

Over time, extensive literature exists on the assessment of environmental variables and the analysis of climatic conditions and their spatial or temporal changes. Meduar et al.  [20] studied the spatiotemporal variability of rainfall and the mean air temperature for the state of Bahia, Brazil, and concluded that climatic variables show a close relation between each other and their spatial and temporal variability was mostly dependent on seasons. Mostafavi et al. [24] analyzed the spatiotemporal precipitation distribution in Babolrood watershed using geostatistical methods and their analysis showed that across all the studied stations, the lowest rainfall was observed during June month; southern stations received most of the rainfall in October month and the middle and northern stations received the most rainfall during December month. Similarly, Javidan et al. [14] performed spatiotemporal analysis of precipitation in east Azarbaijan province using precipitation trends. The study concludes that there was increase in rainfall over 50% of the province area within the first month of each rainy season. Asakereh et al. [9] used the monthly precipitation data of 30 synchronous stations located in the northwestern Iran (1985–2014). Based on kriging interpolation technique fitted over the area, they concluded that the summer precipitation had a cluster behavior and spatial factors of altitude and slope significantly influenced on summer rainfall behavior of the region. Fadavi et al. [12, 16] evaluated and compared the error rates of different models in estimating the interpolation of daily minimum temperature in Isfahan province of two different years with different number of stations. This study concludes that, the increasing number of stations improves the accuracy of interpolation methods. Likewise, Askareh [6] used geostatistical methods for spatial analysis of precipitation over Iran. Hudson et al. [13] fit the points modeled on a 5 km square grid and concluded that the kriging method provides a fitted temperature estimate that correlates with height at weather stations. Siabi et al. [27] evaluated the combined geostatistical methods in increasing the accuracy of climatic classification and also zoning of climatic elements over northeastern Iran. Evaporation, altitude, relative humidity and rainfall were introduced as the most effective parameters in modeling temporal and spatial variability of climate over the study area. Mehdizadeh et al. [21] studied the efficiency of geostatistical methods in the climatic zoning of a drainage basin around Lake Urmia. They claim that geostatistical methods were better than the classic statistical methods. Khosravi et al.  [16] classified the temperature and precipitation in Iran using geostatistical methods and cluster analysis. The results showed that simple kriging method of exponential type and ordinary kriging method of spherical type were the best methods for the interpolation of precipitation and temperature. Karandish et al.  [12, 15] analyzed the accuracy of geostatistical methods along with preparing the spatial distribution maps of air temperature in mountainous areas and the analysis of monthly and annual isothermal maps by kriging method showed decrease in air temperature values from east to west.

Ardabil province in Iran is characterized by cool climate (max 35 °C) even during the hot summer months and has the highest land use due to its climatic diversity among the provinces. Hence, the purpose of current study was to evaluate the spatiotemporal variability of rainfall of 11 synoptic stations and 40 rain gauge stations and mean air temperature of 11 synoptic stations of Ardabil province in the period 2009–2019.

2 Materials and methods

Ardabil province is a mountainous area, located in northwestern Iran between longitude ' 17° 47 to ' 55° 48 E and latitude ' 06° 37 to '42° 39 N. Except the Moghan plain in the northern part, the rest is covered by highs. With an area of 17,881 km2, this province covers 1.1 percent of the country's whole area. The highest and lowest annual rainfall in the province are 370 and 220.8 mm, which belongs to Sarein and Namin stations, respectively. The annual rainfall average of the province is 347.5 mm.

In the present study, to investigate the spatiotemporal variability of temperature, 11 synoptic stations of Ardabil province namely, the Ardabil airport, Ardabil, Parsabad, Khalkhal, Meshkinshahr, Sarein, Bilesvar, Garmi, Firoozabad, Namin and Nir, were selected to investigate the spatiotemporal variability of temperature, and for rainfall, in addition to 11 synoptic stations, 40 rain gauge stations were selected. The location of selected stations is shown in Fig. 1. Daily data of precipitation and mean air temperature were obtained from the Meteorological Organization of Ardabil province. The data period varied across a number of regional meteorological stations; therefore, only 11 years (2009–2019) data have been selected as a common period between all stations and finally converted into monthly data.

Fig.1
figure 1

Distribution of studied stations

To analyze the monthly descriptive statistics of precipitation and mean air temperature, statistical characteristics like mean and median were used to determine the position measurement; coefficient of variation was utilized to determine the dispersion; and skewness and kurtosis were employed to determine the shape of the dispersion.

Equations 1, 2, 3, 4 and 5 show how to calculate the dispersion, skewness and kurtosis coefficients [18]

$$C_{v} = \frac{S}{{\bar{X}}}$$
(1)
$$\mu _{3} = ~\frac{1}{N}\sum (x_{i} - \bar{x})^{3} ~~~~~~~~$$
(2)
$$C_{s} = \frac{{\mu _{3} }}{{S^{3} }}$$
(3)
$$\mu _{4} = \frac{1}{N}\sum (x_{i} - \bar{x})^{4}$$
(4)
$$C_{k} = \frac{{\mu _{4} }}{{S^{4} }}$$
(5)

where \(C_{v}\) is the coefficient of variation,\(~S\) is the standard deviation,\(~\bar{X}\) denotes data mean,\(~\mu _{3}\) denotes third moment around the average, \(\mu _{4} ~\) denotes fourth moment about the mean, \(x_{i}\) is the respective count of data, \(N\) denotes number of data points, \(C_{s}\) is the skewness coefficient and \(C_{k}\) denotes kurtosis coefficient. In order to check the temporal stability over the months, Pearson linear correlation analysis for each variable at the level of 5% probability was performed using XLSTAT 2016 software. Kriging method is based on quantitative measure of regionalized variable theory. It is the best nonlinear estimator as the variance of the estimate would be minimal and without any systematic error. The main advantages of kriging estimation include absoluteness in interpolation of points with a measure of the probable error linked with the estimates [24]. In all interpolation methods, the results are calculated from the weighted average of the available data, so that the least standard deviation is achieved. The rate of deviation of spatial points is determined by ‘Semivariogram,’ which is a function that calculates half the sum of squares of the difference in values [19]. Kriging interpolation depends on describing accurately the change in spatial correlation with distance.

Equation (6) shows the general kriging relationship:

$$Z^{*} = \mathop \sum \limits_{{i = 1}}^{N} \lambda _{i} ~Z\left( {x_{i} } \right)$$
(6)

where N is number of data, Z* is the estimate of spatial data, Z(xi) is the magnitude of observed data at the point i, \(\lambda _{i}\) is the sample weight of \(x_{i}\) which shows the importance of point i in kriging calculations, and the sum of the \(\lambda _{i}\) coefficients will be equal to 1. Kriging is an unbiased estimator with lowest estimation of variance. The values of the samples depend on their position, Therefore, in order to be able to use geostatistical methods, the existence of spatial correlation between data is examined. The criterion relation of the experimental Semivariogram γ is as follows [17]:

$$\gamma \left( h \right) = \frac{1}{{2~n\left( h \right)}}~\mathop \sum \limits_{{i = 1}}^{{n\left( h \right)}} [Z\left( {x_{i} } \right) - Z\left( {x_{i} + h)^{2} } \right]$$
(7)

shown in Eq. (7), γ(h) is the value of experimental Semivariogram at h distance, n (h) is the number of pairs of points in a particular class of distance and direction, xi and h + xi are sampling locations that separated by h, and Z (xi) and Z (xi + h) are the measured values of the Z variable in the mentioned place. Semivariogram is a function of distance and direction, so for variables that depend on direction (anisotropic spatial pattern) can be used [29].

In the kriging system, the experimental discontinuous variogram must be replaced by a theoretical continuous variogram. For this purpose, exponential and Gaussian models have been used and the relationships of which are given (8 and 9), respectively:

$$\gamma \left( h \right) = c \cdot {\text{Exp}}\left( {\frac{h}{r}} \right) = c \cdot \left[ {1 - \exp \left( { - \frac{h}{r}} \right)} \right]$$
(8)
$$\gamma \left( h \right) = c\cdot\left[ {1 - \exp \left( { - \frac{{h^{2} }}{{r^{2} }}} \right)} \right]$$
(9)

which are given in Eqs. 8 and 9, respectively, C is the upper limit and r is the range of quasi-variogram.

To analyze the spatial dependence index (SDI), Eqs. 10 and 11 for the exponential and Gaussian models were used.

$${\text{SDI}}_{{{\text{Exponential}}}} \left( \% \right) = 0.317 \times \left( {\frac{C}{{C_{0} + C}}} \right) \times \left( {\frac{a}{{0.5MD}}} \right) \times 100$$
(10)
$${\text{SDI}}_{{{\text{Gaussian}}}} \left( \% \right) = 0.504 \times \left( {\frac{C}{{C_{0} + C}}} \right) \times \left( {\frac{a}{{0.5MD}}} \right) \times 100$$
(11)

\(C_{0}\) is the nugget effect, \(C_{0} + C\) is the sill, a is the range and MD is the maximum distance between sampling points. Spatial dependence index is considered as strong for (SDI <25); moderate for (25% ≤ SDI <75%); and weak for (SDI ≥ 75%) [10]. To select the best variogram for each month, root mean square (RMS) and standardized root mean square (SRMS) criteria were used according to Eqs. 12 and 13.

$${\text{RMS}} = \sqrt {\frac{1}{n}~\mathop \sum \limits_{{i = 1}}^{n} \left( {Z\left( {x_{i} } \right) - \hat{Z}\left( {x_{i} } \right)} \right)^{2} }$$
(12)
$${\text{SRMS}} = \sqrt {\frac{1}{n}~\mathop \sum \limits_{{i = 1}}^{n} \frac{{\left( {Z_{0} - Z_{p} } \right)^{2} }}{{S^{2} }}}$$
(13)

In the above relations, 'n' is number of points, \(~Z\left( {x_{i} } \right)\) is the actual amount of information at point xi,\(~\hat{Z}~\left( {x_{i} } \right)\) is the information estimated and S is the variance. The best estimate for variogram would be least RMS and SRMS close to 1. RMS can be estimated in all local expressive methods, but SRMS can only be calculated and estimated in the kriging method [11].

3 Results and discussion

The present study utilized rainfall data of 11 synoptic stations and 40 rain gauge stations and mean air temperature data of 11 synoptic stations of Ardabil province for the period 2009–2019. The statistical characteristics of the mentioned parameters in the studied stations are presented in Table 1. The proximity of the mean and median values to each other, and also the proximity of the skewness coefficient to zero and the kurtosis coefficient to 3, shows the symmetric distributions. There was an absence of the mentioned conditions for the monthly data of this study indicating that the values of the monthly mean are asymmetric.

Table 1 Statistical characteristics of meteorological parameters used

According to the classification presented by Warik and Nelson [33], Cv < 12% shows small changes, 12% <Cv < 60% moderate and Cv > 60% high.

According to the Cv values in Table 1, July and August have a lot of changes and other months have moderate changes; the most and the least changes are related to the months of August and April, respectively. The mean temperature varies moderately from March to November and varies widely in January, February and December. The high coefficient of variation indicates the disorder and unpredictability of the parameters in different months and the less coefficient of variation, indicates stability and uniform time distribution.

Silva et al.  [30] with using Uberaba-MG data confirmed that Cv is moderate to high for rainfall and stated that the lack of rainfall in some years of this series in the dry season may explain the variations. The results of the present study are in accordance with the study of Mostafazadeh and Mehri [25], so that they estimated the coefficient of change as medium in the central part of Ardabil by evaluating the changes in the seasonal precipitation index. This assessment shows a uniform decrease in precipitation in different months which can be related to the effect of elevation and the source of precipitation of the region.

The results of Pearson correlation analysis between the monthly mean of the studied variables are presented in Table 2. Pearson correlation coefficient is numerically between −1 and +1, The correlation between 0 and 1 shows a positive correlation and that between −1 and 0 shows a negative correlation and how much these values being closer to 1 or −1, their correlation would be stronger.

Table 2 Pearson linear correlation analysis

When evaluating the behavior of variables between different months of the years, the difference between the monthly mean is observable. November, September and April rainfall has a negative correlation which means low spatial continuity and temporal stability manner, and due to the correlations with values close to zero, this type of inverse correlation will be weak. In other months, the correlations are positive and direct. For the mean air temperature, there is no negative correlation between the months. The results of Mousavi’s study [26] showed that the mean of annual temperature in Ardabil station does not have a significant trend, but the annual rainfall trend is significant and has a downward trend.

The results of study and analysis of temporal–spatial changes of precipitation and temperature of Ardabil station using Pearson method illustrate that there was a direct and very small connection between the two parameters, and in a low extent, 0.08% of precipitation changes were associated with temperature. Finally, Pearson linear correlation coefficient demonstrated that at the level of 95% confidence, there is no significant relationship between temperature and precipitation in Ardabil [31].

The kriging geostatistical method was used to evaluate the spatial distribution of precipitation and mean air temperature. The models and parameters of variogram are given in Table 3. Exponential and Gaussian variograms have been used in the present study. For each month, a variogram was selected which had a lower RMSE and a SRMSE close to 1. For rainfall, except for three months and for the mean air temperature, except for four months exponential model was selected as the best model.

Table 3 Models and parameters of variogram for monthly mean rainfall and mean air temperature

In the results of [1] article, for spatial zoning of precipitation and temperature using spatial statistics methods in the north of Ardabil province, the best variogram model was the Gaussian model and the data have a strong spatial structure.

The amount of the nugget value (C0) in all variograms is very low, compared with the sill value (C0 + C). The amount of C0 in rainfall and the mean air temperature, respectively, are from 0 to 0.62 and 0 to 0.37 m-2. The value of the range (a) is an important parameter of the variogram and represents the distance between two points, where there is a spatial dependence [4]. The value of (a) for precipitation and mean air temperature varies from 118.74 to 550.56 km and 128.41 to 194.07 km, respectively. The high range of the variogram indicates a low spatial variability because the impact area increases and the similarity between neighboring points and thus the spatial continuity also increases. The highest values of (a) for precipitation were in November, but temperature had a smaller range, which means that the spatial variation for the temperature parameter is greater than precipitation.

The high amount of range and coefficient of variation and also standard deviation are an emphasis on large changes in precipitation in the location and instability and uncertainty of the amount of precipitation received. The existence of maximum precipitation is due to the effect of spatial factors such as high altitude and latitude on the occurrence [8].

Spatial dependence index (SDI) has been used to examine the spatial dependence between the studied parameters and analysis according to the classification of Cambardella et al. [10]. According to the mentioned division, except for May, July, September and October which has a moderate spatial dependence, the other months of the rainfall parameter have a strong spatial dependence.

As for mean temperature, all months have moderate spatial dependence. The existence of spatial dependence geostatistics is vital for accurate mapping through kriging [32].

By analyzing rainfall maps (Fig. 2), it can be seen that the maximum rainfall with more than 111 mm occurs in May on the western part of the province and the minimum rainfall with less than 2 mm occurs in July on most area of the province. The precipitation temporal distribution is not uniform, and the maximum amounts of precipitation are generally concentrated in spring, early autumn and late winter.

Fig. 2
figure 2

Thematic rainfall maps of the time evolution month by month for Ardabil

According to Fig. 3, the warmest and coldest months are, respectively, in July and January, and in July, the eastern to northeastern parts and part of southwest of the province have the highest temperature, and in January, the southern part of the province has the lowest temperature.

Fig. 3
figure 3

Thematic temperature mean maps of the time evolution month by month for Ardabil

4 Conclusions

Rainfall and temperature are two of the most important climatic parameters. Recently, geostatistical methods play an important role in spatial mapping and aid in water resources planning. Geostatistical methods are suitable for the interpolation of the station information and examining spatial and temporal changes. Therefore, in the present study, spatiotemporal analysis was performed using kriging geostatistics technique based on meteorological data of rainfall of 11 synoptic stations and 40 rain gauge stations and mean air temperature of 11 synoptic stations of Ardabil province for the period 2009–2019. High coefficient of variation means low uniformity of rainfall and temperature in different months. Among used variograms in the present study (exponential and Gaussian), in most of the months due to less RMS and SRMS close to 1, the exponential model was selected as the best model, and according to the values of variogram range, the spatial variability of temperature was more than that of precipitation. The western part of the province received the most rainfall in May (111 mm). According to interpolation maps, July was the hottest and least rainy month.