simulate_many_ramps

romanisim.ramp.simulate_many_ramps(ntrial=100, flux=100, readnoise=5, read_pattern=None)

Simulate many ramps with a particular flux, read noise, and read_pattern.

To test ramp fitting, it’s useful to be able to simulate a large number of ramps that are identical up to noise. This function does that.

Parameters:
ntrialint

number of ramps to simulate

fluxfloat

flux in electrons / s

read_noisefloat

read noise in electrons

read_patternlist[list] (int)

list of lists giving indices of reads entering each resultant

Returns:
read_patternlist[list] (int)

read_pattern used

fluxfloat

flux used

readnoisefloat

read noise used

resultantsnp.ndarray[n_resultant, ntrial] (float)

simulated resultants