Abstract
This document delves into evaluating wind power potential within Morocco’s Oriental region, encompassing an extensive study of 23 locations over 43 years. The analysis was conducted using the advanced MERRA2 data reanalysis system coupled with MATLAB software. Our comprehensive study aims to map the wind energy capabilities across these sites. We employed eight distinct algorithms to adapt the Weibull distribution for the wind speed data. Additionally, the research includes an analysis of the wind rose and assesses the Capacity Factor (
Introduction
The growing importance of renewable energies over fossil fuels is evident worldwide due to their many environmental and economic benefits. This transition to renewable energies has been widely recognized and supported by organizations such as the International Energy Agency (IEA, 2023). In 2020, renewables accounted for almost 29% of global electricity generation, while fossil fuels accounted for around 63%. However, the trend shows a significant shift toward renewables.
Wind power’s contribution to global electricity generation is expected to rise from 5% to 30% by 2050 (Farina and Anctil, 2022). For example, since 2000, the United States has increased its wind energy (WE) production capacity by an average of 22.6% per year, according to Renewable Energy Capacity Statistics data (IREA, 2021). This impressive growth testifies to the United States’ commitment to (WE) and its desire to transition to more sustainable energy sources. Moreover, this trend aligns with the significant advances in (WE) supported by research and innovation initiatives such as those led by Energy Science and Innovation (Energy, 2023). Total wind power capacity is expected to reach 224 GW in 2030 and 404 GW in 2050 (Can Sener et al., 2023).
In 2019, China led globally in newly installed (WE) capacity, reaching 26 gigawatts (GW) and achieving a total capacity of 236 GW. Despite this, (WE) comprised only 5.9% of China’s unlimited electricity usage (Gao et al., 2022; Shi, 2011). Meanwhile, India ranked as the world’s fourth largest wind power producer, adding 3.61 GW that year. India’s cumulative wind power capacity surpassed 31 GW, making up 6.6% of the global market. Furthermore, India’s share in the worldwide installed (WE) capacity stood at approximately 9.1%. (Kumar and Sawyer, 2016; Sawyer and Dyrholm, 2016).
The benefits of this transition are clear: reduced greenhouse gas emissions, improved air quality, diversification of energy supply sources, and even job creation (Mert et al., 2016).
Historically, Morocco has heavily depended on fossil fuels, particularly oil and coal, to meet its energy needs, resulting in high import costs, and vulnerability to international price fluctuations. The graph below (Figure 1) shows the total amount of non-renewable and renewable energy consumed by the Kingdom of Morocco over 30 years (IEAMCR, 2023).

Total energy supply in Morocco 1990–2020.
The Kingdom has made significant progress in managing its growing energy demand by adopting a diversified energy strategy and increasing its share of renewable energies. This energy transition aims to meet electricity needs while preserving the environment and stimulating economic growth. Between 2009 and 2022, electricity demand in Morocco grew by an average of 4.12% per year, driven mainly by the electrification of rural areas, economic growth, and the expansion of the infrastructure, industry, agriculture, tourism, and social housing sectors (NOEW, 2023). This strategy has been crowned with success, restoring the balance between electricity supply and demand, and increasing the share of renewable energies to more than 52% by 2030 (Taoufik and Fekri, 2021).
Morocco has taken significant steps to diversify its energy sources in pursuit of greater energy independence, gradually moving away from imported fossil fuels. In addition to focusing on solar and hydroelectric power, the country has also turned to other renewable energy sources, such as biomass and wind. By 2022, (WE) projects had been developed in 5 of the 12 regions of the kingdom. Among these, the Tangier-Tetouan region stands out with an installed capacity of 512 MW, accounting for 24% of the national total. This is followed by the Fes-Meknes region with 87 MW (4%), the Marrakech-Safi region with 96 MW (4.5%), the Draa-Tafilalt region with 210 MW (9.5%), and finally the Laayoune Sakia EL Hamra region, which holds the largest installed capacity of 1254 MW, or 58% of the total. Table 1 presents statistics relating to three forms of energy up to 2022 (METSDDET, 2023).
Distribution of energy production capacities.
Morocco’s transition to renewable energy sources necessitates close collaboration with international partners to finance and develop clean energy projects. The hosting of COP22 in Marrakech in 2016 strongly demonstrated the country’s commitment to climate change mitigation. Morocco aims to become a significant exporter of green electricity by harnessing its solar and (WE) potential. A notable project in this regard was initiated in the Guelmim-Oued Noun region in 2021. This project involves installing solar and wind installations and battery storage, with a production capacity estimated at around 10.5 GW (Daoudi et al., 2022; Xlinks, 2021).
The Global Wind Energy Council (GWEC, 2023) indicates that Morocco will substantially enhance its (WE) output. The country’s target is to expand its wind power capacity by 1.8 GW by 2026, including an intermediate objective of achieving an additional 1 GW by 2024. This ambition forms a key component of Morocco’s more comprehensive plan to launch new (WE) developments in different regions beginning in 2023.
Regions like Tangier-Tetouan, Marrakech-Safi, Fes-Meknes, and Laayoune-Sakia El Hamra are gearing up to enhance their (WE) output, planning capacity expansions ranging from 63 MW to 450 MW. Furthermore, areas such as Guelmim Oued Noun and Dakhla Oued Eddahab are preparing to establish new wind farms, with projected 80 MW and 190 MW capacities, respectively. These initiatives are pivotal in Morocco’s energy strategy, highlighting the country’s commitment to more sustainable and environmentally friendly energy production. Our study focuses on the Oriental region, which has garnered attention from government decision-makers and experts for the potential installation of a wind farm. Preliminary studies are underway to assess feasibility and lay the groundwork for future (WE) developments in this region.
Literature review
(WE) potential has gained significant attention in renewable energy research. This review delves into past and current studies on the subject:
Bharani and Sivaprakasam (2022) study evaluated (WE) prospects at five specific sites (S1–S5) in Tamil Nadu, India. Data from 2016, gathered at 100 meters above sea level, were analyzed using the Weibull distribution model. The findings suggest that sites S1, S2, and S3 are suitable for wind turbine installation.
Mohamadi et al. (2021) investigated (WE) potential across 22 areas in eastern Iran, considering wind speed (WS), wind power density, and the Weibull distribution. They discovered that the average (WS) exceeded 4 m/s at all sites, with ten sites recording speeds of 5 m/s. The study also found that the Mapna 2.5 MW and Vestas V100-1.8 MW 60 turbines outperformed others regarding annual energy yield and cost efficiency.
Gil Ruiz et al. (2021) research focused on the Caribbean region of Colombia, assessing wind potential through 10-minute average (WS) data from 13 weather stations and comparing it with ERA5 reanalysis data for wind farm development. The study highlighted average (WS) between 2.2 and 8.3 m/s, with several sites exhibiting wind power densities above 800 W/m2 and capacity factors nearing 50%, comparable to the world’s most efficient wind farms.
El Khchine and Sriti (2021) investigated the potential for (WE) along the coast of Morocco, focusing on regions including Al Hoceima, Boujdour, Essaouira, Laayoune, and Tantan. They analyzed (WS) and direction data, recorded hourly over a four-year period. This data was used to compute wind power and energy densities monthly and annually at different mast heights using the Weibull distribution method. Their findings indicated that (WS) were higher in the northern coastal areas during winter and southern areas during summer, with the highest power densities observed in some areas in July.
Overview of the energy mix
Our study focuses on the Oriental region of Morocco, which, with a population of 2.3 million and an area of 90,127 km2, showcases various renewable energy projects. These projects, listed in Table 2 (RICOR, 2020), include those already operational, accounting for about 52% of the total energy capacity of the region and projects under development, making up the remaining 48%. It is noteworthy that (WE) occupies a marginal share (0.4%) in the region’s energy landscape. This observation leads us to question the wind potential of the Oriental region, aiming to enhance the presence of this energy source in the local energy mix.
Renewable energy projects in Eastern Morocco—Installed and under development.
In the absence of in-depth studies focused on the Oriental region of Morocco, our research aims to clarify the theoretical perspectives and estimate the potential of this region in contributing to the energy transition toward cleaner and renewable sources. We investigate the role that the Oriental could play in Morocco’s strategy toward sustainable energy, as well as the theoretical projections of its capacity to generate (WE) efficiently. This inquiry arises in a context where precise knowledge of the wind potential in this region remains limited, underscoring the vital importance of our study in addressing this information gap.
In the following sections of this document, we will detail the adopted methodology (Section 4), descriptive statistics (Section 5), and the application of various algorithms to determine the shape (
Methodology
This research aims to evaluate the potential for (WE) in the Oriental region of Morocco, concentrating on 23 distinct locations. The methodology involves analyzing MERRA2 reanalysis data spanning 43 years, from January 1, 1980, to December 31, 2022. Significant advances in computer hardware and software performance have greatly improved our ability to perform statistical data analysis, as highlighted by Schlotter (2013). MATLAB and WRPLOT software will be our leading platforms for this evaluation. Figure 2 illustrates the adopted methodology.

Diagram of the methodology for the study of wind energy potential in the eastern region.
Data collection will begin with the extraction of MERRA2 reanalysis data for the Oriental region. This data will then be subjected to pre-processing to eliminate errors and missing values, thus ensuring the quality of the data for subsequent analysis.
The first step in the analysis will be to perform descriptive statistics on the data. Parameters such as mean wind speed (MWS), dominant wind direction, standard deviations, and other relevant statistics will be calculated for each location.
Subsequently, a Weibull distribution analysis will be undertaken using eight different algorithms, including the maximum likelihood and Lysen’s methods, to fit the Weibull distribution to the (WS) data. The best fit will be selected for each location.
The analysis will continue with a monthly and daily wind assessment. The monthly (WS) profiles will be used to identify periods of strong or weak wind, while the analysis of daily variations will be used to identify peak wind hours.
Finally, determining the most favorable locations will be based on calculating the capacity factor for each site, using (WS) data and the specific power of the wind turbines. In addition, the estimated energy output for each location will be used to rank the sites according to their (WE) potential.
ArcMap software will be used for visualization and mapping for clear communication of the results. Thematic maps will be created to graphically represent the most favorable locations regarding (WE) potential, considering capacity factor, and output energy data. Appropriate legends, scales and titles will be included to interpret the maps effectively. Figure 3 illustrates the studied locations and the position of the Oriental region on the map of Morocco.

Locations studied in the eastern region of Morocco.
This approach offers a robust framework for assessing (WE) potential in Morocco’s Oriental region. By leveraging MERRA2 reanalysis data, advanced software tools, and thorough examination of wind characteristics, it aims to pinpoint optimal sites for wind farm construction.
Descriptive statistics
Applications and interpretations in descriptive statistics
Table 3 presents detailed information for each of the 16 chosen weather stations. It includes the station’s name and assigned reference number. At a height of 50 m above ground level, it lists various (WS) metrics: average, variance, minimum and maximum speeds, asymmetry coefficient, kurtosis coefficient, average cubic (WS), median, and mode.
Wind speed statistics at 50 m height for 16 selected weather stations.
Eshete and Abate (2022) conducted a theoretical study over 4 years in Nifas Mewucha, Amhara province, Ethiopia, focusing on assessing wind power potential using wind speed as a critical indicator. Our research, evaluating wind power potential in the Oriental region of Morocco, relies on data from ten wind stations, designated as S1, S3, S4, S5, S7, S8, S9, S10, S11, and S14. This data reveals average wind speeds (MWS) ranging from 5.597 to 6.297 m/s, thus highlighting the region’s diversity of wind speed profiles. The variances, ranging from 7.655 to 9.441, demonstrate data variability from one station to another. The skewness measures, fluctuating between 0.384 and 0.680, indicate a slight rightward skew in the distribution of wind speeds. Kurtosis values, varying from 0.082 to 0.556, suggest a slightly less peaked distribution than average. Moreover, the coefficient of variation percentage (CV%) is notably high, reaching up to 51.379%, emphasizing the significant variability of wind speeds among different stations. Continuing our study, we delve deeper into this analysis by examining the minimum, maximum, median, Q1, and Q3 quartiles through a box plot diagram. This more detailed analysis will enhance the understanding of the region’s wind power potential and aid in more effective planning of wind farms.
Figure 4 presents a crucial analysis of (WS) frequency at ten selected stations from the initial 23, using a 0.5 m/s interval. This selection of stations is informed by NREL Table 4, as cited in El Hadri et al. (2019) study, which is a well-regarded source in renewable energy research. This analysis plays a significant role in understanding the wind potential at these locations.

The wind speed frequency for the 10 selected stations.
Classes of wind speed.
This analysis identifies the most common and least common speed ranges, providing crucial information for designing efficient wind farms and managing the electricity grid. It also helps to assess the reliability of (WE) supply and anticipate seasonal and diurnal variations, contributing to more accurate energy planning and the stable integration of (WE) into the regional energy mix.
Whisker box
Whisker boxes were first proposed by statistician Tukey (1977) and are powerful graphical representations of data that provide an overview and numerical summary of a data set (Figure 5).

Visualization of a box-and-whisker plot: unveiling vital data statistics.
The box plot is an essential tool in our study of (WS) across the 23 weather stations. Each box plot illustrates the distribution of (WS) at a specific station, presenting crucial information such as the median, quartiles, and interquartile range. Outliers are removed from the diagram (Moeini et al., 2021).
By observing these diagrams in parallel for the 10 stations (Figure 6), we can quickly identify variations and trends between the different localities. Whisker boxes also allow us to assess the data dispersion, detect extreme values, and observe the symmetry or asymmetry of the distribution.

Comparative analysis of wind characteristics across 10 meteorological stations using box-and-whisker plots.
Weibull statistics
As distinct from other renewable sources like solar or tidal power, (WE) is dispersed and varies in its flow. A deep understanding and characterization of (WS) variation in each location is crucial for harnessing (WE) effectively. This knowledge is vital for developing efficient (WE) conversion technologies (Signe et al., 2019).
Various density functions have been investigated to model (WS) frequencies, including the three- or two-parameter Weibull distribution (Deep et al., 2020), the Rayleigh distribution, the two-parameter lognormal, inverse Gaussian, and gamma distributions (Sohoni et al., 2016). The two-parameter Weibull distribution has recently garnered significant attention due to its adaptability and straightforwardness in accurately fitting empirical data. Moreover, once this distribution is established for (WS) at a certain height, it can be extended to different altitudes, facilitating the assessment of wind potential in diverse regions.
Distribution function: Probability and cumulative
The Weibull distribution function
Where
The cumulative function noted
Wind power density
The wind power density quantifies the efficiency with which (WE) can be converted into usable energy (Manwell et al., 2009). It represents the amount of (WE) available per unit area and time and is in the following form:
Where
Study algorithm
Empirical methods rely on observation and experimentation to collect data, providing solid evidence to test hypotheses. They provide reliable data to establish causal relationships and improve understanding of underlying processes. These algorithms include:
Empirical algorithm of Jestus (EAJ)
The EAJ algorithm suggested in 1977 uses the (MWS) (
where
Energy patern factor algorithm (EPFA)
This algorithm enables (WS) data to be analyzed, providing information on the temporal variations of the wind. The following mathematical equation calculates k and c once the energy factor
Empirical algorithm of Lysen (EAL)
Similar to the empirical method of Lysen, the parameter
The
Mabchour algorithm (MA)
Known as the Moroccan Algorithm, this method has been used to evaluate the wind potential in the Kingdom. The values of
Maximum likelihood algorithm (MLA)
The MLA, an iterative statistical approach, is employed for estimating the parameters of a probability distribution in a data set and predicting (WS) at a specific site. The shape parameter (
Graphical algorithm (GA)
The GA algorithm allows the fitting of a straight line to the actual wind data. The time series data representing (WS) must be arranged in ascending order. GA is based on the following relationship, which can be obtained by taking the double natural logarithm of the Weibull cumulative distribution function, as described in (Vu and Tran, 2023):
Using the two equations
WAsP algorithm (WAsP.A)
WAsP.A distinguishes itself from other algorithms by incorporating air movement and the atmospheric layer in direct contact with the Earth’s surface. This approach facilitates accurate long-term predictions of (WS) and direction at specific sites. WAsP.A considers the intricate topographical and meteorological factors that influence wind patterns, merging detailed field data with statistical models of wind flow. This results in highly precise forecasts of (WE) resources and energy production potential (Baseer et al., 2017; El Khchine et al., 2019).
In this context, (
which can be expressed as follows:
when using the WAsP.A method to fit the Weibull distribution function, the Windographer software determined the values of X and iteratively solved equation (17) using Brent’s method to calculate the (WS) at constant speed (Khan et al., 2023).
Openwind algorithm (OA)
Openwind uses a Weibull distribution fitting algorithm to ensure that the mean wind power density and (MWS) match the observed data, thus improving the accuracy of wind forecasts (Lambert, 2017; Wang et al., 2016). Two assumptions to consider, the first is:
This means that:
The form of the scale factor is therefore:
The second assumption is:
This means that:
The 2nd scaling factor becomes:
The equation containing the unknown k is as follows:
In applying Openwind’s Weibull fitting algorithm, Windographer first solves equation (24) iteratively using Brent’s method to determine the parameter
Statistical analysis
Several statistical measures have been suggested for assessing the effectiveness of the eight algorithms mentioned above in estimating the Weibull distribution parameters. Key statistical indicators used in this context are the coefficient of determination (R2), the root mean square error (RMSE), and the mean percentage error rate (MAPE). These metrics are commonly employed to evaluate the accuracy of data fitting. The equations are outlined below (Mohammadi et al., 2016; Tonsie Djiela et al., 2020):
Results and discussion
Wind conditions at selected stations
Wind rose
The wind rose diagram serves as an instrument for illustrating the frequency of diverse (WS)s and their respective directions. It offers a visual depiction of both (WS) and direction, highlighting the variability of these factors (Dabbaghiyan et al., 2016). Such a graphical representation aids in comprehending wind patterns across various locations.
Figure 7 illustrates that wind measurement station data in the region show varied speeds, with mean values ranging from North (N) to North-North-East (NNE). The predominant directions differ from one station to another, with NNE (15.21%) dominating at station S4, N (15.35%) at station S1, and WNW (12.41%) at station S14. These data highlight the diversity of prevailing winds in the region, which may impact wind potential assessments.

Diversity of prevailing winds in the region: an analysis of wind speeds and directions.
Graphical representation of (MWS)
The value of plotting the probabilistic Weibull (WS) data and the scale factor on the same histogram graph lies in the visual illustration of the relationship between these two parameters. This representation focuses on (WS) in the range of 5.6 to 6.4 m/s and gives us a better understanding of how the scale factor influences the shape of the Weibull distribution and subsequently affects the probabilistic (WS) distribution.
From the graph above (Figure 8), stations S7 and S8 represent the best locations for the probabilistic Weibull one scale factor speed with values of 6.315–7.124 m/s and 6.388–7.204 m/s, respectively.

Graphical representation of wind speed and probabilistic wind velocity.
The analysis reveals significant differences in using various algorithms. The E.M.J, E.M.L, and M.M. techniques are utilized in two of these stations, while the M.L.M method is specifically used in a separate station. The G.M and W.M methods are also implemented in nine and seven unique stations, respectively. This variety in calibration techniques highlights the diversity and complexity of the wind data collected at these sites. Concurrently, in the province of Tétouan, as pointed out by Ouahabi et al. (2020), five algorithms (E.M.J, E.M.L, G.M, E.P.F.A, and the Method of Moments) are in use, demonstrating notable effectiveness for all except the G.M method. This diversity of methods proves crucial for optimally adjusting the actual wind data. Figure 9 illustrates our results.

Number of stations per algorithm.
Monthly study of (WS)
The average (WS) at the year’s 10 stations (S1–S14) shows significant variation from month to month. Analysis of these data shows that the lowest average (WS) is generally around 4.7 m/s (S14), while the highest average (WS) is around 6.8 m/s (S8). Station S8 regularly has the highest average speeds, while station S14 tends to have the lowest average speeds (Figure 10).

Monthly representation of wind speed.
Daily study of (WS)
(WS) data for the 10 stations S1–S14 over a 24-hour show significant variations throughout the day. Station S1 records the lowest (WS) from 09:00 hour to 10:00 hour, while station S11 records the highest (WS) from 19:00 hour to 20:00 hour. This diurnal variation highlights the impact of local weather conditions and geographical factors on (WS) (Figure 11).

Diurnal representation of wind speed.
Weibull plot
The Weibull distribution’s fundamental concept is paramount when analyzing (WS) data. This distribution plays an essential role in the statistical modeling of (WS) and is frequently used to describe the wind characteristics of a particular geographical area. A vital aspect of the Weibull distribution is its configuration, governed by the shape (c) and scale (k) parameters. The graph (Figure 12) below shows the actual database and the eight estimated Weibull curves.

Comparative analysis of the wind BDD histogram using various adjustments to the Weibull distribution.
From the figure above, several locations have identical values for shape factor k and scale factor c, namely (S21; S18), (S1; S14), (S4; S5), and (S3; S9) and are superimposed in the visual geographic representation. The highest values of k and c are found in locations S7 (2,389;7,124) and S8 (2,433;7,204).
The most likely speed and the speed generating the maximum energy
Through the data in Table 5, we gain a significant insight into the (WS) at two key stations, Station 8 (S8) and Station 7 (S7). These measurements are paramount in designing and operating wind turbines and wind farms. The (WS) that generates the maximum energy (
Performance analysis of wind speed prediction models for 10 stations.
Power density plot
The power density of the wind plays a crucial role in assessing the performance of wind farms, as it quantifies the energy available in the wind at a specific speed and altitude. A higher power density indicates a more incredible amount of potential energy for wind turbines. However, a theoretical limit known as the “Betz limit” states that wind turbines can only capture 59.3% of the total kinetic energy of the wind. Therefore, although power density is essential, it must be considered alongside other elements, such as wind stability and environmental constraints, when planning wind farms, which are not covered in this article.
The Figure 13 above shows the power density (PD) measurements taken at 23 locations. The triangle defined by points S4, S7, and S11, passing through S8, represents the optimum PD positions, with values between 230 and 260 W/m2. This geographical region, located at altitudes ranging from 1200 to 1800 m, is highly recommended for the siting of wind farms. However, it should be noted that almost half of the eastern region’s land surface is unsuitable for wind farms. Nevertheless, the possibility of future generations of turbines designed to operate at low (WS) could change this outlook.

Estimated power density for the Eastern Region.
Choosing wind power
The Capacity Factor (
Figure 14 displays the daily variations of

Calculation of the capacity factor using four wind turbines.
Table 6 summarizes the best locations for combining
Numerical value of annual output energy (KWh/year) and capacity factor (%) from four wind turbines.
Conclusion
Our comprehensive research into the Oriental region’s (WE) capacity has identified ten critical locations as highly promising, with sites S4, S7, S8, and S11 showing exceptional promise due to their wind power densities ranging from 230 to 260 W/m2. These sites demonstrated capacity factors between 30.01% and 36.97%, signifying a solid potential for (WE) exploitation in the area. Applying the Weibull distribution in modeling (WS) was effective and practical, yielding k-shape factors between 2.055 and 2.433 and scale factors in the range of 6.372–7.204 m/s.
These insights are instrumental in formulating strategies for wind farm development in the Oriental region, thereby facilitating a transition to renewable and more sustainable energy practices. The study also opens doors for future collaborations with organizations like the Moroccan Agency for Sustainable Energy (MASEN) and the Ministry of Energy Transition and Sustainable Development. However, it is crucial to consider the limitations of our study, including uncertainties in wind data and methodological challenges. Further investigation, especially in areas like the Bouarfa province and Melilla, coupled with comprehensive financial analysis, is needed to solidify these findings. This methodology reinforces our initial observations and lays the groundwork for more targeted and region-specific studies in renewable energy.
While our study offers substantial insights, it is constrained by certain limitations. The spatial resolution is relatively wide, approximately 70 km or 0.625° in latitude and longitude. Furthermore, while NASA data was an essential resource, access to direct energy production data would enhance the validation of our results. Implementing wind measurement systems and monitoring additional variables, such as atmospheric pressure and temperature at various altitudes and sites, would be beneficial. Future research should incorporate the region’s unique economic and environmental conditions, focusing on climate change impacts and strategic planning for wind farm installations.
In conclusion, guiding the Oriental region toward an energy mix that includes wind, solar, and hydroelectric power is imperative. This strategic direction aligns with the global trend of developing clean, region-specific energy solutions. Therefore, our study opens up promising possibilities for the future of WE in the Oriental region, making a significant contribution to the pursuit of clean and renewable energy sources.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
