apply

method of dascore.utils.tiles.TilePlan source

apply(
    self ,
    array: ndarray ,
    func ,
    taper: ndarray ,
)-> ‘np.ndarray’

Return the array with func applied to every tile and the tiles blended.

Parameters

Parameter Description
array The array to tile, of this plan’s shape.
func Takes the whole stack, [n_tiles, *size], and returns one of the
same shape: one vectorized call, not one per tile.
taper The weights the tiles are blended under.