1 Introduction

Streamflow is a river basin’s integrated reaction to rainfall and other relevant hydrological parameters under certain climatological conditions. Factors known to affect a basin’s reaction to precipitation are temperature, wind speed, humidity, soil type, land cover, and land use (Hodgkins et al. 2003; Rakhshandehroo et al. 2010). Streamflow regimes can be characterized by some such features as rate, magnitude, duration, timing, and fluctuations over time scales including hourly, daily, monthly, annual, and multi-annual streamflow (Krasovskaia and Gottschalk 2002; Morán-Tejeda et al. 2011). These characteristics serve in describing the whole streamflow regime and related phenomena such as drought periods and flood events. Besides, by describing streamflow through these characteristics, the long-term changes in a streamflow regime can be investigated explicitly (Poff et al. 1997; Richter 1996; Yang et al. 2005).

Since streamflow records vary in period scales of hours, days, weeks, months, seasons, years, and multi-years, long streamflow period observations are necessary to analyze and describe a river’s streamflow regime (Post and Jones 2001). To gain complete understanding of long-term streamflow regime changes, related statistical analyses should be conducted using extensive records—preferably longer than 50 years; trends quantified from short records may be part of climate fluctuations (Gautam and Acharya 2012; Kundzewicz and Robson 2004; Opitz-Stapleton and Gangopadhyay 2011). There are several reasons why changes in streamflow take place, for instance climate variability, human activities, and geomorphic changes, which are perhaps the principal causes of streamflow change (Sang et al. 2013). Variations in streamflow evolve gradually, at a slow pace, and such changes are not only linked by local but also regional weather patterns via local/regional climate dynamics. Over the past century, a significant decrease in annual streamflow has been observed in approximately a quarter of the world’s rivers (Descroix et al. 2012; Walling and Fang 2003; Yang et al. 2005; Yue et al. 2003; Zhang et al. 2000).

The streamflow regime of rivers is not only significant from a hydrologic viewpoint but also from both socioeconomic and natural perspectives. In fact, ecosystems are extremely sensitive to hydrological variations in a river’s regime because they depend on river flow to conserve their composition and structure (Richter 1996). Investigating the variations in a streamflow regime is a key to understanding the influence of climatic variability and fluctuations on river hydrologic systems. The enhanced awareness of streamflow regimes is essential for the development of river system and surface water resource planning, design, and management, as well as for the improvement of flood protection. Furthermore, decision makers will benefit for future planning, while water resource planners will be better able to devise adaptive management strategies to deal with such probable changes. Better streamflow regime analysis also helps to forecast the expected timing of low and high flow over certain periods as well as identify future research directions and requirements (Gautam and Acharya 2012; Xu et al. 2012).

