You can do it easily with the following segment, mean=ave(variable,t=start_time,t=end_time) std=sqrt(ave(pow(variable-mean,2)),t=start_time,t=last_time)*(number_of_time_steps/(number_of_time_steps-1)) Good luck, Stergios