Rainfall interpolation and visualization for the Mexico City Water Management System
Keywords: kriging, R, GIS, rainfall, CDMX
The Mexico City Water Management System (SACMEX) has a real-time precipitation monitoring system, which is responsible for measuring and recording the quantity of rainfall in Mexico City. The SACMEX seeks to automatize the reporting of rainfall for the entire city as well as predefined areas, such as municipalities and high flood risk areas.
Currently, SACMEX produces a report using two methodologies: (i) ordinary kriging to obtain isohyets and produce rainfall visualizations; (ii) the Thiessen polygon method to obtain the average precipitation (mm) calculated for the entire city and for the municipalities. The use of two methodologies can lead to inconsistencies in the reporting. Moreover, the Thiessen polygon method makes it difficult to automatize the reporting.
An automatic report generation tool, based on kriging
The solution is a highly customizable script, programmed in R, that is called from the console and takes as inputs (i) a file with the rainfall measures in location and (ii) the predefined GIS polygons of the entire city, the municipalities and the areas of interest. The outputs are a report (.pdf), a file (.csv) with the statistics computed for each area, a Google Earth (.kml) file to use in the web Supervisory Control and Data Acquisition (SCADA) system.
An important difference between the two methods is that kriging assumes a continuous behavior of the phenomenon, while Thiessen assumes a discrete behavior, derived from the partition of space into large-area polygons. Thiessen’s method assumes a single value within the polygon and equal to the value observed at the monitoring station. On the other hand, the kriging method takes into account all the stations within a circumference to estimate the value of any point on the map. This implies that the kriging method has a higher resolution and greater flexibility to capture rainfall patterns. Other advantages of the kriging method over the Thiessen method are: