make_l1¶
- romanisim.l1.make_l1(counts, read_pattern, read_noise=None, rng=None, seed=None, gain=None, inv_linearity=None, crparam=None, persistence=None, tstart=None, saturation=None)¶
Make an L1 image from a counts image.
This apportions the total counts among the different resultants and adds some instrumental effects (linearity, IPC, CRs, persistence, …).
- Parameters:
- countsgalsim.Image
total counts delivered to each pixel
- read_patternint or list[list]
MA table number or list of lists giving indices of reads entering each resultant.
- read_noisenp.ndarray[nx, ny] (float) or float
Read noise entering into each read
- rnggalsim.BaseDeviate
Random number generator to use
- seedint
Seed for populating RNG. Only used if rng is None.
- gainfloat or np.ndarray[float]
Gain (electrons / count) for converting counts to electrons
- inv_linearityromanisim.nonlinearity.NL or None
Object describing the inverse non-linearity corrections.
- crparamdict
Keyword arguments to romanisim.cr.simulate_crs. If None, no cosmic rays are simulated.
- persistenceromanisim.persistence.Persistence
Persistence instance describing persistence-affected pixels
- tstartastropy.time.Time
time of exposure start
- Returns:
- l1, dq
- l1: np.ndarray[n_resultant, nx, ny]
resultants image array including systematic effects
- dq: np.ndarray[n_resultant, nx, ny]
DQ array marking saturated pixels and cosmic rays