compute_count_rate

romanisim.bandpass.compute_count_rate(flux, bandpass, sca, filename=None, effarea=None, wavedist=None)

Compute the count rate in a given filter, for a specified SED.

How many electrons would an object with SED given by flux deposit in Roman’s detectors in a second?

Parameters:
fluxfloat or np.ndarray with shape matching wavedist.

Spectral flux density in units of ergs per second * hertz * cm^2

bandpassstr

the name of the bandpass

scaint

the name of the detector. A number between 1-18.

filenamestr

filename to read in

effareaastropy.Table.table

Table from GSFC with effective areas for each filter.

wavedistnumpy.ndarray

Array of wavelengths along which spectral flux densities are defined in microns

Returns:
float

the total bandpass flux (electrons / s)