In this example, a time series output is integrated over the period of record (Simulation Duration) to generate annual sums. The results are stored in a vector ('Annual_Sums') in which the rows correspond to years. In this format, it is a simple matter to calculate statistics on the rows or columns using GoldSim's built-in array functions such as meanv(), sumv(), sdv(), etc. For example, see results for 'Annual_Average' and 'Annual_Std_Dev'. Sometimes, this approach is needed instead of GoldSim's built-in reporting periods because the summary values must be used as inputs to other expressions in the model.
The time series "Precipitation_TS" could be swapped out with any scalar model output of your choice as long as you configure all the other elements to work with the measurement units correctly.