wakatools.base.DataArrayAccessor#

class wakatools.base.DataArrayAccessor(xarray_obj: DataArray)[source]#

Waka DataArray accessor .waka for xarray.DataArray instances holding wakatools functionalities for DataArrays.

__init__(xarray_obj: DataArray)[source]#

Methods

__init__(xarray_obj)

grid_coordinates()

Get an array of all grid coordinates in the DataArray in the shape (N, 2).

grid_coordinates_scaled([bbox])

Get an array of all grid coordinates in the DataArray in the shape (N, 2), scaled to between 0 and 1 based on the bounding box of the grid (xmin, ymin, xmax, ymax) or on a specified bounding box.