toasty.pyramid Module

General tools for working with tile pyramids.

Toasty and the AAS WorldWide Telescope support two kinds of tile pyramid formats: the all-sky TOAST projection, and “studies” which are tile pyramids rooted in a subset of the sky using a tangential projection. Both kinds of tile pyramids have much in common, and this module implements their overlapping functionality.

Functions

depth2tiles(depth)

Return the total number of tiles in a WWT tile pyramid of depth depth.

generate_pos(depth)

Generate a pyramid of tile positions.

is_subtile(deeper_pos, shallower_pos)

Determine if one tile is a child of another.

next_highest_power_of_2(n)

Ugh, this implementation is so dumb.

pos_children(pos)

Return the children of a tile position.

pos_parent(pos)

Return a tile position's parent.

guess_base_layer_level(wcs)

tiles_at_depth(depth)

Return the number of tiles in the WWT tile pyramid layer at depth depth.

Classes

Pos(n, x, y)

Pyramid()

An object representing a tile pyramid.

PyramidIO(base_dir[, scheme, default_format])

Manage I/O on a tile pyramid.