pyiem.grid.util module#

pyIEM grid utilities.

pyiem.grid.util.grid_smear(grid, shift=4)[source]#

Smear data around to fill in masked values (likely near coastlines).

Parameters:
  • grid (ndarray) – 2D numpy array

  • shift (int) – number of pixels to smear the data around by in each direction

Returns:

2D numpy array with smeared data

Return type:

ndarray