3 lat_grid, dlong_grid, dlat_grid, output_data)
29 real (r8),
intent(in) ::
long, lat, long_grid, lat_grid, dlong_grid
30 real (r8),
intent(in) :: dlat_grid
31 real (r8),
intent(in),
dimension(4) :: input_data
32 real (r8),
intent(out),
dimension(4) :: output_data
34 integer,
dimension(4) :: above_line
35 integer :: k, nmean, above_line0, kk
36 real (r8) :: r, lats_line, data_mean
42 if (lats_line.le.lat)
then 52 if (lats_line.le.lat_grid)
then 58 if (lats_line.le.lat_grid+dlat_grid)
then 68 if (lats_line.le.lat_grid)
then 74 if (lats_line.le.lat_grid+dlat_grid)
then 84 if ((abs(input_data(kk)).le.100._r8).and.above_line0.eq.above_line(kk))
then 86 data_mean = data_mean + input_data(kk)
93 data_mean = data_mean/nmean
97 if ((abs(input_data(kk)).ge.1e10_r8).or.above_line0.ne.above_line(kk))
then 98 output_data(kk) = data_mean
100 output_data(kk) = input_data(kk)
pure subroutine gsw_add_barrier(input_data, long, lat, long_grid, lat_grid, dlong_grid, dlat_grid, output_data)
integer, parameter, public long
real(r8), dimension(npan) longs_pan
real(r8), dimension(npan) lats_pan