{'fraction_non_alphanumeric': 0.024101145792177005, 'fraction_numerical': 0.008353558728904443, 'mean_word_length': 4.77870189171559, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Development of an Algorithm for an Automatic Determination of the Soil Field Capacity Using of a Portable Weighing Lysimeter

The challenge today is to optimize agriculture water consumption and minimize leaching of pollutants in agro-ecosystems in order to ensure a sustainable agriculture. The use of different technologies and the adoption of different irrigation strategies can facilitate efficient fertigation management. In this respect, the determination of soil field capacity point is of utmost importance. The use of a portable weighing lysimeter allows an accurate quantification of crop water consumption and water leaching, as well as the detection of soil field capacity point. In this work, a novel algorithm is developed to obtain the soil field capacity point, in order to give autonomy and objectivity to efficient irrigation management using a portable weighing lysimeter. The development was tested in field grown horticultural crops and proved to be useful for optimizing irrigation management.


Introduction
Using water for farming is an essential production factor. Water availability in semiarid areas like the Mediterranean Basin is scarce and its quality is becoming increasingly worse. Faced with this challenge, high farm yields of optimum quality can be obtained by a suitable irrigation water management [1]. This implies that efficient water resources management is a main tool to ensure farms stability and sustainability [2].
Irrigation management depends on many factors which are mostly environmental and edaphic but also related to the irrigation system and plant material. In fruit crops different irrigation management strategies can be employed, e.g., partial root-zone drying or regulated deficit irrigation. However, in horticultural crops, these strategies are not feasible when water is scarce as it was summarized in a recent review [3] where other strategies are proposed mainly based on the use Information and Communication Technologies (ICTs) for efficiently managing water resources [4].
Proper efficient irrigation is very important for saving water and reducing the risk of polluting groundwater bodies mainly by nitrates percolation below the plant root-zone [3]. Managing this leaching is very complex because nitrogen is a nutrient that is closely related to horticultural crop yields and quality; the key lies in controlling the drainage of the irrigation systems [3]. This management becomes slightly more complicated if spatial edaphic and environmental variability is considered. offers a simpler definition: "soil field capacity corresponds to the maximum quantity of water that soil can retain against gravity's action". Zhen-tao et al. [17] compared the methods followed by different authors to estimate SFCP. They indicated that SFCP is influenced by soil texture and profile depth. These authors concluded that it is possible to set up a simplified theoretical calculation method based on a dynamic method with a 3% relative drainage rate.
With sandy-texture soils, Zotarelli et al. [18] using soil moisture sensors, verified that there is a rapid water loss after irrigation. This rapid water loss is equivalent to macropore drainage. After that, the rate of soil water loss decreases, showing a clear turning point in soil moisture readings. These authors indicate that it is possible to obtain graphically the SFCP. It is also possible to detect when drainage stops by means of the herein proposed portable weighing lysimeter-based calculation method. A portable weighing lysimeter includes a drainage tank (DT) that quantifies its evolution. Thus, the time in which variation in DT weight approaches zero can be detected.
For irrigation scheduling, particularly under high frequency of water applications, it is of crucial importance to precisely detect the SFCP because it will help to determine the irrigation amount to apply on each irrigation event to reach the SFCP [19]. In practice the SFCP is used to determine the "refill point" and it is the level of soil moisture that required to be reached, but not overpassed, to continuously satisfy the crop water needs.
The objective of this work is to derive an algorithm using a weighing lysimeter that allows the SFCP to be detected and to use this information to accomplish more efficient irrigation management. This is possible thanks to the new opportunities arising from ICT allowing to use sensors in agriculture together with data interpretation algorithms for a more efficient fertigation management.

Test Preparation
The objective is to find an algorithm to automatically detect the SFCP. The data obtained to develop the algorithm were acquired from an experiment performed on a commercial farm from municipal region of Lorca (Murcia, Spain). The crop employed for this outdoor experiment was "Burgundy broccoli asparagus", whose crop cycle lasted from 1 December 2020 to 15 March 2021. Plastic mulch was employed and rows were separated by 90 cm, with two rows of plants per drill and a 35 cm separation between plants. The irrigation system was localized and soil texture was clayey.
The dimensions of the employed portable weighing lysimeter for the cultivation tank (CT) were: 145 cm long × 65 cm wide × 50 cm deep. The CT stood on four load cells (500 kg) and resolution was 0.11 mm (100 g). The DT was placed beneath the CT and behind an intermediate control tank, quantified by means of one load cell (15 kg) with a resolution of 0.03 mm (3 g). The effectiveness for the quantification of the input/output water volumes to the soil in the CT was validated in a previous study [4]. Figure 1 is a diagram of how the portable weighing lysimeter was set up. A layer of highly porous material (gravel) that does not retain water was placed on the bottom. On top of this, a sheet of draining mesh, which did not retain water. A replica of the outer soil was placed on top, with the following characteristics: (i) the outer soil was ploughed; (ii) the outer soil was at the bottom nutritional intake estimated by the farmer; (iii) the materials were added in 10 cm layers at the same relative depth as in the outer soil.
Monitoring was performed with seven plants that were planted in the soil inside the CT. The whole portable weighing lysimeter system is protected by a cavity formed by a perimeter structure to avoid horizontal and vertical water movements from the outdoor soil to the portable weighing lysimeter interior [4]. Horizontal water movements from inside the portable weighing lysimeter to the outdoor soil are also avoided. However, downward vertical movement is facilitated to control drainage. The data obtained during the experiment were the CT weight (expressed as kg) and the DT weight (expressed as g). Monitoring was performed with seven plants that were planted in the soil inside the CT.
The whole portable weighing lysimeter system is protected by a cavity formed by a perimeter structure to avoid horizontal and vertical water movements from the outdoor soil to the portable weighing lysimeter interior [4]. Horizontal water movements from inside the portable weighing lysimeter to the outdoor soil are also avoided. However, downward vertical movement is facilitated to control drainage. The data obtained during the experiment were the CT weight (expressed as kg) and the DT weight (expressed as g).

Establishing an Algorithm to Detect SFCP by Weighing Lysimetry
According to the definition of Pachés Giner [16], when soil reaches its SFCP, it is capable of retaining all the water and, therefore, drainage stops. This study resorts to a powerful tool that quantifies drainage in real time by being able to detect the precise moment when the SFCP of the soil contained in the CT is reached. This detected time is considered the time from which variation in the DT weight approaches zero. It is lower than a given value during a time interval.
Although farmers control irrigation, some drying phases are forced after analyzing portable weighing lysimeter data to suitably detect the SFCP at certain times. Among others, the lysimeter offers these two variables: • Variable 1: the CT weight, expressed as kg and determined by the following sensor structure: four load cells (500 kg) connected in parallel by a junction box linked with a six-thread cable, plus a mesh, to a 24-bit weight indicator. This indicator records the obtained data in real time with filters configured for signal peaks that do not correspond to correct readings. By means of an RS485A serial connection and the MODBUS RTU protocol, every 3 s a CAMPBELL CR300 ® datalogger reads the record obtained by the weight indicator for the connected junction box and offers a table with the minute average of the obtained readings. • Variable 2: the DT weight, expressed as g and determined by the following sensor structure: one load cell (15 kg) connected with a six-thread cable, plus a mesh, to a 24-bit weight indicator. This indicator records the obtained data in real time with filters configured for signal peaks that do not correspond to correct readings. By means of an RS485 serial connection and the MODBUS RTU protocol, every 3 s a CAMPBELL CR300 ® datalogger reads the record obtained by the weight indicator for the connected load cell and offers a table with the minute average of the obtained readings.

Establishing an Algorithm to Detect SFCP by Weighing Lysimetry
According to the definition of Pachés Giner [16], when soil reaches its SFCP, it is capable of retaining all the water and, therefore, drainage stops. This study resorts to a powerful tool that quantifies drainage in real time by being able to detect the precise moment when the SFCP of the soil contained in the CT is reached. This detected time is considered the time from which variation in the DT weight approaches zero. It is lower than a given value during a time interval.
Although farmers control irrigation, some drying phases are forced after analyzing portable weighing lysimeter data to suitably detect the SFCP at certain times. Among others, the lysimeter offers these two variables: • Variable 1: the CT weight, expressed as kg and determined by the following sensor structure: four load cells (500 kg) connected in parallel by a junction box linked with a six-thread cable, plus a mesh, to a 24-bit weight indicator. This indicator records the obtained data in real time with filters configured for signal peaks that do not correspond to correct readings. By means of an RS485A serial connection and the MODBUS RTU protocol, every 3 s a CAMPBELL CR300 ® datalogger reads the record obtained by the weight indicator for the connected junction box and offers a table with the minute average of the obtained readings. • Variable 2: the DT weight, expressed as g and determined by the following sensor structure: one load cell (15 kg) connected with a six-thread cable, plus a mesh, to a 24-bit weight indicator. This indicator records the obtained data in real time with filters configured for signal peaks that do not correspond to correct readings. By means of an RS485 serial connection and the MODBUS RTU protocol, every 3 s a CAMPBELL CR300 ® datalogger reads the record obtained by the weight indicator for the connected load cell and offers a table with the minute average of the obtained readings.
As the capacity that the DT can hold is limited, the portable weighing lysimeter is equipped with a series of valves and has a programming algorithm capable of emptying this tank without losing the quantification the overall drainage. This means that the evolution of Variable 2 (DT) shows marked reductions owing to this tank being emptied. Therefore, a new variable was created that allows accumulated drainage to be quantified: When the soil is draining, the DT progressively increases its weight until it reaches its maximum capacity. At this point, drainage is stopped and the DT is emptied. To detect the decrease in weight of the DT due to emptying, a decrease of more than one gram at two consecutive points (one minute) is discriminated. If this condition occurs, then the accumulated drainage is considered to be constant from the previous instant, until this condition is no longer fulfilled. If this condition is not fulfilled, then the variations that occur in the weight of the DT progressively increase the value of the accumulated drainage.
Once this magnitude has been analyzed, it is necessary to detect the moment when drainage ceases, in order to establish the SFCP. Furthermore, it is necessary to detect the moment when a new drainage starts in order to start a new iteration of calculations. To meet this objective, the following variables and constants were defined: • Variable 4: variation in accumulated drainage (∆ΣD), expressed as g/min, determined by the algorithm below: The difference in the accumulated drainage between two consecutive readings is analyzed.
Constant 1: minimum time to obtain a variation in drainage below the threshold limit (t), expressed as minutes, to set a time range to check that the variation in the DT does not exceed the set value and to consider the DT weight to be constant.

t = 30 min (3)
Constant 2: threshold limit of variation in weight over a given time period t (d), expressed as g, by establishing a maximum value for variation in the DT within a time interval t below which drainage is taken to be null and DT = ct and, therefore, SFCP has been found. This value is established to be equal to the DT's balance resolution.
• Variable 5: accumulated drainage variation average within time interval t (∆Dt), expressed as g/min, calculated with the following equation: This variable analyzes variations in accumulated drainage in the last 30 min (time t), calculates the average and is displaced over time.
The condition established to find the point at which the soil can be considered to have stopped draining is that the variation of the accumulated drainage does not exceed the value for the constant d over time t. This means that, during time t (30 min), the weight of the DT has increased below d (3 g, which is the resolution of the load cell).

Constant 3:
condition for setting the SFCP (Cd), expressed as grams per minute, determined by the following equation: Cd = d/t = 3 g/30 min = 0.1 g/min (6) Thus, each value of ∆D i must not exceed Cd to ensure that the soil is at SFCP: Once this condition is maintained for 5 min, the soil is considered to have reached SFCP: the SFCP value will take the value of the CT at that instant.
In order to restart the iteration and continue the search for SFCP, a draining process must be detected: the DT weight must have increased over a period of time. The following constants and conditions are established: Constant 4: time during which an increase in weight in the DT (T), expressed in minutes, must be detected, which will allow to detect that a drainage event has occurred in the soil contained in the CT: The condition to detect if a drainage event occurs is that the DT, or accumulated drainage (that is, its equivalent) increases the resolution value for at least 5 min, that is d, to obtain the following constant: Constant 5: start condition for the iteration of new SFCP calculations as: Ci = d/5 min = 3 g/5 min = 0.6 g/min (9) With all these considerations, the following variable is defined: • Variable 6: soil field capacity point (SFCP), expressed as kg, which shall be a fixed quantity at the moment when the above conditions are met. Its value shall be the weight of the TC at that instant; thereafter it shall remain constant until a new SFCP is obtained again.
In this way, the calculation iteration with which the SFCP will be estimated is shown.
If (ΣD i -ΣD i−1 ) > 0.6 g/min during T = 60 min, this is: The following Figure 2 shows schematically the development of this algorithm.

Validating Excess Irrigation Events, Drying and Soil Moisture Normalization
When a soil-drying period ends after intensive irrigation always leaves soil saturated, once again an irrigation valve is opened. Between 6 and 9 January, a large amount of water from the soil entered the CT, and the water supply to the lysimeter stopped. This was when the evolution of Variables 1 and 2 was analyzed.
On 23 January, the farmer once again irrigated. This situation continued until 18 February when irrigation stopped once more until 1 March. The evolution of Variables 1 and 2 was analyzed.
From this point, the following hypotheses were checked: (a) Excess irrigation periods: a Variable 1: the CT weight must be maintained at high levels, and shows not only incremented points that correspond to irrigation events, but also lowering points corresponding to loss of drainage water that occurs after an irrigation event until immediately before the next irrigation event starts. b Variable 2: the DT weight must continue to increase its maximum capacity. Then it is immediately emptied until it reaches the weight value that it has when it is empty, and the cycle starts again.
(b) Drying periods: a Variable 1: the CT weight must display a lowering tendency, and this variable is in accordance with: (i) If drainage still continues, it will lower more quickly than if

Validating Excess Irrigation Events, Drying and Soil Moisture Normalization
When a soil-drying period ends after intensive irrigation always leaves soil saturated, once again an irrigation valve is opened. Between 6 and 9 January, a large amount of water from the soil entered the CT, and the water supply to the lysimeter stopped. This was when the evolution of Variables 1 and 2 was analyzed.
On 23 January, the farmer once again irrigated. This situation continued until 18 February when irrigation stopped once more until 1 March. The evolution of Variables 1 and 2 was analyzed.
From this point, the following hypotheses were checked: (a) Excess irrigation periods:

Validating Irrigation Events in the Lysimeter by Comparing Irrigation Counter Data
On the irrigation line passing through the portable weighing lysimeter, an input counter and an output counter were set up, and were equipped with the two pulse emitters with a pulse per liter resolution. The values given by the counters during each controlled irrigation event were compared to the variations that took place in the CT.
The emitters of both counters are recorded through a MICROCOM ® model TCR200 ® datalogger. The pulses were received in real time by the equipment, integrated with a minute frequency to show the accumulated volume.
Thus, the following variables are controlled: • Variable 7: irrigation volume at initial meter (V i ), expressed as liters, obtained from the data provided by the data acquisition equipment used. • Variable 8: irrigation volume at final meter (V f ), expressed as liters, obtained from the data provided by the data acquisition equipment used. • Variable 9: irrigation volume emitted to the portable weighing lysimeter in an irrigation event (V lis ), expressed as liters, obtained by the following equation: • Variable 10: mass of irrigation emitted in an irrigation event to the portable weighing lysimeter (Ri c ), expressed as kilograms, obtained by the multiplication of the irrigation volume of variable 9 per the density of water (δ), taken as 1 kg·L −1 .
• Variable 11: mass of irrigation emitted in an irrigation event to the portable weighing lysimeter (Ri lis ), expressed as kilograms, obtained by the difference between the mass at the end of irrigation (RC fRi ) and the mass at the start of irrigation (RC iRi ) in the CT, plus the difference between the accumulated drainage at the end of irrigation (ΣD fRi ) and the accumulated drainage at the start of irrigation (ΣD iRi ) in the DT, both quantities expressed as kilograms, calculated by the following equation: The following condition must be met:

Validating the Algorithm with Data from Other Experiments
The herein developed algorithm was validated using the data obtained from another experiment performed on a commercial farm in the Almería province (Andalusia, Spain). The crop employed in this experiment was greenhouse-grown pepper with a crop cycle from 1 August 2020 to 23 May 2021, with approximately 100 cm separations between rows, 1 row of plants per drill and separations of 50-60 cm between plants. The soil where this experiment took place is franc soil, whose quantitative composition includes optimum sand, lime, and clay proportions. Such soil allows excellent farming yields thanks to its relative loose structure, because it is fertile, and it also offers suitable moisture retention. The employed irrigation system was localized.
The portable weighing lysimeter dimensions for the CT were: 150 cm long × 45 cm wide × 50 cm deep. The CT stood on four load cells (300 kg) with 0.09 mm resolution (60 g). Behind an intermediate control tank, the DT was placed beneath the CT quantified by means of one cell load (15 kg) at a resolution of 0.05 mm (3 g).
Monitoring was carried out using three plants that were planted in the soil inside the CT. This soil was reproduced by placing an outdoor soil replica and filling to a depth of 45 cm, as shown in the diagram shown in Figure 1.
In this study, different random events were controlled to validate the effectiveness of the algorithm.   Figure 3 illustrates the evolution of the data obtained with the lysimeter, quantifying the evolution of both the CT and DT weight.          When both events were analyzed, accumulated drainage was shown compared to the evolution of the variation average in this drainage that took place in the last 30 min. At both points, this average was below the set value of 0.1 g/min and, thus, drainage was taken to be null, as observed on the accumulated drainage curve continuity (Figures 6 and 7). When both events were analyzed, accumulated drainage was shown compared to the evolution of the variation average in this drainage that took place in the last 30 min. At both points, this average was below the set value of 0.1 g/min and, thus, drainage was taken to be null, as observed on the accumulated drainage curve continuity (Figures 6 and 7).

Data about Excessive Irrigation Events, Drying and Soil Moisture Normalization
According to the graph depicted in Figure 3, on the days immediately before 6 January, the CT weight showed a downward slope, while the DT weight remained constant. This was due to water loss in soil because of evapotranspiration, with variation in the daily slope between day and night. Between 6 and 9 January, a large amount of water from the soil inside the CT was released, and the CT weight increased to a level at which is remained relatively constant. At the same time, the DT weight brusquely went up and down owing to intense drainage.

Data about Excessive Irrigation Events, Drying and Soil Moisture Normalization
According to the graph depicted in Figure 3, on the days immediately before 6 January, the CT weight showed a downward slope, while the DT weight remained constant. This was due to water loss in soil because of evapotranspiration, with variation in the daily slope between day and night. Between 6 and 9 January, a large amount of water from the soil inside the CT was released, and the CT weight increased to a level at which is remained relatively constant. At the same time, the DT weight brusquely went up and down owing to intense drainage. We must bear in mind that the maximum DT capacity is limited, and an internal algorithm empties it when the limit is reached to continue quantifying any drainage that takes place. From 9 to 23 January, the downward tendency of the CT weight was once again observed with daily variations due to daytime evapotranspiration. On the first few days, the rate at which the DT weight increased slowed down as the intervals between emptying events were increasingly spaced out with time until the DT weight became constant. This meant that SFCP had been reached.
Between 23 January and 18 February, irrigation continued and exceeded the crop's water use. The CT weight increased due to irrigation and lowered owing to evapotranspiration and drainage, but its level remained relatively constant. Except for a few days when the drainage load cell connection broke down, the DT weight frequently increased and decreased due to pronounced drainage, and its content was emptied when the maximum capacity was reached to once again receive drainage.
During the period from 18 February to 1 March, the CT input was once again limited and the same pattern as that from 9 to 23 January was followed.

Results of Recording Irrigation Events in the Lysimeter by Comparing Irrigation Counters Data
The irrigation that occurred on 17 February in the Broccoli Asparagus, Burgundy trial is analyzed by observing the initial and final meter readings. The irrigation lasted 30 min and is contrasted according to the established equations. The irrigation values counted by the meters were compared with the data recorded on the portable weighing lysimeter. This comparison shows that the quantified values are similar, and the difference is caused by the resolution of the meters (which have a pulse every liter, or kilogram of water). Table 1 shows all the data. Table 1.
Comparison of the amount of irrigation using the meters and the portable weighing lysimeter.

Description
Value Unit To check whether this condition of similar results holds, three random irrigations are contrasted. Figure 8 shows the results of this comparison, and shows that they are always similar.  Figure 9 shows the evolution of the weight of the CT and the DT, applying the algorithm developed with the data from the greenhouse pepper experiment and choosing two consecutive irrigations at random. It can be seen that the SFCP is within the expected values. In both consecutive irrigations, the weight of the CT, at the moment considered as the soil has reached the SFCP, coincides in a similar value.  Figure 9 shows the evolution of the weight of the CT and the DT, applying the algorithm developed with the data from the greenhouse pepper experiment and choosing two consecutive irrigations at random. It can be seen that the SFCP is within the expected values. In both consecutive irrigations, the weight of the CT, at the moment considered as the soil has reached the SFCP, coincides in a similar value. Figure 9 shows the evolution of the weight of the CT and the DT, applying the algorithm developed with the data from the greenhouse pepper experiment and choosing two consecutive irrigations at random. It can be seen that the SFCP is within the expected values. In both consecutive irrigations, the weight of the CT, at the moment considered as the soil has reached the SFCP, coincides in a similar value.

Discussion
Efficiently managing water resources for irrigation involves employing suitable tools by applying the correct methodology [3]. The market offers many types of technologies to monitor the agro-climatic variables of the soil-plant-atmosphere continuum [3]. The final goal is estimating the crop's water requirements, to replace them by irrigation, and being

Discussion
Efficiently managing water resources for irrigation involves employing suitable tools by applying the correct methodology [3]. The market offers many types of technologies to monitor the agro-climatic variables of the soil-plant-atmosphere continuum [3]. The final goal is estimating the crop's water requirements, to replace them by irrigation, and being careful to avoid salts accumulating in the soil wet areas or leaching pollutants that could potentially reach the soil and groundwater aquifers.
The tool employed in this study is a portable weighing lysimeter [4] and it is the only one of its kind on the market to date given its ability to monitor the mass of a given soil volume and, thus, its water content and, at the same time, the generated drainage mass and its qualitative characteristics (electric conductivity). One of the objectives of our research line is to seek tools that facilitate farmers' decision for watering and fertilizing their crops. Part of this work focuses on generating algorithms that autonomously allow parameters of interest for this management to be detected.
The portable weighing lysimeter quantifies in real time not only the water interchanges taking place in the monitored soil volume, but also the fraction lost through drainage. In this way, the challenge of boosting the on-farm application of this technological innovation is presented to fulfill the objective of autonomously and objectively establishing irrigation scheduling parameters. We began by hypothesizing that when soil stops draining it is because it has reached its SFCP [12]. Then seeking to unravel when the DT increase stops allows the exact time when this SFCP has been reached to be known. Figure 3 offers the baseline data, and two events are shown during which the DT weight became constant because SFCP had been reached. Figure 4 details the first event when SFCP was reached. SFCP took the CT weight value precisely when drainage became constant. The algorithm was also validated during the second event (represented in the graph in Figure 5), which shows that it continued to work because SFCP took the CT weight value precisely when the DT weight became stable. We can also see that the SFCP value increased during both events, as understood by the increased plant material weight and the greater water-retention capacity due to soil restructuring.
Based on portable weighing lysimeter characteristics, two excessive irrigations and drying stages were contemplated with the Burgundy Broccoli Asparagus experiment to hy-pothesize about how Variables 1 and 2 offered by the equipment would perform. When analyzing data in line with the expected hypotheses, and with both the CT and DT weights during the drying and excessive irrigation periods, the posed hypothesis could be considered valid, which indicates two facts: 1.
The DT management algorithm suitably works; 2.
When soil reaches SFCP, draining stops and, thus, the DT weight becomes constant.
Despite the structural design having been validated [4,8], the irrigation supply data (according to the counters set up on lateral tube) were compared to the water mass recorded by the lysimeter. The obtained results revealed that the portable weighing lysimeter well quantified the water masses supplied by irrigation.
The created algorithm was applied to the data taken from the pepper experiment and showed that the SFCP point was suitably located for the soil inside the CT; hypothetically, this soil was a replica of the outdoor soil and could, thus, help irrigation management decision making.
In order to manage irrigation, it is possible to obtain a starting point (by using a weighing lysimeter) to know the soil mass with its water content at SFCP. Thus, the reduction in CT mass is the equivalent to evapotranspiration. As it is quantified, it is possible to provide the exact amount of water for soil to recover its SFCP.
Several doubts arise about automating this process, which are also opportunities for the objectives of other research lines underway. These doubts are: -How frequently must evapo-transpired water be reported? This depends on many factors like: water and/or energy availability; quantity, quality, and cost; crop management strategies; irrigation system characteristics, etc.
-What amount of draining should be sought? It is necessary to bear in mind irrigation water quality, supplied nutrients, absorbed nutrients, quality of the obtained drainage water, etc., to know the best wash fraction that balances crop yield loss due to environmental pollution.
To answer the question of frequency, the user should parameterize the number of daily irrigations that could be given, or how often an irrigation should be given, based on many factors. It is also totally related to the amount of irrigation that can be applied, as it will also depend on several variables. For example, it will be important to know the irrigation system, in terms of its capacity to respond to different durations of irrigation. In this sense, an irrigation system that needs a long time to discharge the water from its pipes after the solenoid valve closes will not be as manageable as one in which drainage is minimal or non-existent. On the other hand, the rainfall of the irrigation system is also of interest, in contrast to the infiltration of the soil. The slope of the land is also important in defining the relative amount of the specific weight of runoff in the total water applied to the soil.
Thus, once all the variables have been analyzed, and the working ranges for irrigation dose and frequency have been determined, the system can automate irrigation as follows:

1.
Knowing the TC weight at a given moment (which will depend on the combination of parameterized dose and frequency), and knowing what the TC weight is when it is considered to be SFCP, the amount of irrigation to be applied at that moment is determined. 2.
The drainage percentage that will increase the irrigation contribution will be considered.

3.
From the rainfall of the irrigation system, it can be related to the amount of irrigation indicated by the portable weighing lysimeter, and the duration of irrigation to be applied is calculated.

4.
The irrigation controller can be commanded to execute this instruction.
The analyzed data indicate that SFCP in absolute values does not remain constant over time but evolves according to both the soil structure and root mass development inside soil. Thus, the objective pursued with the developed algorithm is not believed to be influenced by this phenomenon because it follows the definition by Pachés Giner [16].
With other analyses, however, for which the absolute value of SFCP is relevant, knowing its evolution would be very interesting because the present work found that it does not remain constant with time.
This work contemplates starting a new research line of analyzing apparent density for different textures. To do so, analyzing the following was considered: (i) evolution of the apparent density of the soil outside the lysimeter; (ii) evolution of the apparent density of the soil in the CT of a portable weighing lysimeter; (iii) a replica of the analyses with different textures. Nevertheless, a priori the results that could be obtained were considered to help to know hydrodynamic soil performances, which were assumed to not strongly influence, (a) the theoretical basis of estimating SFCP according to the definition of Pachés Giner [16], (b) the most influential components that intervene in the quantity of evapotranspiration, such as climatic demand and a crop's phenological status.

Conclusions
This study offered the possibility of determining in real time the CT weight in which soil is considered to be at its SFCP. With the data about CT weight, irrigation doses could be adjusted on a daily basis; that is, applying the water required to reach the CT weight that determines the SFCP. As this point can be obtained at any time, the objective of irrigation must be to generate a drainage percentage that allows salts to be washed and this SFCP value to be adjusted after each irrigation session. The development of the herein presented algorithm is taken as a starting point to accomplish autonomous irrigation scheduling and to quantify its outcomes.