polaris.mesh.spherical.unified.effective_ocean.block_average
- polaris.mesh.spherical.unified.effective_ocean.block_average(field, factor)[source]
Block-average a 2D field by an integer factor in both dimensions.
- Parameters:
field (numpy.ndarray) – The field to average, with dimensions
(lat, lon)divisible byfactorfactor (int) – The block size
- Returns:
averaged (numpy.ndarray) – The block-averaged field