add_object_to_frame#

skysim.populate.add_object_to_frame(object_row, frame, area_mesh, brightness_scale_mesh)[source]#

Add a celestial object to the image.

Parameters:
object_rowastropy.table.Row

Row of object table.

frameFloatArray

RGB image.

area_meshIntArray

Mesh describing the area to which light from a single object can spread.

brightness_scale_meshFloatArray

Mesh describing the dimming of that light.

Returns:
FloatArray

frame with the object added in.