Investigations into the long-term changes of streamflow regime have witnessed growing interest over the last years. Several studies have been conducted worldwide to examine the possible long-term changes in streamflow regime. Sun et al. (2013) studied the changes in annual streamflow using climate elasticity in Poyang Lake basin, China. They examined streamflow datasets at four hydrological stations from 1961 to 2000. A minor change has been observed in the timing of the mass center of the streamflow. The annual streamflow increases at different rates, with a statistically significant trend at the 5 % level. Chen et al. (2013) quantified the effects of climate variability and human activities on streamflow for Kaidu River basin in an arid region of northwest China over the period from 1960 to 2009. Aberrant increases have been observed in annual streamflow. Ahmad et al. (2013) analyzed the annual maximum streamflow in Terengganu, Malaysia using TL-moments approach. Their study revealed that the generalized Pareto and generalized logistic distributions are appropriate for describing the annual maximum streamflow series in Terengganu, Malaysia. Hannaford and Buys (2012) evaluated the trends in river flow regime in the UK for the 1969–2008 period. Trends were characterized for four seasons. It was found that runoff and high flow increased in winter and autumn, flow decreased in spring, and no changes occurred in summer. Gautam and Acharya (2012) presented an initial widespread trend detection system of streamflow in Nepal. They applied Mann–Kendall and Sen’s trend tests on two data sets of streamflow. It was revealed that 24 % of variables had trends, of which 41 % were descending and 59 % ascending. Miao et al. (2012) aimed to explore the reasons behind streamflow changes in the Yellow River. Their results showed that streamflow presented a downward trend from 1956 to 2008. Morán-Tejeda et al. (2011) looked at variability in the Duero River basin’s regime (northern Spain) for the 1961–2006 period. They categorized streamflow regime types by applying the principal component analyses. A noticeable drop in river flow was observed in winter and spring. They also noted that river regime fluctuations occurred in both the timing and magnitude directions. Korhonen and Kuusisto (2010) studied the streamflow regime fluctuations in Finland for the 1912–2004 period. Generally, no variations in mean annual flow were detected, but remarkable variations in seasonal means of streamflow were observed. The mean monthly streamflow in winter and spring increased, but there were no changes in autumn. Burn et al. (2010) examined the changes in extreme high and low flow events in Canada. They applied the Mann–Kendall test on 68 streamflow stations over at least 50 years. The results revealed a decrease in the magnitude of annual maximum flow. Kumar et al. (2009) evaluated the streamflow trend for 31 streamflow stations using records from more than 50 years. Trends were calculated using the Mann–Kendall test for streamflow characteristics including low, mean, and high annual streamflows. They observed a decreasing trend in low and mean flow conditions in roughly 70 % of stations. Ma et al. (2008) investigated the changes in annual streamflow for eight sub-basins in the Shiyang River basin over 50 years. They applied the Kendall and Pettitt tests to detect variations in streamflow. It was revealed that the annual streamflow in five of the eight sub-basins significantly decreased. Birsan et al. (2005) studied the trends from the daily streamflow data of 48 basins in Switzerland using the Mann–Kendall test over three sub-periods (1931–2000, 1961–2000, 1971–2000). An increase in annual runoff in about 60 % of the stations was recorded. Burn et al. (2004) studied the hydrologic trends of the Liard River basin in Canada. According to results, the river’s hydrologic trends are associated to changes in both climatological and large-scale atmospheric progression. Using a trend test, Xiong and Guo (2004) explored the variations in the annual streamflow of the Yangtze River. They reached the conclusion that there was no significant trend in annual maximum flood, but there was a decreasing trend in the annual minimum and mean streamflows.

The abundance of research works including the abovementioned, which mainly explore the long-term changes of streamflow, along with additional international research works reveal the great importance of gaining better understanding of river flow regimes which is a fundamental tool for river systems and surface water resource planning, design, and management. Thus, it is the interest of the authors to investigate the long-term changes in the streamflow regime of the Selangor River as one the main rivers in Malaysia and which generally represents tropical rivers in the south eastern Asia region.

The main objective of this study is to identify the long-term variations in the annual streamflow regime of the Selangor River over a 50-year period from 1961 to 2010. This is accomplished by investigating the changes in nine hydrological variables describing the annual streamflow and changes in yearly duration of high and low streamflows. The analyses were conducted via two time scales: yearly changes and sub-periodic changes. The sub-periods were derived from the segmentation of the 50-year period into seven sub-periods in two ways, namely the change-point test and direct technique. The paper is organized in five sections beginning with the introduction. The study area is described in the second part. The third section comprises the data and research methodology, while the fourth section is devoted to results and discussion. The conclusions are specified in the fifth and final part.

2 Study area

