in_hexagon

rubin_sim.maf.stackers.in_hexagon(x_off, y_off, max_dither)

Identify dither offsets which fall within the inscribed hexagon.

Parameters:
x_offnumpy.ndarray

The x values of the dither offsets.

yoffnumpy.ndarray

The y values of the dither offsets.

max_ditherfloat

The maximum dither offset.

Returns:
numpy.ndarray

Indexes of the offsets which are within the hexagon inscribed inside the ‘max_dither’ radius circle.