pyart.retrieve.grid_shift#
- pyart.retrieve.grid_shift(grid, advection, trim_edges=0, field_list=None)[source]#
Shift a grid by a certain number of pixels.
- Parameters:
grid (Grid) – Py-ART Grid object.
advection (two-tuple of floats) – Number of Pixels to shift the image by.
trim_edges (integer, optional) – Edges to cut off the grid and axes, both x and y. Defaults to zero.
field_list (list, optional) – List of fields to include in new grid. None, the default, includes all fields from the input grid.
- Returns:
shifted_grid (Grid) – Grid with fields shifted and, if requested, subset.