The study area for this research work is the Selangor River basin. The Selangor River is one of the rivers flowing along the Malaysian Peninsula’s west coast. It is the main river in the state of Selangor. The catchment area is nearly 1,960 km2—covering approximately 25 % of Selangor state. The main tributary of the Selangor River starts at the border between the states of Selangor and Pahang at an elevation of 1,700 m. The Selangor River streams nearly 110 km from the northeast to the southwest, flowing in the state of Selangor through three districts: Kuala Selangor, Hulu Selangor, and Gombak. The southern border of the river basin touches the outskirts of Kuala Lumpur City (Hassan et al. 2004; Lee 2002; Samsudin et al. 2011). The Selangor River basin is the main water source for Selangor and Kuala Lumpur. About 50 % of the water consumed in these two states is obtained from the Selangor River (Subramaniam 2004). Figure 1 presents the location map of the Selangor River basin in peninsular Malaysia.

Fig. 1
figure 1

The location map of Selangor River basin

2.1 Climate and rainfall in the Selangor River basin

The Selangor River basin has a humid, tropical climate much like Peninsular Malaysia. The characteristic climate feature here is uniform temperature with minimal variation throughout the year. On average, the temperature rises during the day up to 32°C and drops to 23°C at night. The highlands are slightly cooler. The average annual rainfall varies between 2,000 and 3,000 mm throughout the basin. Open water evaporation ranges from 1,600 to 1,800 mm, while the relative humidity is 80 % on average each year (Breemen 2008; Shafie 2009; Zin et al. 2013).

2.2 Hydrology of the Selangor River basin

The main tributaries of the Selangor River are Rening, Kerling, Batang Kali, and Guntong. Several minor branches join the major ones or the river itself. The upstream branches are fast-flowing streams through mountain with granite and sedimentary bedrock, and they are at some points interrupted by rapids and waterfalls. In the lower basin area, the river enters the fluvial plain and becomes a low-gradient, meandering river. The river bed slope in the last 30 to 40 km is roughly zero, and at some sites, the slope is negative (Breemen 2008). The river’s average streamflow is 57 m3/s. Seasonal variations in rainfall cause flow to exceed 122 m3/s or to fall below 23 m3/s around 10 % of the time (Nelson 2002). Figure 2 presents the mean annual streamflow of the Selangor River over a 50-year period between 1961 and 2011.

Fig. 2
figure 2

Mean annual streamflow (m3/s) in the Selangor River over a 50-year period from 1961 to 2010

3 Data and methodology

3.1 Data

Data is considered the backbone of studies on changes in hydrological systems, thus, high quality data is vital. Data must undergo quality control prior to conducting hydrological analyses such as studying long-term variations in streamflow regime. For complete understanding of long-term variations in streamflow regime, related statistical analyses should be conducted using records from lengthy periods, preferably longer than 50 years, as changes quantified from short periods may be components of climate fluctuations (Kundzewicz and Robson 2004; Walling and Fang 2003).

Research data was sourced from hydrological stations located in the Selangor River basin. In the Selangor River basin, there are two streamflow (SF) stations, seven water level (WL) stations, and more than 30 rainfall (RF) stations. The two streamflow stations are Rantau Panjang and Ampang Pecah. Unfortunately, only the Rantau Panjang SF station has sufficient streamflow records of hourly streamflow data from 1961 to 2012 to study the long-term changes in streamflow regime. This station is located in the downstream area of the Selangor River. All major tributaries join the Selangor River before this station; for this reason, the streamflow at the Rantau Panjang station is considered the best indicator of streamflow in the study area (Seyam and Othman 2014). Figure 3 presents the location of the two streamflow stations and the main tributaries in the Selangor River basin.

Fig. 3
figure 3

The locations of the streamflow stations and the main tributaries in the Selangor River basin

3.2 Methods

Prior to analyzing the long-term variations in streamflow regime over 50 years from 1961 to 2010 in the Selangor River, the streamflow data over the study period from the Rantau Panjang station was preliminarily examined. The initial examination entailed testing the data with the assumptions of independence, normality, and homogeneity tests using the Pearson correlation coefficient and Shapiro–Wilk and Pettitt’s tests, respectively. The hydrological variables which best represent the long-term change of streamflow were then determined. Nine hydrological variables were selected to represent the long-term changes in streamflow regime over the study phase. The analyses additionally included an investigation of the changes in the yearly duration of high and low streamflows throughout 50 years and testing for any trend in changes.

