Increasingly, reduction of water availability has been a reality, and population growth, pollution, and climate change have contributed to exacerbating this problem. Dry periods, which occur when precipitation is lower than expected in a given territory, have become more frequent and prolonged, and therefore it is crucial to efficiently manage water use in response to environmental concerns. The main challenge in this work is to present the irrigation problem as an optimal control problem along with the presentation of preliminary results based on an exploratory statistical and critical analysis of daily meteorological variables. The variables considered are: maximum air temperature, minimum air temperature, and total precipitation recorded during the last ten years (2010-2019). The methodology followed, based on state-space models, shows flexibility to allow the integration of new data, updating in real time the model, and the incorporation of covariates that are important to explain the process in analysis.