MOM6
|
Functions and routines to take area, volume, mass-weighted, layerwise, zonal or meridional means.
Functions/Subroutines | |
real function, public | global_area_mean (var, G) |
Return the global area mean of a variable. This uses reproducing sums. More... | |
real function, public | global_area_integral (var, G) |
Return the global area integral of a variable. This uses reproducing sums. More... | |
real function, dimension(gv %ke), public | global_layer_mean (var, h, G, GV) |
Return the layerwise global thickness-weighted mean of a variable. This uses reproducing sums. More... | |
real function, public | global_volume_mean (var, h, G, GV) |
Find the global thickness-weighted mean of a variable. This uses reproducing sums. More... | |
real function, public | global_mass_integral (h, G, GV, var, on_PE_only) |
Find the global mass-weighted integral of a variable. This uses reproducing sums. More... | |
subroutine, public | global_i_mean (array, i_mean, G, mask) |
Determine the global mean of a field along rows of constant i, returning it in a 1-d array using the local indexing. This uses reproducing sums. More... | |
subroutine, public | global_j_mean (array, j_mean, G, mask) |
Determine the global mean of a field along rows of constant j, returning it in a 1-d array using the local indexing. This uses reproducing sums. More... | |
subroutine, public | adjust_area_mean_to_zero (array, G, scaling) |
Adjust 2d array such that area mean is zero without moving the zero contour. More... | |
subroutine, public mom_spatial_means::adjust_area_mean_to_zero | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed), intent(inout) | array, |
type(ocean_grid_type), intent(in) | G, | ||
real, intent(out), optional | scaling | ||
) |
Adjust 2d array such that area mean is zero without moving the zero contour.
[in] | g | Grid structure |
[in,out] | array | 2D array to be adjusted |
[out] | scaling | The scaling factor used |
Definition at line 315 of file MOM_spatial_means.F90.
real function, public mom_spatial_means::global_area_integral | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed), intent(in) | var, |
type(ocean_grid_type), intent(in) | G | ||
) |
Return the global area integral of a variable. This uses reproducing sums.
[in] | g | The ocean's grid structure |
[in] | var | The variable to integrate |
Definition at line 47 of file MOM_spatial_means.F90.
real function, public mom_spatial_means::global_area_mean | ( | real, dimension(szi_(g), szj_(g)), intent(in) | var, |
type(ocean_grid_type), intent(in) | G | ||
) |
Return the global area mean of a variable. This uses reproducing sums.
[in] | g | The ocean's grid structure |
[in] | var | The variable to average |
Definition at line 29 of file MOM_spatial_means.F90.
subroutine, public mom_spatial_means::global_i_mean | ( | real, dimension(szi_(g),szj_(g)), intent(in) | array, |
real, dimension(szj_(g)), intent(out) | i_mean, | ||
type(ocean_grid_type), intent(inout) | G, | ||
real, dimension(szi_(g),szj_(g)), intent(in), optional | mask | ||
) |
Determine the global mean of a field along rows of constant i, returning it in a 1-d array using the local indexing. This uses reproducing sums.
[in,out] | g | The ocean's grid structure |
[in] | array | The variable being averaged |
[out] | i_mean | Global mean of array along its i-axis |
[in] | mask | An array used for weighting the i-mean |
Definition at line 168 of file MOM_spatial_means.F90.
subroutine, public mom_spatial_means::global_j_mean | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed), intent(in) | array, |
real, dimension( g %isd: g %ied), intent(out) | j_mean, | ||
type(ocean_grid_type), intent(inout) | G, | ||
real, dimension( g %isd: g %ied, g %jsd: g %jed), intent(in), optional | mask | ||
) |
Determine the global mean of a field along rows of constant j, returning it in a 1-d array using the local indexing. This uses reproducing sums.
[in,out] | g | The ocean's grid structure |
[in] | array | The variable being averaged |
[out] | j_mean | Global mean of array along its j-axis |
[in] | mask | An array used for weighting the j-mean |
Definition at line 242 of file MOM_spatial_means.F90.
real function, dimension( gv %ke), public mom_spatial_means::global_layer_mean | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in) | var, |
real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in) | h, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV | ||
) |
Return the layerwise global thickness-weighted mean of a variable. This uses reproducing sums.
[in] | g | The ocean's grid structure |
[in] | gv | The ocean's vertical grid structure |
[in] | var | The variable to average |
[in] | h | Layer thicknesses [H ~> m or kg m-2] |
Definition at line 65 of file MOM_spatial_means.F90.
real function, public mom_spatial_means::global_mass_integral | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in) | h, |
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV, | ||
real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in), optional | var, | ||
logical, intent(in), optional | on_PE_only | ||
) |
Find the global mass-weighted integral of a variable. This uses reproducing sums.
[in] | g | The ocean's grid structure |
[in] | gv | The ocean's vertical grid structure |
[in] | h | Layer thicknesses [H ~> m or kg m-2] |
[in] | var | The variable being integrated |
[in] | on_pe_only | If present and true, the sum is only done on the local PE, and it is not order invariant. |
Definition at line 123 of file MOM_spatial_means.F90.
real function, public mom_spatial_means::global_volume_mean | ( | real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in) | var, |
real, dimension( g %isd: g %ied, g %jsd: g %jed, gv %ke), intent(in) | h, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(verticalgrid_type), intent(in) | GV | ||
) |
Find the global thickness-weighted mean of a variable. This uses reproducing sums.
[in] | g | The ocean's grid structure |
[in] | gv | The ocean's vertical grid structure |
[in] | var | The variable being averaged |
[in] | h | Layer thicknesses [H ~> m or kg m-2] |
Definition at line 95 of file MOM_spatial_means.F90.