The analyses of the long-term changes in hydrological variables and yearly duration of high and low streamflows were conducted based on two time scales, yearly changes, and sub-periodic changes. The sub-periods were obtained by dividing the 50-year interval into seven sub-periods. The segmentation process involved two techniques: the change-point test and direct method.

3.2.1 Preliminary data analysis

The independence test

The hydrological time series are generally highly persistent, and even measurements far apart in time can exhibit strong interdependence (Montanari et al. 2000). The independence test was applied to decide whether any significant correlation exists through the annual streamflow records of the Rantau Panjang station over 50 years from 1961 to 2010. This test was conducted by computing the correlation coefficient (r) between the time series. There are different means of calculating r with the most widely used being the Pearson correlation coefficient. It is obtained by dividing the covariance of the two variables by the product of their standard deviations as described in Eq. 1.

$$ r=\frac{{\displaystyle {\sum}_{i=1}^n\left({X}_{\mathrm{obs}, i}-{\overline{X}}_{\mathrm{obs}}\right)\cdot \left({X}_{\mathrm{mo}\;\mathrm{del}, i}-{\overline{X}}_{\mathrm{mo}\;\mathrm{del}}\right)}}{\sqrt{{\displaystyle {\sum}_{i=1}^n{\left({X}_{\mathrm{obs}, i}-{\overline{X}}_{\mathrm{obs}}\right)}^2}\cdot {\displaystyle {\sum}_{i=1}^n{\left({X}_{\mathrm{mo}\;\mathrm{del}, i}-{\overline{X}}_{\mathrm{mo}\;\mathrm{del}}\right)}^2}}} $$
(1)

When the absolute values of correlation coefficient for different lag times calculated for a time series data consisting of n observations are not larger than the typical critical value (i.e., 1.96/√n, corresponding to the 5 % significance level), the observations in this time series data can be accepted as independent from each other (Douglas et al. 2000; Noguchi et al. 2011).

The normality test

The normality test is a statistical test used to examine whether the data is fine-modeled by a normal distribution or not. It is also used to calculate the likelihood that the studied variables will be normally distributed (Coin 2008; Tenreiro 2011). Normality test is extensively utilized in statistical analyses (Hwang and Wei 2006). About 40 normality tests are available in statistical literature (Coin 2008; Declercq and Duvaut 1999; Lesaffre 1983; Önder and Zaman 2005; Razali and Wah 2011; Zhang and Wu 2005). The Shapiro–Wilk test is considered one of the most popular tests for checking normality in scientific and hydrologic research (Jurečková and Picek 2007; Kottegoda 1984).

In this research, the normality of average annual flow from 1961 to 2010 was verified with the Shapiro–Wilk test. This test was published in 1965 by Samuel Shapiro and Martin Wilk, and it was later modified by Royston in 1992 and again in 1995 (Razali and Wah 2011; Royston 1992). The output of the Shapiro–Wilk test consists of two values: W and P. The value of W lies between 0 and 1. High W values lead to acceptance of normality whereas smaller W values lead to rejection. When W is 1, it indicates full data normality. For the P value, if it is higher than the selected significance level, normality will be accepted (Razali and Wah 2011). Another method of testing the normality is a graphical technique of comparing the frequency distribution (histogram) of streamflow records of the Rantau Panjang station over 50 years from 1961 to 2010 and the normal probability curve. The data is deemed to be normally distributed if its histogram resembles the normal distribution of data.

The homogeneity test

