16 real (r8),
intent(in),
dimension(4) :: data_in
17 real (r8),
intent(out),
dimension(4) :: data_out
21 real (r8) :: data_mean
27 if (abs(data_in(k)).le.100.0_r8)
then 29 data_mean = data_mean + data_in(k)
36 data_mean = data_mean/nmean
40 if(abs(data_in(k)).le.100.0_r8)
then 41 data_out(k) = data_in(k)
43 data_out(k) = data_mean
pure subroutine gsw_add_mean(data_in, data_out)