Window
Class to hold the pixel dimensions of data in the given projection.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xoff
|
int
|
X axis offset. |
required |
yoff
|
int
|
Y axis offset. |
required |
xsize
|
int
|
Width of data in pixels. |
required |
ysize
|
int
|
Height of data in pixels. |
required |
Attributes:
Name | Type | Description |
---|---|---|
xoff |
int
|
X axis offset. |
yoff |
int
|
Y axis offset. |
xsize |
int
|
Width of data in pixels. |
ysize |
int
|
Height of data in pixels. |
as_array_args
property
A tuple containing xoff, yoff, xsize, and ysize.
grow(pixels)
Expand the area in all directions by the given amount.
Generates a new window that is an expanded version of the current window.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pixels
|
int
|
The amount by which to grow the window in pixels. |
required |
Returns:
Type | Description |
---|---|
Window
|
A new window of the expanded size. |