The homogeneity test is a statistical test for detecting data variability and checking whether a data series has been sourced from homogeneous or heterogeneous records. This is a fundamental test in hydrological statistical analysis (Kang and Yusof 2012; Qin et al. 2009). In general, when the hydrological data series is homogeneous, it means that data records were recorded with similar instruments, techniques, and environments (Kang and Yusof 2012). Literature offers several methods of testing the homogeneity of hydrological time series data such as the standard normal homogeneity test, Buishand’s test, and Pettitt’s test (Buishand 1982; Chiu and Wang 2009; Firat et al. 2010; Pettitt 1979; Rocha et al. 2012; Wang et al. 2007). In this research, Pettitt’s test was applied to check the homogeneity of streamflow records from the Rantau Panjang station over 50 years from 1961 to 2010.

3.2.2 Segmentation of the study period

To study and analyze the long-term changes in streamflow regime over long periods such as 50 years, sometimes, yearly changes are not sufficient to describe the trend of long-term changes. For this reason, lengthy periods could be subdivided into short sub-periods, i.e., 7, 10 years. The short sub-periods are generally formed by sequential years with similar hydrological characteristics (Descroix et al. 2012). The segmentation process thus simplifies analysis and helps present the long-term changes over long periods. A number of segmentation techniques exist such as the Hidden Markov model, the Hubert model, and the change-point test (Gedikli et al. 2010; Hubert 2000; Kehagias 2004; Kehagias et al. 2006; Petersen-Øverleir and Reitan 2005). The change-point is a statistics test applied to identify the date (s) at which an abrupt change occurs in a data series. The identified dates show a shift in the mean or variance potentially due to other contemporaneous events like a concomitant shift in other climatic variables or major anthropogenic interventions, e.g., dam construction for regulating streamflow (Beaulieu et al. 2009; Rougé et al. 2012; Villarini et al. 2011).

In literature, many methods have been applied to check for the presence of change-points in the data of long periods such as Bayesian inference, moving t test, and Pettit’s test (Descroix et al. 2012; Ma et al. 2008; Rougé et al. 2012; Xiong and Guo 2004; Zheng et al. 2007). In this research, the 50-year period 1961–2010 was divided into seven sub-periods by two methods. The first was Pettit’s test, which was applied to verify the presence of change-points over the 50-year phase from 1961 to 2010. The second technique was direct segmentation of the study period into seven equal sub-periods.

3.2.3 Determining the hydrological variables

The long-term changes in streamflow regime could be explored via streamflow characteristics like magnitude, rate, frequency, duration, timing, and rate of change. These characteristics are usually applied in three main conditions: average flow, low flow, and high flow (Poff and Ward 1989). A wide range of hydrological variables can help assess the changes in the characteristics of streamflow (Moliere et al. 2009). In this research, the changes in streamflow were studied based on streamflow rate (discharge), which is the amount of water passing through a specified site per unit of time (Poff et al. 1997; Richter 1996; Yang et al. 2005).

Nine hydrological variables describing streamflow were chosen to study long-term modifications of the Selangor River’s streamflow regime. The variables are mean annual flow (SF1), maximum annual flow (SF2), minimum annual flow (SF3), maximum monthly flow per year (SF4), minimum monthly flow per year (SF5), the range between maximum and minimum streamflows (RA), standard deviation (SD), coefficient of variation (CV), and the pluviometric ratio (PR). SF2 represents the maximum annual flow throughout the sub-period; SF3 is the minimum annual flow over the sub-period; SF4 signifies the maximum monthly flow over a single year; SF5 corresponds to the minimum monthly flow over a single year; SD and CV are statistical measures of dispersion in a data series around its mean; and the CV of annual streamflow data series represents the ratio of standard deviation to the mean annual flow. The CV is valuable in matching the degree of dispersion and variation among data series (Albrecher et al. 2010; Boik and Shirvani 2009). PR corresponds to the ratio between maximum and minimum streamflow values, and it provides initial indication of seasonal variability. When the PR value is close to 1, seasonal variability is small, but when the value is above 1, seasonality increases and seasonal variability is high (Laraque et al. 2007). SD, CV, RA, and PR are calculated twice based on two time scales: yearly and sub-periodic. The values of all variables were derived from the hourly streamflow records at the Rantau Panjang station over a 50-year period (1961–2010). Table 1 presents the nine hydrological variables and their measurement units.

