podpac.compositor.UniformTileMixin

class podpac.compositor.UniformTileMixin(*args, **kwargs)[source]

Bases: traitlets.traitlets.HasTraits

DataSource mixin for uniform tiles in a grid.

Defines the tile coordinates from the grid coordinates using the tile position in the grid.

grid

tiling compositor containing the grid coordinates, grid shape, and tile sources

Type

TileCompositor

tile

index for this tile in the grid

Type

tuple

width

width

Type

tuple

Methods

__init__(*args, **kwargs)

get_coordinates()

{get_coordinates}

trait_defaults(*names, **metadata)

Return a trait’s default value or a dictionary of them

trait_has_value(name)

Returns True if the specified trait has a value.

trait_values(**metadata)

A dict of trait names and their values.

Attributes

grid

A trait whose value must be an instance of a specified class.

tile

An instance of a Python tuple.

width

Members

__init__(*args, **kwargs)
get_coordinates()[source]

{get_coordinates}

grid

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

tile

An instance of a Python tuple.

property width