arlmet.GridWindow#

class arlmet.GridWindow(x_start, x_stop, y_start, y_stop)[source]#

Rectangular subset of a grid using zero-based half-open indices.

Parameters:
  • x_start (int) – Inclusive start and exclusive stop indices in the x direction.

  • x_stop (int) – Inclusive start and exclusive stop indices in the x direction.

  • y_start (int) – Inclusive start and exclusive stop indices in the y direction.

  • y_stop (int) – Inclusive start and exclusive stop indices in the y direction.

nx#

Number of selected x-grid points.

Type:

int

ny#

Number of selected y-grid points.

Type:

int

shape#

Window shape as (ny, nx).

Type:

tuple[int, int]

x_slice#

Slice object for selecting the x range.

Type:

slice

y_slice#

Slice object for selecting the y range.

Type:

slice

Methods

GridWindow.__init__(x_start, x_stop, ...)

Attributes

GridWindow.nx

GridWindow.ny

GridWindow.shape

GridWindow.x_slice

GridWindow.y_slice

GridWindow.x_start

GridWindow.x_stop

GridWindow.y_start

GridWindow.y_stop