Agriculture is an important sector in Morocco, contributing 14% of the gross domestic product (GDP). But agriculture in Morocco is also based on the availability of water resources. While water represents an insufficient resource in comparison with rapidly growing needs, the curve of water mobilization will practically cease from 2013, at a time when the population will continue to increase, at a slower pace  .
In addition, Morocco experienced surpluses and balanced precipitation deficits. But since the 1980s, this balance has been broken and it has caused a strong imbalance resulting in severe drought  . This drought, the largest in a century, has led to a dramatic decline in surface and groundwater resources and agricultural productivity. This situation has undoubtedly puts in context to the food security of the nation.
Morocco’s food needs are based on national production, and this refers to the concept of food self-sufficiency  , especially in a region as the Tadla plain where agriculture is a vital and very important element. In fact, it is the primary source of employment for the region’s labor force. The objective of this work is to provide precise data on the current situation of agriculture in the Tadla plain and its distribution according to the availability of water for irrigation. In this study we used a set of vegetation indices derived from Landsat 8 OLI data acquired during the agricultural year 2014-2015 for the identification and mapping of crops in the region.
2. Study Area
The Tadla plain covers an area of 3600 km2 and extends approximately to the north of the High Atlas Mountains. It lies between 6˚42'21''W and 6˚16'03''W longitude and 32˚28'49''N and 32˚31'10''N latitude (Figure 1), and bounded to the north by the plateau of phosphates which gradually ascends unmarked a transitional net to the east of the narrowed plain along the Oum-er-Rbia in the direction of the accredited reliefs of the Zaïan county. In the West, no geographical limit separates the Tadla from the Bahira that followed it. The lower reaches of the El-Abid River will be taken as the regional and hydro-geological boundaries of this set called Tadla. The length of the plain, as defined, reaches about 125 km while its maximum width in the center is about 50 km. The average altitude varies from 350 m to 500 m with the lowest point in Sidi-Driss (hydrological station on the OumEr-Rbia: 315 m) and the highest on main road 24 near Tighboula (about 750 m).
Figure 1. Study area.
This work is based on a time series of satellite images of Landsat OLI 8. We used a set of 10 images of the study area covering the period of agricultural partner (September 2014-May 2015). This allows us to have at least one image per month for the whole farm partner.
These OLI images are calibrated radiometrically and corrected from atmospheric effects and then resampled at a spatial resolution of 15 m. The NDVI vegetation index of each image is calculated to consolidate and create a time series  . The spectral profiles of each culture were extracted from the image indexes on the basis of the field data. For a good accuracy of our classification, we hid the occupation of the elements of the soil that will not show interest in this study (Figure 2).
3.1. Image Processing
To distinguish the different cultures of the TIP, we based ourselves on their phrenological development. Thus, a time series of the NDVI vegetation index (1) is calculated from the beginning of the farm companion (September) to its end (May). This index is based on the difference in luminous energy at the level of the red and near infrared band caused by the different surfaces of the earth through the phenomenon of absorption and reflection, in particular the vegetation absorbs more than red light while reflecting much of the light in the near infrared.
The calculation of NDVI was realized using the tool “NDVI” in ENVI, specifying the input file type (Landsat OLI8) from the dropdown list and indices of the bands (red and infrared) used to the calculation (Red: 4, near IR: 5).
These vegetation indices are grouped in a single image for the extraction and comparison of the spectral profiles of the crops. Both Vector Vector Machine
Figure 2. Schematic diagram of the used methodology.
(SVM) and Spectral Angle Mapper (SAM) classification algorithms are used to map crops.
PIR: the pixel value in the near infrared band.
R: the pixel value in the red band.
3.2. Classification: Support Vector Machines
The methods of classification are the operations of image segmentation which allows determining for each pixel of the image to its class of belonging, in function of their radiometric properties  .
Support Vector Machine (SVM) is a method of supervised classification derived from the theory of the statistical learning which often gives good results of classification of complex data and noisy. It separates the classes with a surface of decision which maximizes the margin between the classes. The surface is often called the hyperplane optimal, and the data points are the closest to the hyperplane are called “vectors support”.
To perform the classification of the resulting image, we began by the choice of regions of interest while respecting the following rules:
・ The number of pixels per class must be large enough (at least 100 pixels/class);
・ For the same class regions of interest must be dispersed on the entire image, to encompass the more possible of the varieties that a type of culture can take;
・ Avoid to select areas of interest combining the shaded areas and lit even if it is the same object.
Eight classes have been selected, cereal, beetroot, alfalfa, arboricultures, another culture and TSI (field without interest).The tests of separability, based on the distance from Jeffries-Matusita, between each pair of the eight classes has shown the values of separability which vary between 1.99860747 and 2, which means that our classes are well separated one compared to the other is can be used for classified the image.
The classification of crop types is the basis of the phrenological properties that each image presents during the agricultural season. These properties are translated into a map through values that the NDVI records for a given crop in a given pixel during the selected season. The results obtained from the phrenological curves are presented in the form of a map of distribution of crops.
The map is divided into two areas. A zone whose crops are the following: the cultivation of the dominant beet with an area reached 49,242.465 ha, followed by arboriculture with an area of 749.99 ha and the cereal of 67,300 ha. Alfalfa is represented by an area of 22,874.80 ha. The dominance of beet sugar was explained by the request of COSUMAR in the region. And an area where the bare soil is the dominant area following the cultivation of cereals. In summary, it can be clearly seen that the zone in the south, a zone with a semi-arid climate, which relies on irrigation is very developed in agriculture, whereas in the north most of the soil is bared with cereals, a crop that depends on precipitation. Food security in Morocco is at risk, it depends on the availability of underground water, a natural resource in risk of extinction (Figure 3).
Figure 3. Time-series NDVI spectral profiles for the major crop types planted in 2014: alfalfa; sugar beet; cereal; cereal is preceded by other cultures; Arboriculture.
is secure in a sustainable way and capable of responding to population growth and changes in eating habits. Accessibility is achieved when physical and economic access to sufficient food is jointly assured. But when agriculture depends on water availability and rainfall, there is a problem of sustainability and there is talk of vulnerability to food security.
The results of this research show that the risk of water scarcity in the study area may increase under the combined pressure of drought in the northern region of the map and the demand for irrigation in the southern region. And this highlights the problem of food insecurity in a region dependent on the agricultural sector for food and economic reasons. In this context, Tadla plain is faced with a series of challenges related to the problem of water availability in the future, with vulnerabilities that could worsen considerably in the coming decades, which have the potential to make food insecurity a national priority. All this combined with other factors of social and economic vulnerability  .
Agriculture is an important sector in Morocco and especially in the region of the Plein of Tadla. But when regional food availability depends on the availability of water, insufficient resources compared with growing needs, uncertainty prevails on agriculture and therefore food security. For this reason, the risk of food inadequacy must be taken into account in all water management in both rainfed and irrigated agriculture. Strategies to reduce the risk of agricultural drought must be at the forefront of Moroccan policies.