save_frame#

skysim.plot.save_frame(index, plot_settings, frame, filename)[source]#

Create and save a figure for a single frame.

Parameters:
indexint

Index of the frame.

plot_settingsPlotSettings

Configuration object. Attributes accessed are figure_size, wcs_objects, observation_info, datetime_strings, and dpi.

frameFloatArray

RGB image.

filenamepathlib.Path

Location to save the image.

Returns:
tuple[int, str]

Index and filename.