Table 1 The hydrological variables used to describe the annual streamflow

3.2.4 The long-term change analyses

The long-term change analyses include an investigation of the variations in nine hydrological variables (Table 1) over the 50-year period from 1961 to 2010 along with testing the trend of changes. Analysis was conducted based on two time scales. The first is the evaluation of yearly changes and the second depends on the sub-periodic changes. The sub-periods were obtained by segmenting the 50 years into seven sub-periods via the direct and change-point test techniques.

The work also takes into account an investigation of the changes in the yearly duration of high and low streamflows from 1961 to 2010 and testing the trend of changes. For the high and low streamflows, the assessment was generally with respect to their duration and magnitude. Both features play an essential role in analysis (Mirabbasi et al. 2012). Analysis is based on the two previously mentioned time scales. Meanwhile, the study of yearly high streamflow duration comprises three levels, danger level, warning level, and alert level. The yearly duration of low streamflow analysis was conducted at a single level that when the streamflow fell below 14.5 m3/s, which represents about 25 % of the average streamflow over the study period.

4 Results and discussion

4.1 Preliminary data analysis

The preliminary data analysis includes the independence test, normality test, and homogeneity test. The results of these tests prove that the annual streamflow data is considered independent, normally distributed, and homogeneous.

The correlation coefficient of the annual streamflow data for multi-years lagged records was applied to test the independency. Regarding the calculated r of lag-1 year to lag-11 year of the annual streamflow, it is accepted as independent data at the 5 % significance level since the value of r is smaller than the typical critical value 1.96/√n = 1.96/√49 = 0.28 as described in Table 2. As an example, the r of lag-2 year is 0.06, and it is smaller than 0.28. Table 2 presents the correlation coefficient of lag-1 year to lag-11 year of the annual streamflow.

Table 2 The independence test of the annual streamflow data

The Shapiro–Wilk test was applied to check the normality of streamflow data. Based on the test results W (0.976) and P (0.411), annual flow time series data are considered to be normally distributed. The normality was also checked by graphical technique by exploring the resemblance between the frequency distribution of the average annual streamflow data (histogram) and normal probability curve. Figure 4 demonstrates a very high resemblance between the frequency distribution and normal probability curve. Thus, the average annual flow time series is considered normally distributed.

Fig. 4
figure 4

The frequency distribution and normal probability curve of average annual streamflow

Pettitt’s test was applied to verify the homogeneity of the annual streamflow data. The P value (two-tailed), computed using 10000 Monte Carlo simulations, is 0.161. According to the calculated P value which is higher than the significance level P value of 0.05, the average annual flow time series is considered homogeneous time series data.

4.2 Segmentation of the streamflow data

The 1961 to 2010 time frame was separated into seven sub-periods by means of two techniques. The primary method is direct segmentation in which the study period is divided into seven identical 7-year sub-periods. The subsequent technique entails determining multiple change-points, as calculated using Pettitt’s test. This second technique leads to the subdivision of the study period into seven, non-identical sub-periods. The sub-periods obtained in the two ways are presented in Table 3.

Table 3 The sub-periods obtained via two segmentation techniques

4.3 The changes in hydrological variables over 50 years

4.3.1 The yearly changes

