Processor¶
The processor module contains functions for advanced processing of hydrological data. This includes spatial analysis, like calculating basin-average rainfall, and time series analysis, like identifying distinct rainfall-runoff events.
Basin Mean Rainfall¶
When working with multiple rainfall gauges in a basin, you often need to calculate a single, representative rainfall value for the entire basin. The basin_mean_rainfall.py module provides tools for this.
calculate_thiesen_polygons: This function generates Thiessen polygons from station locations. Each polygon represents the area that is closest to a particular station, and the area of these polygons can be used to weight the station's rainfall data.basin_mean_func: This is the main function for calculating the basin's mean rainfall. It can perform either a simple arithmetic average or a weighted average using the weights derived from the Thiessen polygons.
Example Usage¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
Rainfall-Runoff Event Identification (场次划分)¶
The dmca_esr.py module implements the DMCA-ESR method for identifying and separating individual rainfall-runoff events from continuous time series data. This is crucial for event-based hydrological modeling and analysis.
get_rr_events: This is the primary function to use. It takes rainfall and streamflow data (as xarray DataArrays) and returns a dictionary where each key is a basin ID and the value is a pandas DataFrame listing the identified events.
Example Usage¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |