find_htmid

rubin_sim.utils.find_htmid(ra, dec, max_level)

Find the htmid (the unique integer identifying each trixel) of the trixel containing a given RA, Dec pair.

Parameters:
ra in degrees (either a number or a numpy array)
dec in degrees (either a number or a numpy array)
max_level is an integer denoting the mesh level
of the trixel you want found
Returns:
An int (the htmid) or an array of ints