This example demonstrates how to extract an n-day duration time series from another time series. The original data for this example consists of daily average streamflow at the Sinnemahoning Creek at Sinnemahoning, PA stream gage. This stream gage is operated by the USGS. The period of record used for this example is from 1938 to 2016. To view the data from HEC-SSP, right-click on the data record labeled "Sinnemahoning Creek-Daily" in the study explorer and then select Plot. A plot of the data will appear as shown in Figure 1.

Figure 1. Plot of Daily Average Flow at Sinnemahoning, PA

To begin extracting an n-day duration time series, right click on the Sinnemahoning Creek-Daily data record and select Filter Data. Within the Filter editor, click on the Duration tab. For this example, a 5-day duration time series will be extracted.  Within the Duration panel, click the Average Data over Duration check box and enter a Duration of 5 days, as shown in Figure 2.

Figure 2. Data Filters Used for Jamestown Temperature

After clicking the Save Filtered Data Set As button, enter a Name of "Sinnemahoning Creek-Daily-5DAY", ensure the E-part is set to 1DAY, and the F-Part is defined as "USGS – 5DAY", as shown in Figure 3.

Figure 3. Name and DSS Pathname Parts

After clicking the OK button, a new data set will be added to the study.  The original data as well as the filtered data is shown in Figure 4.

Figure 4. Original and Filtered Data
A sample of the computations for the first ten days are shown in Table 1.  As shown within this table, the filtered data set contains four fewer values than the original data set.  This was necessary in order to compute a 5-day average for the first 5 days of the time series.  The 5-day average is computed on day 5 using the following formula:

35.8=\frac{(41 + 38 + 35 + 33 + 32)}{5}

Similarly, the 5-day average is computed on day 7 using the following formula:

36.4=\frac{(38 + 35 + 33 + 32 + 44)}{5}

Table 1. First Ten Days of Original and Filtered Data

DateOriginal Data (cfs)Filtered Data (cfs)
01 Oct 1938, 24:0041 -
02 Oct 1938, 24:0038 -
03 Oct 1938, 24:0035 -
04 Oct 1938, 24:0033 -
05 Oct 1938, 24:003235.8
06 Oct 1938, 24:004436.4
07 Oct 1938, 24:009046.8
08 Oct 1938, 24:0011262.2
09 Oct 1938, 24:007570.6
10 Oct 1938, 24:006176.4

A detailed view of the original data as well as the filtered data for the June 1972 time period is shown in Figure 5.  The filtered data set constitutes a moving 5-day daily average streamflow time series.

Figure 5. Original and Filtered Data for June 1972