An investigation of the differences in the nine variables representing annual streamflow in the Selangor River over 50 years (1961–2010) was carried out based on a yearly time scale to provide an overall view of the long-term changes in streamflow regime. Figure 5 demonstrates the three time series of mean annual flow (SF1), maximum monthly flow per single year (SF2), and minimum monthly flow per single year (SF3). There is no apparent significant trend in the three time series. Although Fig. 5 reveals nearly negligible changes and a minor trend in the three time series, it is noted that the time series values get farther from the mean values with respect to time. The time series of SD, CV, RA, and PR over 50 years (from 1961 to 2010) are presented in Fig. 6. There is no clear trend in the SD, CV, RA, and PR variables to describe the dispersion of annual streamflow data. The results of the variable changes based on a yearly time scale justify the need to study long-term changes of streamflow based on a sub-periodic time scale as obtained via two segmentation techniques explained previously.

Fig. 5
figure 5

The changes in mean annual flow, maximum monthly flow per year, and minimum monthly flow per year over the study period

Fig. 6
figure 6

The changes in hydrological variables over the 50-year period. a Standard deviation (SD). b The range between maximum and minimum streamflows (RA). c Coefficient of variation (CV). d The pluviometric ratio (PR)

4.3.2 The sub-periodic changes

The changes over the sub-periods obtained via the change-point technique

The hydrological variable changes over the sub-periods obtained via the change-point technique are shown in Fig. 7. Although the analysis revealed nearly negligible changes in mean annual flow throughout the sub-period as presented in Fig.7a, the maximum annual flow progressively increased, especially from the fourth sub-period. According to this result, the incidence of high flow increased substantially in the latter sub-periods. Such changes lead to the formation of suitable hydrological conditions for floods to occur. As a direct result, flood events will probably happen more frequently in future. Although the maximum annual flow generally increased, it is noticed that the minimum annual flow decreased significantly, particularly from the fifth sub-period. Obviously, low flow occurrence increased substantially in the latter sub-periods, leading to suitable hydrological conditions for droughts to take place. As such, drought periods may occur more often in future. The analysis in Fig.7b indicates that the difference between maximum and minimum yearly streamflows increases sharply with respect to time. Figure 7b also shows a continuous increment of standard deviation with respect to time. In other words, the annual streamflow gets farther from the mean annual flow, another indication of the increasing probability of high and low flows occurring.

Fig. 7
figure 7

The changes in the hydrological variables over the sub-periods obtained by change-point test technique. a mean, maximum, and minimum annual flows. b Standard deviation and variance between maximum and minimum annual streamflows. c Coefficient of variation and pluviometric ratio

In the early sub-periods, the PR values are close to 1 (Fig. 7c), demonstrating that the dispersion in annual streamflow data is very low. In the later sub-periods, there is a continuous increase in pluviometric ratio. The ratio reaches 2.89 and 2.35 in the last two sub-periods, meaning that annual variability of streamflow data is becoming very high. This is an additional indicator of increased probability of high and low flow incidences. Figure 7c indicates a constant increase in the CV with respect to time. The CV values in the last two sub-periods are double compared to the first two sub-periods. Clearly, the dispersion of annual flow around the mean becomes very high in later sub-periods. These analyses therefore prove the presence of large changes in the annual streamflow regime of the Selangor River along with the fact that these changes can create suitable hydrological conditions for the increased probability of floods and droughts occurring in future.

The changes over the sub-periods obtained via the direct technique

The changes of hydrological variables over the sub-periods obtained by direct technique are illustrated in Fig. 8. Generally, the hydrological variable changes over the sub-periods obtained by direct method are similar to the changes over the sub-periods obtained by change-point test. This similarity emphasizes the results regarding the long-term streamflow regime variations of the Selangor River and provides additional evidence that the observed changes in hydrological variables can produce suitable hydrological conditions for the increased probability of floods and droughts happening in future.

Fig. 8
figure 8

The changes in hydrological variables over the sub-periods obtained by direct technique. a Mean, maximum and minimum annual flow. b Standard deviation and variance between maximum and minimum annual streamflows. c Coefficient of variation and pluviometric ratio

4.4 The changes in high and low streamflow durations

