healpix_geo.nested.RangeMOCIndex#

class healpix_geo.nested.RangeMOCIndex#

range-based index of healpix cell ids

The idea is to compress cell ids at depth 29 based on run-length encoding (RLE).

Only works with cell ids following the “nested” scheme.

__init__()#

Methods

__init__()

cell_ids()

Retrieve the cell ids from the index.

create_empty(depth)

Create an empty index

difference(other)

Compute the set difference of two indexes

from_cell_ids(depth, cell_ids)

Create an index from given cell ids.

full_domain(depth)

Create a full domain index

intersection(other)

Compute the set intersection of two indexes

isel(indexer)

Subset the index using positions

query(geometry)

Query by geometry

sel(indexer)

Subset the index using positions

symmetric_difference(other)

Compute the symmetric set difference of two indexes

union(other)

Compute the set union of two indexes

Attributes

depth

The depth of the index.

nbytes

The size of the ranges in bytes, minus any overhead.

size

The number of items in the index.