TilePlan

class of dascore.utils.tiles source

TilePlan(
    shape: tuple[int, …] ,
    size: tuple[int, …] ,
    stride: tuple[int, …] ,
)-> None

Where every tile sits over an array.

Parameters

Parameter Description
shape The array’s shape along the tiled axes.
size The tile’s shape.
stride How far each tile advances along each axis. Never longer than the
tile: a gap between tiles is nothing to blend.
Note

Build one with :func:get_tile_plan, which caches, rather than directly.

Methods

Name Description
apply Return the array with func applied to every tile and the tiles blended.
crop Return the array’s part of a buffer pad made.
extract Return the tiles as a stack, [n_tiles, *size]; see pad.
overlap_add Return the array the tapered tiles sum to, cropped to the array’s shape.
pad Return the array inside a buffer every tile fits in whole.