function DStatUpdate input Real newvalue "new value to update"; input Integer PLV "pointer to last value"; input Integer PM "pointer to mean value"; input Integer PMin "pointer to minimum value"; input Integer PMax "pointer to maximum value"; input Integer PObs "pointer to observations value"; input Integer PValues "pointer to list of values"; input Real pt "previous time"; input Real t "current simulation time"; input String name "name of the indicator"; input String of "name of the output file"; output Real npt "updated pretime"; end DStatUpdate;