generate_tiles_filtered

toasty.toast.generate_tiles_filtered(depth, filter, bottom_only=True, coordsys=ToastCoordinateSystem.ASTRONOMICAL)[source]

Generate a pyramid of TOAST tiles in deepest-first order, filtering out subtrees.

Parameters:
depthint

The tile depth to recurse to.

filterfunction(Tile)->bool

A filter function; only tiles for which the function returns True will be investigated.

bottom_onlyoptional bool

If True, then only the lowest tiles will be yielded.

coordsysoptional ToastCoordinateSystem

The TOAST coordinate system to use. Default is ToastCoordinateSystem.ASTRONOMICAL.

Yields:
tileTile

An individual tile to process. Tiles are yielded deepest-first.

The n = 0 depth is not included.