pixel_in_frame#

skysim.populate.pixel_in_frame(xy, image_pixels)[source]#

Check if an xy pixel is in a square frame of size image_pixels.

Parameters:
xyIntArray

Pixel.

image_pixelsint

Frame size.

Returns:
bool

Whether the pixel is in the frame.