HMpTy.htm.htm.HTM (class)

class HMpTy.htm.htm.HTM(depth=16, log=False)[source]

A Hierarchical Triangular Mesh object

Key Arguments:
  • depth – the depth of the mesh you wish to create. Default 16

Usage:

To generate a mesh object:

from HMpTy import HTM
mesh16 = HTM(
    depth=16
)
__init__(depth=16, log=False)

x.__init__(…) initializes x; see help(type(x)) for signature

Methods

__init__([depth, log]) x.__init__(…) initializes x; see help(type(x)) for signature
cbincount(*args)
cmatch(*args)
init([depth])
intersect(ra, dec, radius[, inclusive, …]) return IDs of all triangles contained within and/or intersecting a circle centered on a given ra and dec
lookup_id(ra, dec) Lookup the ID of HTM trixel that a coordinate or lists of coordinates lie on
match(ra1, dec1, ra2, dec2, radius[, …]) Crossmatch two lists of ra/dec points

Attributes

area The mean area of triangles in this mesh in units of square degrees.
depth the depth of the HTM tree