Python programming, with examples in hydraulic engineering and in hydrology.
Friday, January 26, 2018
Accumulating Precipitation Data
If we have a pandas dataframe named df1 with a column '15min' containing 15 minute precipitation data, we can easily accumulate for other durations, using the rolling method as shown in the example below:
Note that the window=4 parameter means that it will accumulate 4 lines of 15 minute data, resulting in 1 hour precipitation. This parameter can be changed to whatever duration you want.
No comments:
Post a Comment