make_asdf

romanisim.l1.make_asdf(resultants, dq=None, filepath=None, metadata=None, persistence=None)

Package and optionally write out an L1 frame.

This routine packages an L1 data file with the appropriate Roman data model. It currently does not do anything with the necessary metadata, and leaves that information as filler values.

Parameters:
resultantsnp.ndarray[n_resultant, nx, ny] (float)

resultants array, giving each of n_resultant resultant images

filepathstr

if not None, path of asdf file to L1 image into

dqnp.ndarray[n_resultant, nx, ny] (int)

dq array flagging saturated / CR hit pixels

Returns:
roman_datamodels.datamodels.ScienceRawModel

L1 image

extrasdict

dictionary of additionally tabulated quantities, potentially including DQ images and persistence information.