compute_count_rate

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

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

How many photons 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

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 (photons / s)