The yearly duration of high and low streamflows was investigated over 50 years (1961–2010). The work includes an assessment of the changes in high and low streamflow durations throughout the 50 years along with testing for any trend in changes as described earlier.

The high streamflow duration was looked at from three levels: danger level, when the streamflow is higher than 250 m3/s; warning level, when the streamflow is above 180 m3/s; and alert level, when the streamflow is more than 160 m3/s. The three levels are as determined by the Department of Irrigation and Drainage (DID). The low streamflow analysis was run in a single level that is when the streamflow drops below 14.5 m3/s (which represents roughly 25 % of the average annual streamflow). Figure 9 illustrates the yearly duration of high and low streamflows over 50 years. There is an apparent significant increase in the danger level duration, especially in the last decade while minor change in the duration of warning and alert levels takes place. A slight change in the yearly duration of the low streamflow was also noticed through the study period. Three-year moving average of yearly duration of the high and low streamflows was applied to study the overall trend of changes in the study interval. Figure 10 presents the three-year moving average of the yearly duration of high and low streamflows over 50 years and the trend line of yearly data. The three moving average confirms the evident considerable increase in the duration of danger level. Figure 10 also indicates a slight increase in the duration of warning level, no changes in the duration of alert level and a slight decrease in the duration of low streamflow. Such changes in the yearly duration of streamflow danger level lead to the formation of suitable hydrological conditions for floods to occur. As a direct result, flood events would probably happen more frequently in future.

Fig. 9
figure 9

The yearly duration of high and low streamflows over 50 years. a Danger level. b warning level. c Alert level. d Low streamflow

Fig. 10
figure 10

Three-year moving average of the yearly duration of high and low streamflows. a Danger level. b Warning level. c Alert level. d Low streamflow

5 Conclusions

A new advanced analytical approach to investigating the long-term changes of the annual streamflow regime in the Selangor River over a 50-year period from 1961 to 2010 has been developed in this paper. The long-term change analysis includes a study of the changes in nine hydrological variables that describe annual streamflow, as well as an investigation of the modifications in the yearly duration of high and low streamflows. The analyses were conducted based on two time scales, namely yearly changes and sub-periodic changes. The sub-periods were the result of study period segmentation into seven sub-periods by two techniques: the change-point test and direct technique. Prior to conducting the long-term change analyses, the streamflow data was first tested with the assumption of independence, normality, and homogeneity tests using the Pearson correlation coefficient and Shapiro–Wilk and Pettitt’s tests, respectively. The tests’ results proved that the annual streamflow data can be considered independent, normally distributed, and homogeneous.

Even though analysis revealed nearly negligible changes in mean annual flow over the study period, the maximum annual flow generally increased while the minimum annual flow significantly decreased with respect to time. It was also observed that the variables describing the dispersion in streamflow data continually increased with respect to time.

An obvious increase was detected in the yearly duration of danger level of streamflow, a slight increase was noted in the yearly duration of warning and alert levels, and a slight decrease in the yearly duration of low streamflow was found. According to these results, the main conclusions drawn are as follows:

  • Apparent changes were observed in the hydrological variables that describe annual streamflow and yearly duration of high streamflow over the 1961–2010 study period; these changes prove that there are long-term changes in the annual streamflow regime of the Selangor River

  • The observed long-term changes in annual streamflow regime may potentially result in the development of suitable hydrological conditions that can increase the probability of flood and drought events occurring in future.

These results draw attention to the necessity to improve water resource management in light of the increasing probability of future droughts. Also, awareness is drawn to the development of flood protection plans in response to the increasing probability of future flood events. This work is an initial step toward reaching comprehensive knowledge about the changes and variations in the streamflow regime of the Selangor River basin. It raises awareness of the real need for higher understanding of the hydrology in the Selangor River basin, which would enhance water resource management and flood protection in the Selangor River basin to avoid the harmful effects that could ensue from the probable changes in annual streamflow regime.